The project I'm working on is teh best, and I don't have time to create an
archetype from it! Why should I need to structure the project in a different way to create the archetype? If I do that, I cannot continue working on the code. The plugin should be able to rip out all the non-generic stuff, like groupId, projectId, folders, wrap them in templates so they are automatically filled and presto, you have a new archetype.
Yo dude.. The functionality you want is already implemented in the archetype plugin
ReplyDeletehttp://maven.apache.org/plugins/maven-archetype-plugin/create-from-project-mojo.html
Write about something, and it exists; I call this "development by blogging".
ReplyDeleteThanks for the pointer Kaare!
Use "mvn archetype:create-from-project". Go into target/generated-sources/archetype, and generate distributable with "mvn package".
ReplyDelete