Hi,
can you please use Castor 1.3.0.1 as the Castor version ? Given that we
have been suffering from the very same problems, I can reassure you that
with the Maven release of 1.3.0.1 all those problems have been resolved.
Apart from amended Maven POMs, 1.3.0.1 is equivalent to 1.3.
Regards
Werner
On 22.12.2009 13:33, James Cowan wrote:
Hi Werner
I am running into problems gettting castor and maven to work together.
The probem is that the wrong version of commons-logging-1.1.1.pom is being
downloaded.
The contents of the pom file are:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a
href="http://download.java.net/maven/1/commons-logging/poms/commons-logging-1.1.1.pom">here</a>.</p>
<hr>
<address>Apache Server at maven-repository.dev.java.net Port 443</address>
</body></html>
I have 2 repositories defined in my pom file (spring and codehaus):
<repository>
<id>SpringSource Enterprise Bundle Repository - External Bundle
Milestones</id>
<url>http://repository.springsource.com/maven/bundles/milestone</url>
</repository>
<repository>
<id>codehaus</id>
<name>Codehaus Maven repository</name>
<url>http://repository.codehaus.org/</url>
</repository>
It appears to be gettingthe broken commons-logging-1.1.1.pom from:
Downloading:
https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom
I am using castor 1.3 and castor maven plugin 2.0.
Is there a way to fix this?
James
Downloading:
http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.pom
4K downloaded (castor-maven-plugin-1.5.pom)
Downloading:
http://repository.codehaus.org//org/codehaus/mojo/mojo-parent/21/mojo-parent-21.pom
18K downloaded (mojo-parent-21.pom)
Downloading:
http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.jar
20K downloaded (castor-maven-plugin-1.5.jar)
[WARNING] POM for 'org.codehaus.castor:castor-core:pom:1.3:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build.
Downloading:
http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
in repository codehaus (http://repository.codehaus.org/)
Downloading:
http://repository.springsource.com/maven/bundles/milestone/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
in repository SpringSource Enterprise Bundle Repository - External Bundle
Milestones (http://repository.springsource.com/maven/bundles/milestone)
Downloading:
http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
in repository codehaus (http://repository.codehaus.org/)
Downloading:
https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom
367b downloaded (commons-logging-1.1.1.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'1b9eacd6ccf3db5ccae82b260941c4712d63f4e6'; remote = '<!DOCTYPE' - RETRYING
Downloading:
https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom
367b downloaded (commons-logging-1.1.1.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'1b9eacd6ccf3db5ccae82b260941c4712d63f4e6'; remote = '<!DOCTYPE' - IGNORING
[WARNING] POM for 'commons-logging:commons-logging:pom:1.1.1:compile' is
invalid.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email