You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Luke Patterson <lu...@gmail.com> on 2010/09/01 12:30:05 UTC

archetype-catalog.xml and its properties and goals elements, what populates them?

archetype-catalog.xml[1] has support for adding properties and goals

I'm especially interested in the goals portion.  I have some setup
logic that should always be executed after archetype creation.  If I
manually create the archetype-catalog.xml file and add goals, the
archetype:generate CLI interface does recognize and run the goals
after project creation (m2e does not, unfortunately).

How do goals normally get inserted into the archetype-catalog file?
Is that a manual process?  <goals> are neither in the old[2] nor
new[3] archetype descriptors.  How does that work if the Nexus plugin
[4] is handling the catalog file?

The properties part makes a little more sense, because
<requiredProperties> is in the archetype metadata file, so I can see
where it might come from.  (although none of the archetypes listed in
central have properties in the main catalog file[5], so that also is
broken in m2e because m2e does not "see" the the non-standard
properties until the archetype is locally installed, which does not
happen until after the "set properties" wizard page, by then it's too
late)

Any insights?


[1] http://maven.apache.org/archetype/archetype-common/archetype-catalog.html
[2] http://maven.apache.org/archetype/archetype-common/archetype.html
[3] http://maven.apache.org/archetype/archetype-common/archetype-descriptor.html
[4] https://docs.sonatype.org/display/Nexus/Nexus+Archetype+Plugin
[5] http://repo1.maven.org/maven2/archetype-catalog.xml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: archetype-catalog.xml and its properties and goals elements, what populates them?

Posted by Hervé BOUTEMY <he...@free.fr>.
Le jeudi 16 septembre 2010, lukewpatterson a écrit :
> Anyone have any info/background on the <goals> and <properties> sections of
> archetype-catalog.xml ?
I have the exact same question, I'm actually working with people who wrote the 
initial code to understand the rationale behind it.

Documenting this feature is one of my goals before releasing the next version, 
which I intend to be 2.0 final (yes, final, not alpha any more)

Regards,

Hervé

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: archetype-catalog.xml and its properties and goals elements, what populates them?

Posted by lukewpatterson <lu...@gmail.com>.
Anyone have any info/background on the <goals> and <properties> sections of
archetype-catalog.xml ?
-- 
View this message in context: http://maven.40175.n5.nabble.com/archetype-catalog-xml-and-its-properties-and-goals-elements-what-populates-them-tp2799170p2841463.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org