Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good advanced guides on how to create new maven archetypes? [closed]

I'm looking for a guide on how to create new maven archetypes that involve using parameters to create directories and file names where the parameters are used as prefixes in the file names and part of the package structure/directories that are created by the archetype.

All I can find is very simple instructions on how to make very simple projects.

like image 600
menapole Avatar asked Jan 25 '11 15:01

menapole


People also ask

What archetype should I use for maven?

If you want a web application, use maven-archetype-webapp, or if you want a simple application use maven-archetype-quickstart.

What is the command to create a new project based on an archetype?

To create a new project based on an Archetype, you need to call mvn archetype:generate goal, like the following: mvn archetype:generate.

What is the latest maven archetype version?

Maven Archetype 3.2. This is the current stable version of Maven Archetype.


2 Answers

why not use the maven website itself?

http://maven.apache.org/guides/mini/guide-creating-archetypes.html

like image 53
fmucar Avatar answered Oct 11 '22 11:10

fmucar


I think I found the a site that helps me a little more once I figured out that Velocity templates are used as part of the archetype processes.

HowToCreateMavenArchetypeFromProject

like image 33
menapole Avatar answered Oct 11 '22 10:10

menapole