Hey: Problem: When I use ANT's copy/move task to copy the generated jar, Classloader cannot load that jar. This is what I do: Step A: I use maven jar:install goal to generate the jar. I have a postGoal for jar:install that copies this generated jar to the local repository using ANT's move/copy command. (I do it because I want the jar to have a specific name). Step B: Now when I run test goal, all the dependencies are resolved and everything compiler correctly. However, when tests are run, it fails with ClassNotFoundException for the classes in the jars that I just copied. Step C: However, if I do not use postGoal and Ant's copy command and copy it manually using shell, everything runs fine. Is there some specific requirements to use ANT's copy or move task. Thanks Gunjan
----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.