Hello all,
    I've set up a Maven 2 repository and followed the
directions at http://maven.apache.org/ant-tasks.html
to retrofit my project's build.xml's so they pull in
dependencies from my repository.

    I set up each build file's classpath along the
lines of

<artifact:dependencies
    pathId="dependency.classpath"
    filesetId="dependency.fileset">

    <remoteRepository="my.maven.repository"/>
    <pom refid="my.pom.reference"/>
</artifact:dependencies>

and then referenced the classpath
("dependency.classpath") in my build files' <javac>
tasks.

    What I'm seeing is that my compilations work fine
as long as my build files don't depend on snapshot
jars.  If I specify a dependency on a snapshot, it
downloads the latest Jar from the repository, but does
not specify the correct path to it in the classpath.

    What I end up with under $HOME/.m2/repository is
the Jar being installed under, say, 1.0-SNAPSHOT:

$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-1.0-SNAPSHOT.jar
$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-1.0-20070416.064415-1.jar
...

But if I echo dependency.classpath in my build.xml, I
see it's not looking for myJar under 1.0-SNAPSHOT. 
It's looking for it under, say, 1.0-20070416.064415-1:

$HOME/.m2/repository/myGroup/myJar/1.0-20070416.064415-1/myJar-1.0-20070416.064415-1.jar

Because there is no 1.0-20070416.064415-1 directory
(just a 1.0-SNAPSHOT directory), <javac> fails.

Is this a known bug or am I doing something wrong?  If
it's a known bug, is there a workaround?  I'm
desperate to get snapshots working.

Thanks in advance,
Kevin Moran

P.S. I am using Maven 2.0.5 and maven-artifact-ant-2.0.4-dep.jar.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to