You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ca...@gmx.at on 2008/06/18 20:22:38 UTC
own archetype
I would like to create my own archetype. I used the quickstart-archetype as an example. How is it possible to change the java-folder from src-main-java to src-java (remove the main-folder)? Can you give me some examples?
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: own archetype
Posted by Salvador Diaz <sd...@m6.fr>.
In your archetype's pom, in the build section, put the following
configuration:
<build>
<sourceDirectory>src/java</sourceDirectory>
...
</build>
Greetings,
Salvador
Caesar6@gmx.at a écrit :
> I would like to create my own archetype. I used the quickstart-archetype as an example. How is it possible to change the java-folder from src-main-java to src-java (remove the main-folder)? Can you give me some examples?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: own archetype
Posted by Raphaël Piéroni <ra...@apache.org>.
Try creating a sample project
then call mvn archetype:create-from-project on that project
then go to target/genetrated-sources/archetype
then call mvn install
to use it go to a fresh directory and call mvn archetyppe:generate
-DarchetypeCatalog=local
Raphaël
2008/6/18 <Ca...@gmx.at>:
> I would like to create my own archetype. I used the quickstart-archetype as an example. How is it possible to change the java-folder from src-main-java to src-java (remove the main-folder)? Can you give me some examples?
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>