Hi,
I've been trying to build my project using Maven2, but my build fails when
trying to retrieve the transitive dependency adaptx-0.9.13.jar, needed by
Castor. I've specified the dependency on castor like this in my project's
pom.xml:
<dependency>
<groupId>org.codehaus.castor</groupId>
<artifactId>castor</artifactId>
<version>1.0.5</version>
</dependency>
I've also included the following extra repositories in my pom.xml:
<repositories>
..
<repository>
<id>codehaus-repository</id>
<name>Codehaus Maven 2 repository</name>
<url>http://maven.codehaus.org/maven2/</url>
</repository>
<repository>
<id>codehaus-snapshots</id>
<name>Maven Codehaus Snapshots</name>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
</repository>
</repositories>
My build fails with this message after trying all repositories:
<snip rest of the repos failing>
Downloading:
http://repo1.maven.org/maven2/adaptx/adaptx/0.9.13/adaptx-0.9.13.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) adaptx:adaptx:jar:0.9.13
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=adaptx -DartifactId=adaptx \
-Dversion=0.9.13 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) my.project:my-archive:jar:0.1
2) org.codehaus.castor:castor:jar:1.0.5
3) adaptx:adaptx:jar:0.9.13
----------
1 required artifact is missing.
for artifact:
my.project:my-archive:jar:0.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
codehaus-repository (http://maven.codehaus.org/maven2/),
codehaus-snapshots (http://snapshots.maven.codehaus.org/maven2/),
sunsite.dk (http://mirrors.sunsite.dk/maven2)
However, codehaus-repository gives a 404 and codehaus-snapshots does not
have the required artifact. I noticed in castor's pom-file in the ibiblio
repository (and mirrors) that the dependency for adaptx is specified as:
<dependency>
<groupId>adaptx</groupId>
<artifactId>adaptx</artifactId>
<version>0.9.13</version>
</dependency>
Based on the structure of the ibiblio repository, shouldn't the groupId be
org.codehaus.castor, not adaptx?
I will of course work around this for now by getting the missing
dependency (or dependencies in case there are more) manually, as suggested
by the errmsg, and putting them in my local repo, but being something of a
maven neophyte, I wanted to make sure I hadn't overlooked anything obvious
in my config.
--
Regards,
Audun
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email