Maven Archetype

Create a tool that will generate an archetype from an existing project

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0-alpha-1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

An archetype author shold be able to work/debug an existing project and when satisfied just flip it into an archetype.

Issue Links

Activity

Hide
Matt Raible added a comment -

Jason - you mentioned you had this completed at TSSJS last week. Is it scheduled to go into an upcoming Maven release?

Thanks,

Matt

Show
Matt Raible added a comment - Jason - you mentioned you had this completed at TSSJS last week. Is it scheduled to go into an upcoming Maven release? Thanks, Matt
Hide
Jason van Zyl added a comment -

This is working but it needs a lot of testing and won't coincide with the 2.0.3 release. It has its own lifecycle so when it's ready you won't have to wait for a release of Maven core.

Show
Jason van Zyl added a comment - This is working but it needs a lot of testing and won't coincide with the 2.0.3 release. It has its own lifecycle so when it's ready you won't have to wait for a release of Maven core.
Hide
Brett Porter added a comment -

basic version is included in 1.0-alpha-4. Jason will revisit for 1.0-beta-1 to ensure it does the trick.

Show
Brett Porter added a comment - basic version is included in 1.0-alpha-4. Jason will revisit for 1.0-beta-1 to ensure it does the trick.
Hide
Matt Raible added a comment -

Is there more information on how to use this new feature? The current documention on this plugin seems to be a bit sparse.

http://maven.apache.org/plugins/maven-archetype-plugin/

Show
Matt Raible added a comment - Is there more information on how to use this new feature? The current documention on this plugin seems to be a bit sparse. http://maven.apache.org/plugins/maven-archetype-plugin/
Hide
Brett Porter added a comment -

my mistake, this wasn't in the release.

Show
Brett Porter added a comment - my mistake, this wasn't in the release.
Hide
Adam Leggett added a comment -

I've added a tentative patch for this feature

http://jira.codehaus.org/browse/ARCHETYPE-50

Show
Adam Leggett added a comment - I've added a tentative patch for this feature http://jira.codehaus.org/browse/ARCHETYPE-50
Hide
Matt Raible added a comment -

It's been almost a year - any update on adding this functionality?

Show
Matt Raible added a comment - It's been almost a year - any update on adding this functionality?
Hide
Brett Porter added a comment -

there's actaully work going on on dev@ at the moment...

Show
Brett Porter added a comment - there's actaully work going on on dev@ at the moment...
Hide
Raphaël Piéroni added a comment -

This issue will be fixed by NG-alpha-1

Show
Raphaël Piéroni added a comment - This issue will be fixed by NG-alpha-1
Hide
Dave Syer added a comment -

I can see that something has happened because there are a couple of pages of docos and I can do

mvn clean archetypeng:create-from-project

and see code appear in target/generated-sources/archetypeng. It might even almost be a valid archetype, but when I install it and then use it I get

Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.

(Despite the fact that the file exists in the jar. I guess it is somehow invalid and the error message is unclear?)

The archetype groupId and artifacfId are the same as the project it was created from (not very useful). I also see target/archetype.properties appearing. Maybe that's being used to set the archetype pom properties up? Not so you'd notice. Is this supposed to work? How would I modify the archetype?

Is there going to be some more documentation?

Show
Dave Syer added a comment - I can see that something has happened because there are a couple of pages of docos and I can do mvn clean archetypeng:create-from-project and see code appear in target/generated-sources/archetypeng. It might even almost be a valid archetype, but when I install it and then use it I get Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found. (Despite the fact that the file exists in the jar. I guess it is somehow invalid and the error message is unclear?) The archetype groupId and artifacfId are the same as the project it was created from (not very useful). I also see target/archetype.properties appearing. Maybe that's being used to set the archetype pom properties up? Not so you'd notice. Is this supposed to work? How would I modify the archetype? Is there going to be some more documentation?
Hide
Raphaël Piéroni added a comment -

These issues are addressed since the 2.0-alpha-n version of the plugin

Show
Raphaël Piéroni added a comment - These issues are addressed since the 2.0-alpha-n version of the plugin

People

Vote (3)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: