I'm still seeing incorrect paths being build by the m2 ant tasks when
resolving dependencies. I found a prior post about this issue, prior
thread:

http://www.nabble.com/maven-artifact-ant-2.0-fails-to-set-the-correct-fi
leset-t448540.html#a1232748

Unfortunately, the workaround discussed (building all dependencies on
the same machine) is not an option for me. I'm trying the use the m2 ant
tasks to migrate existing ant projects to maven in a distributed build
environment. Hence, I can never ensure all dependent snapshots have been
built on a single machine. Is this bug supposed to be fixed? (I couldn't
find a Jira issue for it). If not, any expected eta on a fix? Any other
workarounds?

Below are the relevant snippets. Notice the path used to download into
an empty local repo:
...util/1.0-SNAPSHOT/bhatestutil-1.0-20060422.014944-34.jar
But then when the fileset is created for Ant, the (incorrect) path shown
is:
...util/bhatestutil/1.0-20060422.014944-34/bhatestutil-1.0-20060422.0149
44-34.jar


Thanks,
Dan


build.xml:

         <artifact:dependencies verbose="true" filesetId="fs.deps.test" 
pathId="cp.deps.test" useScope="test">
             <pom refid="maven.project"/>
         </artifact:dependencies>

         <property name="cp.compilet.kludge2" refid="cp.deps.test"/>
         <property name="classpath.compile.test" 
value="${cp.compilet.kludge2}"/>


         <javac srcdir="${dir.test}" destdir="${dir.classes.test}"
                classpath="${dir.classes};${classpath.compile.test}"
                debug="on"
                optimize="off"
                deprecation="on"
                 source="1.3"
                 target="1.2"
             />


Output from ant compile:


[artifact:dependencies] Downloading: 
com/bhaweb/testutil/bhatestutil/1.0-SNAPSHOT/bhatestutil-1.0-20060422.01
4944-34.jar
[artifact:dependencies] Transferring 19K Adding reference: cp.deps.test
Adding reference: fs.deps.test

...

Setting project property: cp.compilet.kludge2 ->
/home/dan/.m2/repository/com/bhaweb/testutil/bhatestutil/1.0-20060422.01
4944-34/bhatestutil-1.0-20060422.014944-34.jar:/home/dan/.m2/repository/
junit/junit/3.8.1/junit-3.8.1.jar:

...

     [javac] Using modern compiler
dropping
/home/dan/.m2/repository/com/bhaweb/testutil/bhatestutil/1.0-20060422.01
4944-34/bhatestutil-1.0-20060422.014944-34.jar
from path as it doesn't exist

--------------------------------------------------
This e-mail and any files transmitted with it may contain privileged or 
confidential information.
It is solely for use by the individual for whom it is intended, even if 
addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not 
disclose, copy, distribute,
or take any action in reliance on the contents of this information; and delete 
it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--------------------------------------------------

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

Reply via email to