[ http://jira.codehaus.org/browse/MANTTASKS-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_113907 ]
Werner Guttmann commented on MANTTASKS-86: ------------------------------------------ Using the following reduced POM, I am still seeing the problem as reported. When I use 'mvn eclipse:eclipse', all is fine, and the JAR is added to my set of project JARs. Whenever I try to use the attached Ant build script (even when deleting the first remoteRepository reference, the JTA JAR is *not* copied to the newlib directory (whereas the Xerces and log4j JARs are). {noformat} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.codehaus.castor</groupId> <artifactId>castor</artifactId> <version>1.1.3-SNAPSHOT</version> <packaging>jar</packaging> <dependencies> <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.0.1B</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.13</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>1.4.0</version> </dependency> </dependencies> <repositories> <!-- <repository> <id>java.net</id> <name>java.net Maven Repository</name> <url>https://maven-repository.dev.java.net/nonav/repository </url> <layout>legacy</layout> </repository> --> <repository> <id>maven2-repository.dev.java.net</id> <name>Java.net Repository for Maven 2</name> <url>http://download.java.net/maven/2</url> <layout>default</layout> </repository> </repositories> </project> {noformat} ANy feedback would be appreciated. Note that I have been using Maven 2.0.7 and the snapshot given above for the Ant tasks for Maven > Resolution of java.net dependencies > ----------------------------------- > > Key: MANTTASKS-86 > URL: http://jira.codehaus.org/browse/MANTTASKS-86 > Project: Maven 2.x Ant Tasks > Issue Type: Bug > Affects Versions: 2.0.6 > Reporter: Werner Guttmann > Attachments: build.bat, build.xml, pom.xml > > > I am trying to use the Ant task for Maven with the root Maven POM for > the Castor project for download the dependencies and place them into a > lib directory. > What I have observed is that there's a few dependencies missing when I > run the corresponding Ant target. But if I use Maven for the build > process, the missing JARs are downloaded as well and placed into my > local repository. > I have tried to define remoteRepository entries for the java.net and the > Maven 2 java.net repositories (where e.g. java.transaction:jta:1.1.1B > resides), but this does not make a difference. > Any idea what I could try in addition ? Having said that, all other > dependencies are resolved and copied without any problems. It looks like > it's just the dependencies that are not synced globally that create a > problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira