mirror of https://github.com/apache/maven.git
move main J2EE packaging definitions back to being built in
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
443a67df1d
commit
2d666f57a7
|
@ -269,8 +269,8 @@ public class DefaultLifecycleExecutor
|
||||||
String goal = tok.nextToken().trim();
|
String goal = tok.nextToken().trim();
|
||||||
|
|
||||||
MojoDescriptor mojoDescriptor = getMojoDescriptor( goal, session, project );
|
MojoDescriptor mojoDescriptor = getMojoDescriptor( goal, session, project );
|
||||||
addToLifecycleMappings( lifecycleMappings, phase, new MojoExecution( mojoDescriptor ), session
|
addToLifecycleMappings( lifecycleMappings, phase, new MojoExecution( mojoDescriptor ),
|
||||||
.getSettings() );
|
session.getSettings() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -217,6 +217,62 @@
|
||||||
</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>
|
||||||
|
<!-- START SNIPPET: ejb-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>resources:resources</process-resources>
|
||||||
|
<compile>compiler:compile</compile>
|
||||||
|
<process-test-resources>resources:testResources</process-test-resources>
|
||||||
|
<test-compile>compiler:testCompile</test-compile>
|
||||||
|
<test>surefire:test</test>
|
||||||
|
<package>ejb:ejb,source:jar</package>
|
||||||
|
<install>install:install</install>
|
||||||
|
<deploy>deploy:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: ejb-lifecycle -->
|
||||||
|
</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>
|
||||||
|
<!-- START SNIPPET: war-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<process-resources>resources:resources</process-resources>
|
||||||
|
<compile>compiler:compile</compile>
|
||||||
|
<process-test-resources>resources:testResources</process-test-resources>
|
||||||
|
<test-compile>compiler:testCompile</test-compile>
|
||||||
|
<test>surefire:test</test>
|
||||||
|
<package>war:war</package>
|
||||||
|
<install>install:install</install>
|
||||||
|
<deploy>deploy:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: war-lifecycle -->
|
||||||
|
</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>
|
||||||
|
<!-- START SNIPPET: ear-lifecycle -->
|
||||||
|
<phases>
|
||||||
|
<generate-resources>ear:generate-application-xml</generate-resources>
|
||||||
|
<package>ear:ear</package>
|
||||||
|
<install>install:install</install>
|
||||||
|
<deploy>deploy:deploy</deploy>
|
||||||
|
</phases>
|
||||||
|
<!-- END SNIPPET: ear-lifecycle -->
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.maven.plugin.version.PluginVersionManager</role>
|
<role>org.apache.maven.plugin.version.PluginVersionManager</role>
|
||||||
<role-hint>default</role-hint>
|
<role-hint>default</role-hint>
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
<component-set>
|
|
||||||
<components>
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>ear</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<!-- START SNIPPET: ear-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<generate-resources>ear:generate-application-xml</generate-resources>
|
|
||||||
<package>ear:ear</package>
|
|
||||||
<install>install:install</install>
|
|
||||||
<deploy>deploy:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: ear-lifecycle -->
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
</components>
|
|
||||||
</component-set>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<component-set>
|
|
||||||
<components>
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>ejb</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<!-- START SNIPPET: ejb-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>resources:resources</process-resources>
|
|
||||||
<compile>compiler:compile</compile>
|
|
||||||
<process-test-resources>resources:testResources</process-test-resources>
|
|
||||||
<test-compile>compiler:testCompile</test-compile>
|
|
||||||
<test>surefire:test</test>
|
|
||||||
<package>ejb:ejb,source:jar</package>
|
|
||||||
<install>install:install</install>
|
|
||||||
<deploy>deploy:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: ejb-lifecycle -->
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
</components>
|
|
||||||
</component-set>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<component-set>
|
|
||||||
<components>
|
|
||||||
<component>
|
|
||||||
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
|
|
||||||
<role-hint>war</role-hint>
|
|
||||||
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
|
|
||||||
<configuration>
|
|
||||||
<!-- START SNIPPET: war-lifecycle -->
|
|
||||||
<phases>
|
|
||||||
<process-resources>resources:resources</process-resources>
|
|
||||||
<compile>compiler:compile</compile>
|
|
||||||
<process-test-resources>resources:testResources</process-test-resources>
|
|
||||||
<test-compile>compiler:testCompile</test-compile>
|
|
||||||
<test>surefire:test</test>
|
|
||||||
<package>war:war</package>
|
|
||||||
<install>install:install</install>
|
|
||||||
<deploy>deploy:deploy</deploy>
|
|
||||||
</phases>
|
|
||||||
<!-- END SNIPPET: war-lifecycle -->
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
</components>
|
|
||||||
</component-set>
|
|
Loading…
Reference in New Issue