hello,

what I did recently was first created an archetype from an existing
application and modified it as needed:

http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html

some of your question might be answered here:

http://maven.apache.org/archetype/maven-archetype-plugin/specification/archetype-metadata.html

regards Kristian

On Tue, Apr 6, 2010 at 4:42 AM, Elliot Huntington
<[email protected]> wrote:
> 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]
>
>



-- 
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA

tel: +91 468 2319577

protect your privacy while searching the net: www.ixquick.com

             _=_
           q(-_-)p
            '_) (_`
            /__/  \
         _(<_   / )_
      (__\_\_|_/__)

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

Reply via email to