Generated ant copy commands in package target point to hard-coded local
repository instead of ${maven.repo.local}
-----------------------------------------------------------------------------------------------------------------
Key: MANT-44
URL: http://jira.codehaus.org/browse/MANT-44
Project: Maven 2.x Ant Plugin
Issue Type: Bug
Affects Versions: 2.1
Environment: Windows XP Professional SP2
Reporter: Travis Martensen
When generating a build file, copy commands in the "package" target are
hard-coded to the local repository, even with no hard-coded paths in the POM.
I'm guessing the hard-coded path should be replaced with ${maven.repo.local}.
Example:
{code:xml}
<target name="package" depends="compile,test" description="Package the
application">
<mkdir dir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\apache\wicket\wicket\1.3.3\wicket-1.3.3.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\apache\wicket\wicket-extensions\1.3.3\wicket-extensions-1.3.3.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\slf4j\slf4j-log4j12\1.4.2\slf4j-log4j12-1.4.2.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\hibernate\hibernate\3.2.6.ga\hibernate-3.2.6.ga.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\springframework\spring\2.5.4\spring-2.5.4.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\apache\wicket\wicket-spring\1.3.3\wicket-spring-1.3.3.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\apache\wicket\wicket-spring-annot\1.3.3\wicket-spring-annot-1.3.3.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\acegisecurity\acegi-security\1.0.7\acegi-security-1.0.7.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<copy file="C:\Documents and
Settings\<username>\.m2\repository\org\apache\wicket\wicket-security\swarm\1.3.0\swarm-1.3.0.jar"
todir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<war destfile="${maven.build.dir}/${maven.build.finalName}.war"
basedir="${maven.build.outputDir}"
compress="true"
webxml="${basedir}/src/main/webapp/WEB-INF/web.xml">
<lib dir="${maven.build.dir}/${maven.build.finalName}/WEB-INF/lib"/>
<classes dir="${maven.build.outputDir}"/>
<webinf dir="${basedir}/src/main/webapp/WEB-INF"
excludes="web.xml"/>
<fileset dir="${basedir}/src/main/webapp"/>
</war>
</target>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira