Getting closer. Now using war:exploded (see below). So in order to wrap
this up (for an exploded EAR), there are a few steps required. The mojo for
the maven-ear-plugin (which doesn't have an exploded goal!) needs to be
modified to add the exploded goal. Then the exploded WAR needs to be copied
into the appropriate directory in the exploded EAR. Finally, for a 'mvn
install', the EAR would need to be packaged to be installed into the local
Maven repo.
2nd thought: the exploded EAR is already available prior to the packaging of
the EAR during 'mvn install'. So adding the exploded goal to the
maven-ear-plugin is not required. Even better.
Now the problem is to actually provide all the appropriate phases in the
components.xml below...
components.xml
<component-set>
<components>
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>exploded</role-hint>
<implementation>
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
</implementation>
<configuration>
<phases>
<process-resources>
org.apache.maven.plugins:maven-resources-plugin:resources
</process-resources>
<compile>
org.apache.maven.plugins:maven-compiler-plugin:compile
</compile>
<!--<package>org.apache.maven.plugins:maven-zip-plugin:exploded</package>-->
<package>org.apache.maven.plugins:maven-war-plugin:exploded</package>
</phases>
</configuration>
</component>
</components>
</component-set>
--
View this message in context:
http://maven.40175.n5.nabble.com/Creating-a-Custom-Lifecycle-tp1044781p1044822.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]