On 31 Mar 07, at 10:07 AM 31 Mar 07, Raphaël Piéroni wrote:
Hi here comes a new proposition for the future descriptor.
I made it the most simpler i can think.
Please comment it.
I think it duplicates too much that's in the POM. The POM should be
the model that used for Archetype wherever possible and an ancillary
model should only be used where absolutely necessary. But as far as
any sources, resources and any filtering what is done in the POM for
the Archetype project is how the prototype generated from that
Archetype should end up.
Regards,
Raphaël
<archetype id="archetype-artifact-id" partial="true|false" >
<!-- id is mandatory and partial is optional (defaults to false)
-->
<requiredProperties>
<!--
optional element as common required properties are
groupId, artifactId, version and package
(aliased with packageName when calling the mojo)
-->
<!-- maybe in flat mode -->
<requiredProperty key="propKey" default-value="string to
replace" />
<!-- key is mandatory and default-value is optional -->
</requiredProperties>
What are some examples of these?
<fileSets>
<!-- maybe in flat mode -->
<fileSet filtered="true|false" packaged="true|false" />
<!-- filtered is optional (defaults to true) -->
<!-- packaged is optional (defaults to true) -->
<directory>src/main/java</directory>
<!-- directory is mandatory -->
<includes>
<include>**/*.java</include>
</includes>
<!-- includes is optional (defaults to "**/*") -->
<excludes>
<exclude>Main.java</exclude>
</excludes>
<!-- excludes is optional (defaults to "") -->
</fileSet>
<!--
the generated project's pom.xml file don't have to
be defined in the fileSet as it is mandatory to have
this file for a maven project (even partial ones)
and therefore, the generation will always try to generate
one using filters on it.
-->
</file-sets>
I think any of this should be taken directly from the POM for the
project in question.
<modules>
<!-- modules is optional -->
<module id="module-artifact-id">
<!-- id is mandatory -->
<fileSets/>
<!-- fileSets is the same as in archetype -->
<modules/>
<!-- modules is the same as in archetype -->
</module>
</modules>
Again, here this should be taken from the POM.
Jason.
</archetype>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]