From b386ecf85d85a618e77c13465b01fab0bb94b803 Mon Sep 17 00:00:00 2001 From: felipeal Date: Thu, 11 Nov 2004 03:28:41 +0000 Subject: [PATCH] MPEAR-23: added new property (ear.target.path) that sets where a dependency is located inside the ear git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116224 13f79535-47bb-0310-9956-ffa450edef68 --- ear/plugin.jelly | 19 +++++++-- ear/src/plugin-test/test02/maven.xml | 49 +++++++++++++++++++++ ear/src/plugin-test/test02/project.xml | 59 ++++++++++++++++++++++++++ ear/xdocs/changes.xml | 1 + ear/xdocs/properties.xml | 21 +++++++-- 5 files changed, 142 insertions(+), 7 deletions(-) create mode 100644 ear/src/plugin-test/test02/maven.xml create mode 100644 ear/src/plugin-test/test02/project.xml diff --git a/ear/plugin.jelly b/ear/plugin.jelly index 8e9c471e..1f290514 100644 --- a/ear/plugin.jelly +++ b/ear/plugin.jelly @@ -85,10 +85,21 @@ Bundling: ${dep.type} - ${dep.id} - ${dep.version} - - - - + + + + + + + + + + + + + + + diff --git a/ear/src/plugin-test/test02/maven.xml b/ear/src/plugin-test/test02/maven.xml new file mode 100644 index 00000000..fea040fa --- /dev/null +++ b/ear/src/plugin-test/test02/maven.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ear/src/plugin-test/test02/project.xml b/ear/src/plugin-test/test02/project.xml new file mode 100644 index 00000000..8c3dcea7 --- /dev/null +++ b/ear/src/plugin-test/test02/project.xml @@ -0,0 +1,59 @@ + + + + + + 3 + Test project for Maven Ear Plugin 02 + test-maven-ear-plugin-02 + + Queensland Government + www.qld.gov.au + + 2004 + au.gov.qld + Test for Jar paths in Ears + Test that a jar is packaged in the path specified in the project file + + + + Wiley Fuller + wfuller + wfuller@... + Queensland Government + Java Developer + + + + + commons-logging + commons-logging + 1.0.3 + http://jakarta.apache.org/commons/logging.html + + true + APP-INF/lib + + + + + ${basedir}/src + ${basedir}/src/test + + diff --git a/ear/xdocs/changes.xml b/ear/xdocs/changes.xml index 0e23c1b2..a8da879f 100644 --- a/ear/xdocs/changes.xml +++ b/ear/xdocs/changes.xml @@ -25,6 +25,7 @@ + Add new property dependency(ear.target.path) to define where a dependency should be added in the EAR. Build now fails in some cases were the dependencies are copied with wrong case. Added property maven.ear.appxml.encoding. diff --git a/ear/xdocs/properties.xml b/ear/xdocs/properties.xml index 42828966..2ab7e13c 100644 --- a/ear/xdocs/properties.xml +++ b/ear/xdocs/properties.xml @@ -153,9 +153,9 @@ ]]> - +

- Those artifact will be also "visible" during generation + Those artifacts 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:

@@ -173,7 +173,22 @@ ]]>

- Please note that if a jar is a java client module, you will need to declare + Note that by default the artifacts will be bundled in the EAR's root directory. To change the location where an artifact is bundled, please use the ear.target.path property: +

+ + groupId + jarArtifactId + aversion + jar + + true + APP-INF/lib + + + ]]> +

+ Finally, please note that if a jar is a java client module, you will need to declare it using the ear.module property, rather than ear.bundle: