Hi all,
I try to define my own custom lifecycle, which I would like to use in
some of my projects. As far as I understood, I should be enough to
create a module with packaging type jar, to create a components.xml and
to place this file below META-INF/plexus.
To use this packaging type it should be engough to add it to the project
as plugin with extensions set to true:
<build>
<plugins>
<plugin>
<groupId>customGroup</groupId>
<artifactId>packaingType42</artifactId>
<version>1.0</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
Maven knows the packaging type if I declare my packaging type like this,
but the life cycle it self seems not to be found.
What do I miss? My components.xml looks like this:
<component-set>
<components>
<component>
<role>
org.apache.maven.lifecycle.mapping.LifecycleMapping
</role>
<role-hint>packaging42</role-hint>
<implementation>
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
</implementation>
<configuration>
<lifecycles>
<lifecycle>
<id>default</id>
<phases>
<a></a>
<b>
org.apache.maven.plugins:maven-resources-plugin:2.4:resources
</b>
<c>org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile</c>
<d></d>
</phases>
</lifecycle>
</lifecycles>
</configuration>
</component>
</components>
</component-set>
I put the code for the packaging type on Github:
https://github.com/plexusnexus/custompackagingtype
Also an example project which uses this packaging type:
https://github.com/plexusnexus/custompackagingusage
Bye,
Oliver
https://github.com/plexusnexus/custompackagingusage
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]