From b8ed3329151e214a57f9df7d30219ec76894d9be Mon Sep 17 00:00:00 2001 From: aheritier Date: Sat, 26 Feb 2005 23:44:58 +0000 Subject: [PATCH] MPANT-21 : "get-deps" target store downloads to the default local maven repository (${user.home}/.maven/repository). git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@155601 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin-resources/templates/build.jelly | 22 +-- ant/src/plugin-test/build.properties | 4 +- ant/xdocs/ant-settings.xml | 145 +++++++++--------- ant/xdocs/changes.xml | 1 + 4 files changed, 90 insertions(+), 82 deletions(-) diff --git a/ant/src/plugin-resources/templates/build.jelly b/ant/src/plugin-resources/templates/build.jelly index 9567153b..1b9fb581 100644 --- a/ant/src/plugin-resources/templates/build.jelly +++ b/ant/src/plugin-resources/templates/build.jelly @@ -54,7 +54,9 @@ - + + + @@ -79,9 +81,10 @@ - - - + + + + - + + + - - - + + diff --git a/ant/src/plugin-test/build.properties b/ant/src/plugin-test/build.properties index b742c2db..6afc3b3a 100644 --- a/ant/src/plugin-test/build.properties +++ b/ant/src/plugin-test/build.properties @@ -1,2 +1,4 @@ # Test MPANT-20 -maven-jaxb-plugin.jar=http://ovh.dl.sourceforge.net/sourceforge/maven-plugins/maven-jaxb-plugin-1.0.jar \ No newline at end of file +maven-jaxb-plugin.jar=http://ovh.dl.sourceforge.net/sourceforge/maven-plugins/maven-jaxb-plugin-1.0.jar +# For maven users it is better to use the real repository and not the default one. +libdir=${maven.repo.local} \ No newline at end of file diff --git a/ant/xdocs/ant-settings.xml b/ant/xdocs/ant-settings.xml index 54a9ed1b..eb1fd0db 100644 --- a/ant/xdocs/ant-settings.xml +++ b/ant/xdocs/ant-settings.xml @@ -33,78 +33,79 @@

If this property is setted to false the generated build file doesn't load this properties, so it will help you to avoid conflicts.

The following properties are defined in the build files and thus can be overridden in the files described previously :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Property nameDescriptionDefault value
defaulttargetdirThe directory where the generated files are stored${basedir}/target
libdirThe directory where are downloaded dependencies${basedir}/target/lib
classesdirThe directory where compiled classes are stored${basedir}/target/classes
testclassesdirThe directory where compiled classes for unit tests are stored (only if there are unit tests classes in your project)${basedir}/target/test-classes
testreportdirThe directory where tests reports are stored (only if there are unit tests classes in your project)${basedir}/target/test-reports
distdirThe directory where the distribution is created${basedir}/dist
javadocdirThe directory where is stored the javadoc${basedir}/dist/docs/api
final.nameThe name used for the generated jar${maven.final.name}
${dep.artifactId}.jarA property is created for each project's dependency (for example : activation.jar). This property can be used to override the default url used to download the dependency (for example : activation.jar=http://myhost/repository/sun/jars/activation-1.0.2.jar)
proxy.hostThe proxy host used to download dependencies.${maven.proxy.host}
proxy.portThe proxy port.${maven.proxy.port}
proxy.usernameThe username used to connect on proxy. (only if the ant file was generated with a 1.6 compatibility)${maven.proxy.username}
proxy.passwordThe password used to connect on proxy. (only if the ant file was generated with a 1.6 compatibility)${maven.proxy.password}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Property nameDescriptionDefault value
defaulttargetdirThe directory where the generated files are stored${basedir}/target
libdirThe directory where are downloaded dependencies (default maven local repository). If you prefer you can use something like ${defaulttargetdir}/lib.${user.home}/.maven/repository
classesdirThe directory where compiled classes are stored${basedir}/target/classes
testclassesdirThe directory where compiled classes for unit tests are stored (only if there are unit tests classes in your project)${basedir}/target/test-classes
testreportdirThe directory where tests reports are stored (only if there are unit tests classes in your project)${basedir}/target/test-reports
distdirThe directory where the distribution is created${basedir}/dist
javadocdirThe directory where is stored the javadoc${basedir}/dist/docs/api
final.nameThe name used for the generated jar${maven.final.name}
+ ${dep.artifactId}.jarA property is created for each project's dependency (for example : activation.jar). This property can be used to override the default url used to download the dependency (for example : activation.jar=http://myhost/repository/sun/jars/activation-1.0.2.jar) +
proxy.hostThe proxy host used to download dependencies.${maven.proxy.host}
proxy.portThe proxy port.${maven.proxy.port}
proxy.usernameThe username used to connect on proxy. (only if the ant file was generated with a 1.6 compatibility)${maven.proxy.username}
proxy.passwordThe password used to connect on proxy. (only if the ant file was generated with a 1.6 compatibility)${maven.proxy.password}

The main targets defined in the generated ant's buildfile are :

diff --git a/ant/xdocs/changes.xml b/ant/xdocs/changes.xml index c2bc3318..5afb6a2b 100644 --- a/ant/xdocs/changes.xml +++ b/ant/xdocs/changes.xml @@ -28,6 +28,7 @@ Allow URL substitutions in generated build.xml files. Ant user can set proxy settings. New property maven.ant.compatibility if you want a script compatible with ant 1.5 (actually for proxy settings). + "get-deps" target store downloads to the default local maven repository (${user.home}/.maven/repository). Use relative paths in test resources filesets.