Wednesday, November 12, 2008

Idea for create-archetype-from-existing-project plugin

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.

3 comments:

  1. Yo dude.. The functionality you want is already implemented in the archetype plugin

    http://maven.apache.org/plugins/maven-archetype-plugin/create-from-project-mojo.html

    ReplyDelete
  2. Write about something, and it exists; I call this "development by blogging".
    Thanks for the pointer Kaare!

    ReplyDelete
  3. Use "mvn archetype:create-from-project". Go into target/generated-sources/archetype, and generate distributable with "mvn package".

    ReplyDelete

Spam will be pruned