You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nitko2 <ni...@gmail.com> on 2005/11/03 14:57:13 UTC
[m2]Custom archetype
I tried to create archetype with following archetype.xml:
<archetype>
<id>my-simple-archetype</id>
<sources>
<source>src/DeleteMe.java</source>
</sources>
<testSources>
<source>src/DeleteMeTest.java</source>
</testSources>
</archetype>
After I installed plugin, I tried:
mvn archetype:create -DarchetypeGroupId=my-plugins -DarchetypeArtifactId=my-simple-archetype
-DarchetypeVersion=1.0 -DgroupId=test-group -DartifactId=test-project
Project is created but with this following directory structure:
test-project
|--src
|-- main
|--java
|-- test
|--java
|-- test-group
|--DeleteMe.java
|--DeleteMeTest.java
As you can see from archetype.xml I would like to use only src dir without main or test directories.
Is this a bug?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org