You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julien Henry <ju...@capgemini.com> on 2006/04/20 10:34:51 UTC
Ant plugin and private repository
Hi,
In my project, I use Jar that aren't on ibiblio. That's why I create a
private repository in the project directory. I tried to generate ant
build.xml, and I get :
[...]
<target name="get-deps" depends="test-offline" description="Download all
dependencies" unless="maven.mode.offline">
<mkdir dir="${maven.repo.local}"/>
<get
src="file:D:\jhenry\myProject/private-repository/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.jar"
dest="${maven.repo.local}/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.jar"
usetimestamp="true" ignoreerrors="true"/>
<get
src="http://repo1.maven.org/maven2/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.jar"
dest="${maven.repo.local}/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.jar"
usetimestamp="true" ignoreerrors="true"/>
[...]
I think that paths should be relative and not absolute. Because
D:\jhenry\myProject will not stay the same if someone else download my
project.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org