No, you're not the only one; there's already a JIRA bug for it.

http://jira.codehaus.org/browse/MNG-1408

Since there's no telling when the bug will be officially fixed, my
solution has been to check out maven, apply the patch at the link, and
build a new maven-artifact-ant jar (the command you need is mvn
assembly:assembly, by the way; took me a while for that).

Chris

> -----Original Message-----
> From: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 14 June, 2006 14:43
> To: Maven Users List
> Subject: maven ant tasks & snapshot handling
> 
> Hi all,
> 
> I'm using the maven tasks for ant (2.0.4) to download 
> snapshots from a repository.
> 
> My target looks like this:
> 
>       <maven:dependencies pathId="mypath" verbose="true">
>               <maven:remoteRepository 
> url="http://myrepository/snapshots";>
>                       <snapShots enabled="true" 
> updatePolicy="always" />
>               </maven:remoteRepository>
>               <dependency groupId="myGroup" artifactId="myArtifact"
> version="1.0.0-SNAPSHOT" />
>       </maven:dependencies>
> 
> Now my snapshots are downloaded to
> ~/.m2/repository/myGroup/1.0.0-SNAPSHOT/myArtifact-...jar
> (like I would expect). But the mypath-path refers to 
> ~/.m2/repository/myGroup/1.0.0-yyyymmdd.hhmmss/myArtifact-...jar
> 
> I didn't find any mention in the JIRA. Am I doing something 
> wrong - I can't imagine everybody is having this problem ?
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to