You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guo Du <mr...@duguo.org> on 2011/01/08 10:27:28 UTC

placeholder in settings repo url doesn't get replaced

Hi,

I did following testing, and get reproducible result:

$ mvn -gs settings-placeholder-in-central-repo-url.xml -f
pom-without-partent.xml clean
Downloading: http://localhost:9001/public/releases/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom

$ mvn -gs settings-placeholder-in-central-repo-url.xml -f
pom-with-partent.xml clean
Downloading: ${centralRepoUrl}/org/apache/apache/7/apache-7.pom

You can see that the place holder isn't replaced for pom with parent
defined. And in both case, the place holder in localRepository section
never get replaced correctly (you will have a folder named
"${project.build.directory}" in current build folder).

Do we have the best practice: DO NOT use place holder in repository
management except deployment?


Those xml files are in attachment and you can guess what's inside by
it's name. In the test, maven version is 3.0.1. Maven 2.2.1 has
slightly different but unexpected result as well.


Thanks!

-Guo