What’s next

November 12, 2008

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

Filed under: Idea,Java — stigl @ 8:27 am
Tags: , ,

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.

Advertisements

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

    Comment by Kaare Nilsen — November 12, 2008 @ 10:14 am | Reply

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

    Comment by stigl — November 12, 2008 @ 1:11 pm | Reply

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

    Comment by stigl — December 3, 2008 @ 11:07 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: