From 05a5ec113e5187efdf88b658ea98b6cc80d63625 Mon Sep 17 00:00:00 2001 From: felipeal Date: Mon, 18 Oct 2004 17:19:31 +0000 Subject: [PATCH] MPJAR-38: added property maven.jar.final.name git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116150 13f79535-47bb-0310-9956-ffa450edef68 --- jar/plugin.jelly | 10 ++-- jar/plugin.properties | 1 + jar/project.xml | 2 +- jar/src/plugin-test/.cvsignore | 5 ++ jar/src/plugin-test/maven.xml | 22 ++++++++ jar/src/plugin-test/project.xml | 43 +++++++++++++++ jar/src/plugin-test/test01/.cvsignore | 2 + jar/src/plugin-test/test01/maven.xml | 34 ++++++++++++ jar/src/plugin-test/test01/project.properties | 1 + jar/src/plugin-test/test01/project.xml | 52 +++++++++++++++++++ jar/xdocs/changes.xml | 3 ++ jar/xdocs/properties.xml | 9 ++++ 12 files changed, 178 insertions(+), 6 deletions(-) create mode 100644 jar/src/plugin-test/.cvsignore create mode 100644 jar/src/plugin-test/maven.xml create mode 100644 jar/src/plugin-test/project.xml create mode 100644 jar/src/plugin-test/test01/.cvsignore create mode 100644 jar/src/plugin-test/test01/maven.xml create mode 100644 jar/src/plugin-test/test01/project.properties create mode 100644 jar/src/plugin-test/test01/project.xml diff --git a/jar/plugin.jelly b/jar/plugin.jelly index 88657442..891afb15 100644 --- a/jar/plugin.jelly +++ b/jar/plugin.jelly @@ -66,7 +66,7 @@ @@ -225,7 +225,7 @@ description="Deploy a jar to the remote repository"> @@ -239,7 +239,7 @@ description="Install the jar in the local repository"> @@ -254,7 +254,7 @@ description="Install a snapshot jar in the local repository"> diff --git a/jar/plugin.properties b/jar/plugin.properties index cc400958..97bb6053 100644 --- a/jar/plugin.properties +++ b/jar/plugin.properties @@ -24,3 +24,4 @@ maven.jar.manifest.extensions.add=false maven.jar.excludes = **/package.html maven.jar.index=false maven.jar.compress=true +maven.jar.final.name = ${maven.final.name}.jar diff --git a/jar/project.xml b/jar/project.xml index 292dd433..ba6ac860 100644 --- a/jar/project.xml +++ b/jar/project.xml @@ -23,7 +23,7 @@ 3 maven-jar-plugin Maven Jar Plug-in - 1.6 + 1.7-SNAPSHOT Plugin for creating JAR files. Requires Maven 1.0 RC2. Create jar files http://maven.apache.org/reference/plugins/jar/ diff --git a/jar/src/plugin-test/.cvsignore b/jar/src/plugin-test/.cvsignore new file mode 100644 index 00000000..64d85f5a --- /dev/null +++ b/jar/src/plugin-test/.cvsignore @@ -0,0 +1,5 @@ +gump.xml +*.log +targetdist +dist +target diff --git a/jar/src/plugin-test/maven.xml b/jar/src/plugin-test/maven.xml new file mode 100644 index 00000000..339f04bd --- /dev/null +++ b/jar/src/plugin-test/maven.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/jar/src/plugin-test/project.xml b/jar/src/plugin-test/project.xml new file mode 100644 index 00000000..da4748c1 --- /dev/null +++ b/jar/src/plugin-test/project.xml @@ -0,0 +1,43 @@ + + + + + + 3 + test-maven-jar-plugin + Test project for Maven Jar Plugin + maven + 1.0 + + Apache Software Foundation + http://www.apache.org/ + http://maven.apache.org/images/apache-maven-project.png + + 2001 + org.apache.maven + http://maven.apache.org/images/maven.gif + Test for Maven Jar plugin + Test for Maven Jar plugin + http://maven.apache.org/reference/plugins/jar/ + /www/maven.apache.org/reference/plugins/jar/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/jar/ + http://cvs.apache.org/viewcvs/maven-plugins/jar/ + + \ No newline at end of file diff --git a/jar/src/plugin-test/test01/.cvsignore b/jar/src/plugin-test/test01/.cvsignore new file mode 100644 index 00000000..4e1b955e --- /dev/null +++ b/jar/src/plugin-test/test01/.cvsignore @@ -0,0 +1,2 @@ +*.log +target diff --git a/jar/src/plugin-test/test01/maven.xml b/jar/src/plugin-test/test01/maven.xml new file mode 100644 index 00000000..7fe035de --- /dev/null +++ b/jar/src/plugin-test/test01/maven.xml @@ -0,0 +1,34 @@ + + + + + + + + + + Jar with customized name (${maven.jar.final.name}) not build! + + + + + \ No newline at end of file diff --git a/jar/src/plugin-test/test01/project.properties b/jar/src/plugin-test/test01/project.properties new file mode 100644 index 00000000..4091cebd --- /dev/null +++ b/jar/src/plugin-test/test01/project.properties @@ -0,0 +1 @@ +maven.jar.final.name=whatever.jar diff --git a/jar/src/plugin-test/test01/project.xml b/jar/src/plugin-test/test01/project.xml new file mode 100644 index 00000000..9f94d04a --- /dev/null +++ b/jar/src/plugin-test/test01/project.xml @@ -0,0 +1,52 @@ + + + + + + 3 + test-maven-jar-plugin-MPJAR-38 + Maven Jar Plugin 01 + maven + 1.0 + + Apache Software Foundation + http://www.apache.org/ + http://maven.apache.org/images/apache-maven-project.png + + 2001 + org.apache.maven + http://maven.apache.org/images/maven.gif + Test for Maven Jar plugin, issue MPJAR-38 + MPJAR-38 + http://maven.apache.org/reference/plugins/jar/ + /www/maven.apache.org/reference/plugins/jar/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/jar/ + http://cvs.apache.org/viewcvs/maven-plugins/jar/ + + + + Felipe Leme + felipeal + maven@felipeal.net + Falcon Informatica + -3 + + + diff --git a/jar/xdocs/changes.xml b/jar/xdocs/changes.xml index c7553ffd..59e362e1 100644 --- a/jar/xdocs/changes.xml +++ b/jar/xdocs/changes.xml @@ -25,6 +25,9 @@ dIon Gillard + + Added new property maven.jar.final.name. + Deprecated jar:snapshot Use the artifact plugin for installation diff --git a/jar/xdocs/properties.xml b/jar/xdocs/properties.xml index 4d8a0cf4..5a1e0ec4 100644 --- a/jar/xdocs/properties.xml +++ b/jar/xdocs/properties.xml @@ -28,6 +28,15 @@
+ + + + + +
PropertyOptional?Description
maven.jar.final.nameYes + Name of the generated JAR file. + Defaults to ${maven.final.name}.jar. +
maven.has.jar.resource.patterns Yes