mirror of https://github.com/apache/maven.git
o separate out all artifact handlers and lifecycles from the core components
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721738 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc516f8682
commit
829ddb2170
|
@ -1,9 +1,102 @@
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Artifact handlers are required by the dependency resolution mechanism and therefore needed by the core.
|
||||||
|
The type specified by a dependency could be altered to load a particular plugin in order to get the
|
||||||
|
artifact handler. This would make it easier to encapsulate all handling for a type in one place and
|
||||||
|
not be bound to the core. It wouldn't be terrible as the plugin would need to be downloaded, classloaded,
|
||||||
|
components discovered which is probably a reasonable price to pay for complete and comprehensible
|
||||||
|
encapsulation. All these special entries here is probably understood by no one which is a real
|
||||||
|
problem.
|
||||||
|
|
||||||
|
-->
|
||||||
<component-set>
|
<component-set>
|
||||||
<components>
|
<components>
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| POM
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
|
<role-hint>pom</role-hint>
|
||||||
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
|
<configuration>
|
||||||
|
<type>pom</type>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
|
<role-hint>pom</role-hint>
|
||||||
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
|
<configuration>
|
||||||
|
<lifecycles>
|
||||||
|
<lifecycle>
|
||||||
|
<id>default</id>
|
||||||
|
<!-- START SNIPPET: pom-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<package>org.apache.maven.plugins:maven-site-plugin:attach-descriptor</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<optional-mojos>
|
||||||
|
<optional-mojo>org.apache.maven.plugins:maven-site-plugin:attach-descriptor</optional-mojo>
|
||||||
|
</optional-mojos>
|
||||||
|
<!-- END SNIPPET: pom-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| JAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
|
<role-hint>jar</role-hint>
|
||||||
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
|
<configuration>
|
||||||
|
<type>jar</type>
|
||||||
|
<language>java</language>
|
||||||
|
<addedToClasspath>true</addedToClasspath>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
|
<role-hint>jar</role-hint>
|
||||||
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
|
<configuration>
|
||||||
|
<lifecycles>
|
||||||
|
<lifecycle>
|
||||||
|
<id>default</id>
|
||||||
|
<!-- START SNIPPET: jar-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||||
|
<process-test-resources>
|
||||||
|
org.apache.maven.plugins:maven-resources-plugin:testResources
|
||||||
|
</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||||
|
<package>
|
||||||
|
org.apache.maven.plugins:maven-jar-plugin:jar
|
||||||
|
</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: jar-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| EJB
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>ejb</role-hint>
|
<role-hint>ejb</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>ejb</type>
|
<type>ejb</type>
|
||||||
<extension>jar</extension>
|
<extension>jar</extension>
|
||||||
|
@ -11,22 +104,98 @@
|
||||||
<addedToClasspath>true</addedToClasspath>
|
<addedToClasspath>true</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping
|
||||||
|
</role>
|
||||||
|
<role-hint>ejb</role-hint>
|
||||||
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
|
||||||
|
</implementation>
|
||||||
|
<configuration>
|
||||||
|
<lifecycles>
|
||||||
|
<lifecycle>
|
||||||
|
<id>default</id>
|
||||||
|
<!-- START SNIPPET: ejb-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources
|
||||||
|
</process-resources>
|
||||||
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile
|
||||||
|
</compile>
|
||||||
|
<process-test-resources>
|
||||||
|
org.apache.maven.plugins:maven-resources-plugin:testResources
|
||||||
|
</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile
|
||||||
|
</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test
|
||||||
|
</test>
|
||||||
|
<package>
|
||||||
|
org.apache.maven.plugins:maven-ejb-plugin:ejb
|
||||||
|
</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install
|
||||||
|
</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy
|
||||||
|
</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: ejb-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>jar</role-hint>
|
<role-hint>ejb-client</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>jar</type>
|
<type>ejb-client</type>
|
||||||
|
<extension>jar</extension>
|
||||||
|
<packaging>ejb</packaging>
|
||||||
|
<classifier>client</classifier>
|
||||||
<language>java</language>
|
<language>java</language>
|
||||||
<addedToClasspath>true</addedToClasspath>
|
<addedToClasspath>true</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
|
<role-hint>ejb3</role-hint>
|
||||||
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
|
<configuration>
|
||||||
|
<type>ejb3</type>
|
||||||
|
<includesDependencies>true</includesDependencies>
|
||||||
|
<language>java</language>
|
||||||
|
<addedToClasspath>false</addedToClasspath>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
|
<role-hint>ejb3</role-hint>
|
||||||
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
|
<configuration>
|
||||||
|
<!-- START SNIPPET: ejb3-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||||
|
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||||
|
<package>
|
||||||
|
org.apache.maven.plugins:maven-ejb3-plugin:ejb3
|
||||||
|
</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: ejb3-lifecycle -->
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| TEST JAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>test-jar</role-hint>
|
<role-hint>test-jar</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<classifier>tests</classifier>
|
<classifier>tests</classifier>
|
||||||
<extension>jar</extension>
|
<extension>jar</extension>
|
||||||
|
@ -37,10 +206,14 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| MAVEN PLUGIN
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>maven-plugin</role-hint>
|
<role-hint>maven-plugin</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>maven-plugin</type>
|
<type>maven-plugin</type>
|
||||||
<extension>jar</extension>
|
<extension>jar</extension>
|
||||||
|
@ -48,20 +221,50 @@
|
||||||
<addedToClasspath>true</addedToClasspath>
|
<addedToClasspath>true</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
<role-hint>pom</role-hint>
|
<role-hint>maven-plugin</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>pom</type>
|
<lifecycles>
|
||||||
|
<lifecycle>
|
||||||
|
<id>default</id>
|
||||||
|
<!-- START SNIPPET: maven-plugin-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<generate-resources>org.apache.maven.plugins:maven-plugin-plugin:descriptor</generate-resources>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||||
|
<process-test-resources>
|
||||||
|
org.apache.maven.plugins:maven-resources-plugin:testResources
|
||||||
|
</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||||
|
<package>
|
||||||
|
org.apache.maven.plugins:maven-jar-plugin:jar,
|
||||||
|
org.apache.maven.plugins:maven-plugin-plugin:addPluginArtifactMetadata
|
||||||
|
</package>
|
||||||
|
<install>
|
||||||
|
org.apache.maven.plugins:maven-install-plugin:install,
|
||||||
|
org.apache.maven.plugins:maven-plugin-plugin:updateRegistry
|
||||||
|
</install>
|
||||||
|
<deploy>
|
||||||
|
org.apache.maven.plugins:maven-deploy-plugin:deploy
|
||||||
|
</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: maven-plugin-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| SOURCE JAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>java-source</role-hint>
|
<role-hint>java-source</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<classifier>sources</classifier>
|
<classifier>sources</classifier>
|
||||||
<type>java-source</type>
|
<type>java-source</type>
|
||||||
|
@ -71,10 +274,14 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| JAVADOC JAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>javadoc</role-hint>
|
<role-hint>javadoc</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<classifier>javadoc</classifier>
|
<classifier>javadoc</classifier>
|
||||||
<type>javadoc</type>
|
<type>javadoc</type>
|
||||||
|
@ -84,10 +291,14 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| WAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>war</role-hint>
|
<role-hint>war</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>war</type>
|
<type>war</type>
|
||||||
<includesDependencies>true</includesDependencies>
|
<includesDependencies>true</includesDependencies>
|
||||||
|
@ -95,11 +306,41 @@
|
||||||
<addedToClasspath>false</addedToClasspath>
|
<addedToClasspath>false</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
|
<role-hint>war</role-hint>
|
||||||
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
|
<configuration>
|
||||||
|
<lifecycles>
|
||||||
|
<lifecycle>
|
||||||
|
<id>default</id>
|
||||||
|
<!-- START SNIPPET: war-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||||
|
<process-test-resources>
|
||||||
|
org.apache.maven.plugins:maven-resources-plugin:testResources
|
||||||
|
</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||||
|
<package>org.apache.maven.plugins:maven-war-plugin:war</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: war-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| EAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>ear</role-hint>
|
<role-hint>ear</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>ear</type>
|
<type>ear</type>
|
||||||
<includesDependencies>true</includesDependencies>
|
<includesDependencies>true</includesDependencies>
|
||||||
|
@ -107,25 +348,38 @@
|
||||||
<addedToClasspath>false</addedToClasspath>
|
<addedToClasspath>false</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
<role-hint>ejb-client</role-hint>
|
<role-hint>ear</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>ejb-client</type>
|
<lifecycles>
|
||||||
<extension>jar</extension>
|
<lifecycle>
|
||||||
<packaging>ejb</packaging>
|
<id>default</id>
|
||||||
<classifier>client</classifier>
|
<!-- START SNIPPET: ear-lifecycle -->
|
||||||
<language>java</language>
|
<phases>
|
||||||
<addedToClasspath>true</addedToClasspath>
|
<generate-resources>
|
||||||
|
org.apache.maven.plugins:maven-ear-plugin:generate-application-xml
|
||||||
|
</generate-resources>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
|
<package>org.apache.maven.plugins:maven-ear-plugin:ear</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: ear-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| RAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>rar</role-hint>
|
<role-hint>rar</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>rar</type>
|
<type>rar</type>
|
||||||
<includesDependencies>true</includesDependencies>
|
<includesDependencies>true</includesDependencies>
|
||||||
|
@ -133,11 +387,41 @@
|
||||||
<addedToClasspath>false</addedToClasspath>
|
<addedToClasspath>false</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
<component>
|
||||||
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
|
<role-hint>rar</role-hint>
|
||||||
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
|
<configuration>
|
||||||
|
<lifecycles>
|
||||||
|
<lifecycle>
|
||||||
|
<id>default</id>
|
||||||
|
<!-- START SNIPPET: rar-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||||
|
<process-test-resources>
|
||||||
|
org.apache.maven.plugins:maven-resources-plugin:testResources
|
||||||
|
</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||||
|
<package>org.apache.maven.plugins:maven-rar-plugin:rar</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: rar-lifecycle -->
|
||||||
|
</lifecycle>
|
||||||
|
</lifecycles>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
|
||||||
|
<!------------------------------------------------------------------------
|
||||||
|
| PAR
|
||||||
|
|----------------------------------------------------------------------->
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
||||||
<role-hint>par</role-hint>
|
<role-hint>par</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
|
||||||
|
</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>par</type>
|
<type>par</type>
|
||||||
<includesDependencies>true</includesDependencies>
|
<includesDependencies>true</includesDependencies>
|
||||||
|
@ -145,16 +429,25 @@
|
||||||
<addedToClasspath>false</addedToClasspath>
|
<addedToClasspath>false</addedToClasspath>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
|
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
||||||
<role-hint>ejb3</role-hint>
|
<role-hint>par</role-hint>
|
||||||
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
|
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
||||||
<configuration>
|
<configuration>
|
||||||
<type>ejb3</type>
|
<!-- START SNIPPET: par-lifecycle -->
|
||||||
<includesDependencies>true</includesDependencies>
|
<phases>
|
||||||
<language>java</language>
|
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||||
<addedToClasspath>false</addedToClasspath>
|
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||||
|
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
|
||||||
|
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||||
|
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||||
|
<package>
|
||||||
|
org.apache.maven.plugins:maven-par-plugin:par
|
||||||
|
</package>
|
||||||
|
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||||
|
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: par-lifecycle -->
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
</components>
|
</components>
|
||||||
|
|
|
@ -17,6 +17,13 @@ specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
There is currently only one component descriptor that cannot be generated from annotations because
|
||||||
|
of the accompanying configurationl. Our options are to embed this information programatically or
|
||||||
|
use a configuration source to pull in the lifecycle information.
|
||||||
|
|
||||||
|
-->
|
||||||
<component-set>
|
<component-set>
|
||||||
<components>
|
<components>
|
||||||
<component>
|
<component>
|
||||||
|
@ -120,247 +127,5 @@ under the License.
|
||||||
<!-- END SNIPPET: default-reports -->
|
<!-- END SNIPPET: default-reports -->
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
<!-- TODO: issues with the lifecycle:
|
|
||||||
- manually configured lifecycles will not pick up any later additions to the defaults where they are intended to extend defaults (have configuration <includeDefaults/> ?)
|
|
||||||
-->
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>pom</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: pom-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<package>org.apache.maven.plugins:maven-site-plugin:attach-descriptor</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<optional-mojos>
|
|
||||||
<optional-mojo>org.apache.maven.plugins:maven-site-plugin:attach-descriptor</optional-mojo>
|
|
||||||
</optional-mojos>
|
|
||||||
<!-- END SNIPPET: pom-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>jar</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: jar-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>
|
|
||||||
org.apache.maven.plugins:maven-resources-plugin:testResources
|
|
||||||
</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>
|
|
||||||
org.apache.maven.plugins:maven-jar-plugin:jar
|
|
||||||
</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: jar-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>maven-plugin</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: maven-plugin-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<generate-resources>org.apache.maven.plugins:maven-plugin-plugin:descriptor</generate-resources>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>
|
|
||||||
org.apache.maven.plugins:maven-resources-plugin:testResources
|
|
||||||
</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>
|
|
||||||
org.apache.maven.plugins:maven-jar-plugin:jar,
|
|
||||||
org.apache.maven.plugins:maven-plugin-plugin:addPluginArtifactMetadata
|
|
||||||
</package>
|
|
||||||
<install>
|
|
||||||
org.apache.maven.plugins:maven-install-plugin:install,
|
|
||||||
org.apache.maven.plugins:maven-plugin-plugin:updateRegistry
|
|
||||||
</install>
|
|
||||||
<deploy>
|
|
||||||
org.apache.maven.plugins:maven-deploy-plugin:deploy
|
|
||||||
</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: maven-plugin-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>ejb</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: ejb-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>
|
|
||||||
org.apache.maven.plugins:maven-resources-plugin:testResources
|
|
||||||
</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>
|
|
||||||
org.apache.maven.plugins:maven-ejb-plugin:ejb
|
|
||||||
</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: ejb-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>war</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: war-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>
|
|
||||||
org.apache.maven.plugins:maven-resources-plugin:testResources
|
|
||||||
</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>org.apache.maven.plugins:maven-war-plugin:war</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: war-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>ear</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: ear-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<generate-resources>
|
|
||||||
org.apache.maven.plugins:maven-ear-plugin:generate-application-xml
|
|
||||||
</generate-resources>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<package>org.apache.maven.plugins:maven-ear-plugin:ear</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: ear-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>rar</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<lifecycles>
|
|
||||||
<lifecycle>
|
|
||||||
<id>default</id>
|
|
||||||
<!-- START SNIPPET: rar-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>
|
|
||||||
org.apache.maven.plugins:maven-resources-plugin:testResources
|
|
||||||
</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>org.apache.maven.plugins:maven-rar-plugin:rar</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: rar-lifecycle -->
|
|
||||||
</lifecycle>
|
|
||||||
</lifecycles>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>par</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<!-- START SNIPPET: par-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>
|
|
||||||
org.apache.maven.plugins:maven-par-plugin:par
|
|
||||||
</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: par-lifecycle -->
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>ejb3</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<!-- START SNIPPET: ejb3-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
|
||||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
|
||||||
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
|
|
||||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
|
||||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
|
||||||
<package>
|
|
||||||
org.apache.maven.plugins:maven-ejb3-plugin:ejb3
|
|
||||||
</package>
|
|
||||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
|
||||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: ejb3-lifecycle -->
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
</components>
|
</components>
|
||||||
</component-set>
|
</component-set>
|
||||||
|
|
Loading…
Reference in New Issue