diff options
| author | Robert Gemmell <robbie@apache.org> | 2011-02-08 15:37:06 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2011-02-08 15:37:06 +0000 |
| commit | d80f4226896d197e9b1a1927f91834645acf3767 (patch) | |
| tree | 3007fe12cd00931b354d3977ce77613774441281 /qpid/java/module.xml | |
| parent | a29776890132dd509cdfd2ce12459d9016b6683c (diff) | |
| download | qpid-python-d80f4226896d197e9b1a1927f91834645acf3767.tar.gz | |
QPID-1916: default to using a local repo in the scratch dir (configurable with maven.local.repo), generate poms into the scratch dir, make the artifacts a SNAPSHOT version by default (configurable with maven.snapshot), and tweak the SNAPSHOT output version naming not to be unique (configurable with maven.unique.version)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1068445 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/module.xml')
| -rw-r--r-- | qpid/java/module.xml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/qpid/java/module.xml b/qpid/java/module.xml index 877ca130af..d3954a1544 100644 --- a/qpid/java/module.xml +++ b/qpid/java/module.xml @@ -219,10 +219,10 @@ <args> <arg line='"${project.root}/genpom"'/> <arg line='-s "${project.root}/lib/poms"'/> - <arg line='-o "${build}/qpid-${module.name}.pom"'/> + <arg line='-o "${build.scratch}/qpid-${module.name}.pom"'/> <arg line="-u http://qpid.apache.org"/> <arg line="-g org.apache.qpid"/> - <arg line="-v ${project.version}"/> + <arg line="-v ${project.version}${maven.version.suffix}"/> <arg line="-p qpid"/> <arg line='-m "${module.depends}"'/> <arg line="-a ${module.name}"/> @@ -235,12 +235,15 @@ <target name="release-mvn" depends="pom" if="module.genpom" description="Install the artifacts into the local repository and prepare the release"> <antcall target="build"/> - <artifact:pom id="module.pom" file="${build}/qpid-${module.name}.pom"/> + <artifact:pom id="module.pom" file="${build.scratch}/qpid-${module.name}.pom"/> - <artifact:install file="${module.jar}" pomRefId="module.pom"/> + <artifact:install file="${module.jar}" pomRefId="module.pom"> + <localRepository path="${maven.local.repo}"/> + </artifact:install> - <artifact:deploy file="${module.jar}" pomRefId="module.pom"> + <artifact:deploy file="${module.jar}" pomRefId="module.pom" uniqueVersion="${maven.unique.version}"> <attach file="${module.source.jar}" classifier="sources"/> + <localRepository path="${maven.local.repo}"/> <remoteRepository url="file://${module.release.base}/maven"/> </artifact:deploy> </target> |
