maven-archetype

Vaadin Flow 18/19 without Spring Boot?

空扰寡人 提交于 2021-02-19 05:38:14
问题 The https://start.vaadin.com page creates a new Vaadin Flow project for versions 18 or 19 (pre-release). But the resulting project requires Spring Boot. I do not want Spring. I do not want Spring Boot. Both solve problems I do not have. Both add complications I do not want. Is there a way to work with Vaadin 18 or 19 without Spring, with just plain Servlet technology? Is there any Maven archetype available for Vaadin 18 or 19 but free of Spring & Spring Boot? Formerly, we had the Maven

Name the root directory of project generated with Maven Archetype

↘锁芯ラ 提交于 2021-02-08 01:49:07
问题 How can I control the name of the top directory of the maven module created by my maven archetype? Currently it creates a new folder named $artifactId . Or even more directly, is there a way that my archetype can create a folder named after the module's artifactId, but with dashes replaced by underscores? 回答1: The naming convention for artifactId's is to use dashes (hyphens). I don't think there is any way to make the module's directory named something other than the artifactId. That being

Generate Maven archetype from Java code

非 Y 不嫁゛ 提交于 2021-02-04 16:15:42
问题 I want to know if it's possible to run the maven command: archetype:generate in Java code. I've tried this with the maven embedder, but this library is deprecated. I want to do an archetype:generate from a remote catalog, and capture the required properties of the archetype. The maven command I want to run is for example: mvn archetype:generate \ -DgroupId=com.maven \ -DartifactId=test \ -DarchetypeVersion=1.0-alpha-4 \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId

Maven-archetype-webapp Directory Structure?

只谈情不闲聊 提交于 2020-02-15 08:11:11
问题 Is there a possibility or a workaroud to use maven-archetype-webapp archetype to generate a maven webapp with plain directory structure like /src /main /java /resources /webapp /test /java /resources 回答1: I assume that your issue is the missing java and test folders in a new project when using maven-archetype-webapp. There are no options to make that archetype to add those. Of course you could add them manually after the project was created. You may find another archetypes in one of these

Change package property in Maven Archetype

怎甘沉沦 提交于 2020-02-01 18:56:05
问题 I created a Maven Archetype. My META-INF/maven/archetype-metadata.xml looks like this: <archetype-descriptor xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"> <fileSets> <fileSet filtered="true" packaged="true" encoding="UTF-8" > <directory

Specify archetype for archetype:generate on command line

我是研究僧i 提交于 2020-01-21 10:43:06
问题 I'm generating a Maven archetype for a simple project. I use archetype:generate , and it gives me a list of types of archetypes to generate. I'm pretty sure I want 99: remote -> maven-archetype-quickstart (An archetype which contains a sample Maven project.) I can just enter "99" interactively, but I'm trying to write a blog post. I don't want to tell my readers "search for maven-archetype-quickstart in the hundreds of options", and I know it won't always be number 99. So, how do I specify on

Creating Maven Archetype: is there a way to specify a default groupId

泪湿孤枕 提交于 2020-01-13 03:57:20
问题 I have created a maven archetype using create-from-project . Is there a way to specify a default groupId ? This archetype is for internal use only, default groupId would save some keystrokes. Thanks. 回答1: You can do this by specifying a propertyFile This property file may contains few properties including default groupId. So something like this (in a file named something.properties): groupId=com.company and to create the archetype mvn archetype:create-from-project -Darchetype.properties=..

Is there a way to post-process project generated from archetype?

坚强是说给别人听的谎言 提交于 2020-01-11 05:59:49
问题 Say I have an archetype and I generate a project from it. But I would like to resolve placeholders in a property file of the project I generated on after generation time by passing the value for placeholder through command line. For example having the following command line: mvn archetype:create -DarchetypeGroupId=... -DarchetypeArtifactId=... -DarchetypeVersion=1.0 -DgroupId=... -DartifactId=my-project -Dversion=1.0-SNAPSHOT -Dhello=Hello! say the archetype contains app.properties (as part