Hi,

I want to create a custom archetype. I followed the tutorial at
http://maven.apache.org/guides/mini/guide-creating-archetypes.html.
Its a very helpful article to get started quick. But I'm looking for
something that goes more in depth.

The project that is created from the custom archetype I created
following this tutorial has 2 classes in it, App.java and
AppTest.java, but they are in the directory /src/main/java and
/src/main/test. The aforementioned article does not go into any detail
about how to create Java source files that are in ${package} specified
by the command line parameter -Dpackage.

For example, typically using the archetype:generate command in
interactive mode will prompt the user for groupId, artifactId,
version, and package. The default value for package in the interactive
mode is the same as ${groupId}. Assuming the default package is
${groupId}, and ${groupId} = "com.some.company", how would I make the
custom archetype generate the file
/src/main/java/com/some/company/HelloWorld.java

Thanks in advance,
Elliot

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to