diff --git a/ear/plugin.jelly b/ear/plugin.jelly index 85b0745b..08792057 100644 --- a/ear/plugin.jelly +++ b/ear/plugin.jelly @@ -4,7 +4,9 @@ xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:license="license" - xmlns:util="jelly:util"> + xmlns:util="jelly:util" + xmlns:x="jelly:xml" + > @@ -24,11 +26,18 @@ - Building EAR ${maven.final.name} with appxml "${maven.ear.appxml}" - - - + + + + + + + + + Building EAR ${maven.final.name} with appxml "${maven.ear.appxml}" + @@ -39,21 +48,26 @@ - - - - - - - - - - - - - - - + + Bundling: ${dep.type} + + + + + + + + + + + + + + + + + + @@ -100,7 +114,51 @@ - + + + + + + + + Generating appxml file:"${maven.ear.appxml}" + + + + ${maven.ear.displayname} + + + + + + + ${dep.getArtifact()} + ${dep.getProperty('ear.appxml.war.context-root')} + + + + + + ${dep.getArtifact()} + + + + + ${dep.getArtifact()} + + + + + + + + + + diff --git a/ear/plugin.properties b/ear/plugin.properties index dc9eb011..6b6c089f 100644 --- a/ear/plugin.properties +++ b/ear/plugin.properties @@ -9,4 +9,5 @@ maven.ear.src=${maven.src.dir}/application maven.ear.descriptordir=${maven.ear.src}/META-INF maven.ear.appxml=${maven.ear.descriptordir}/application.xml maven.ear.manifest=${maven.ear.descriptordir}/MANIFEST.MF - +maven.ear.appxml.generate=false +maven.ear.displayname=${pom.id} diff --git a/ear/project.xml b/ear/project.xml index 564bc7a6..9bd534c7 100644 --- a/ear/project.xml +++ b/ear/project.xml @@ -5,7 +5,7 @@ 3 maven-ear-plugin Maven EAR Plugin - 1.0 + 1.1 Ear Plugin for Maven Ear Plugin for Maven http://maven.apache.org/reference/plugins/ear/ @@ -35,6 +35,15 @@ Java Developer + + Michal Maczka + michal + michal.maczka@dimatics.com + + + Java Developer + + diff --git a/ear/xdocs/changes.xml b/ear/xdocs/changes.xml index ae52be5f..8c71eb94 100644 --- a/ear/xdocs/changes.xml +++ b/ear/xdocs/changes.xml @@ -10,6 +10,11 @@ Initial plugin created + + + Added autogeneration of application.xml file + + diff --git a/ear/xdocs/goals.xml b/ear/xdocs/goals.xml index 3cd0b37a..156fb404 100644 --- a/ear/xdocs/goals.xml +++ b/ear/xdocs/goals.xml @@ -28,5 +28,13 @@ + + + ear:generate-ear-descriptor + + Generates application.xml + file based on information from POM + + diff --git a/ear/xdocs/properties.xml b/ear/xdocs/properties.xml index 185a6f31..f55a2e6b 100644 --- a/ear/xdocs/properties.xml +++ b/ear/xdocs/properties.xml @@ -20,6 +20,42 @@ src/application/META-INF/MANIFEST.MF + + maven.j2ee.ear.appxml + Yes + + Location of the application.xml file + to be used within the ear file. + + + src/application/META-INF/application.xml + + + + maven.j2ee.ear.appxml.generate + Yes + + Indicates if application.xml files should + be autogenerated + + + false + + + + maven.ear.displayname + Yes + + Display name of the application to be used + when application.xml file is autogenerated + + + ${pom.id} + + + + +
@@ -41,23 +77,45 @@
-
+

- You must tell Maven what jars you want included in the ear. This - is achieved by specifying meta-information in the POM, using the + You must tell Maven what artifact you want to include in the ear. + This operation is type sensitive. + Maven can bundle in ear artifacts of following types: jar, war, ejb. + Artifacts of other types are ignored. + This is achieved by specifying meta-information in the POM, using the following syntax:

- jarid - jarversion + id + aversion + jar - true + true ]]> - +

+ +

+ Those artifact will be also "visible" during generation + of application.xml file. In case of war artifacts you can also + specify context root which will be set in application.xml file: +

+ + your_war + your_version + war + + true + maven + + + ]]> +