diff --git a/ear/plugin.jelly b/ear/plugin.jelly index 29a73fcf..4200a24c 100644 --- a/ear/plugin.jelly +++ b/ear/plugin.jelly @@ -46,6 +46,11 @@ + + + Properties maven.ear.src and maven.ear.resources cannot have the same value + + diff --git a/ear/src/plugin-test/test05/.cvsignore b/ear/src/plugin-test/test05/.cvsignore new file mode 100644 index 00000000..85de9cf9 --- /dev/null +++ b/ear/src/plugin-test/test05/.cvsignore @@ -0,0 +1 @@ +src diff --git a/ear/src/plugin-test/test05/maven.xml b/ear/src/plugin-test/test05/maven.xml new file mode 100644 index 00000000..11b88f2f --- /dev/null +++ b/ear/src/plugin-test/test05/maven.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + Properties maven.ear.src and maven.ear.resources must be set with the same value + + + + + + + + ear goal should have failed + + + + + + diff --git a/ear/src/plugin-test/test05/project.properties b/ear/src/plugin-test/test05/project.properties new file mode 100644 index 00000000..3350e9d7 --- /dev/null +++ b/ear/src/plugin-test/test05/project.properties @@ -0,0 +1,16 @@ +# ------------------------------------------------------------------- +# Copyright 2001-2004 The Apache Software Foundation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ------------------------------------------------------------------- +maven.ear.src=${maven.ear.resources} diff --git a/ear/src/plugin-test/test05/project.xml b/ear/src/plugin-test/test05/project.xml new file mode 100644 index 00000000..eb012aaa --- /dev/null +++ b/ear/src/plugin-test/test05/project.xml @@ -0,0 +1,35 @@ + + + + + 3 + Test project for Maven Ear Plugin 05 + test-maven-ear-plugin-05 + 2004 + Makes sure maven.src.dir and maven.ear.resources are not the same + Makes sure the maven.src.dir and maven.ear.resources properties do not have the same value (see issue MPEAR-24) + + + + Felipe Leme + felipeal + Jelly Developer + + + diff --git a/ear/xdocs/changes.xml b/ear/xdocs/changes.xml index 4c64ba5a..5264718a 100644 --- a/ear/xdocs/changes.xml +++ b/ear/xdocs/changes.xml @@ -25,6 +25,7 @@ + Properties maven.ear.src and maven.ear.resources now cannot have the same value. application.xml is now generated at maven.build.dir Add new property dependency (ear.bundle.name) to define the name a dependency should have the EAR. Changed the default value of maven.ear.displayname. diff --git a/ear/xdocs/properties.xml b/ear/xdocs/properties.xml index 8c964a8f..c1e473b5 100644 --- a/ear/xdocs/properties.xml +++ b/ear/xdocs/properties.xml @@ -85,7 +85,7 @@ maven.ear.resources Yes - Directory that resources are copied to during the build + Directory that resources are copied to during the build.NOTE: cannot have the same value of ${maven.ear.src}! ${maven.build.dir}/ear @@ -95,7 +95,7 @@ maven.ear.src Yes - Single directory for extra files to include in the EAR + Single directory for extra files to include in the EAR. NOTE: cannot have the same value of ${maven.ear.resources}! ${maven.src.dir}/application