Hi, The Sakai project (http://sakaiproject.org) is deploying it's artifacts against the Sonatype OSS repository and while this works fine for Maven 3 builds anyone attempting to download the artifacts using Maven 2.2.1 gets checksum errors against the maven-metadata.xml.
So far it seems that Maven 2.2.1 is not downloading the maven metadata file directly but is somehow rebuilding the information in it (or downloading it and stripping it). It's not easy to see if maven is requesting the file as proxying https connection is hard. As the metadata files are then different the checksums don't match. It seems that the sonatype repository has a metadata file that contains information about the additional artifacts such as the sources and javadocs. The metadata about these artifacts isn't supported by maven 2 and was added for maven 3. However maven 2 was updated to ignore this extra information. If I perform a build with maven 3 then the metadata gets updated correctly and the checksums all match. After I've done a good build with maven 3 performing another build which updated the snapshot versions (-U switch) causes maven 2 to update the maven-meta to become bad. Attached are the metadata that is in my local .m2 repo for maven 2 and maven 3. -- Matthew Buckett VLE Developer, LTG, Oxford University Computing Services
<?xml version="1.0" encoding="UTF-8"?> <metadata> <groupId>org.sakaiproject.entitybroker</groupId> <artifactId>entitybroker-api</artifactId> <version>1.6-SNAPSHOT</version> <versioning> <snapshot> <timestamp>20120312.183226</timestamp> <buildNumber>13</buildNumber> </snapshot> <lastUpdated>20120312183226</lastUpdated> </versioning> </metadata>
<?xml version="1.0" encoding="UTF-8"?> <metadata modelVersion="1.1.0"> <groupId>org.sakaiproject.entitybroker</groupId> <artifactId>entitybroker-api</artifactId> <version>1.6-SNAPSHOT</version> <versioning> <snapshot> <timestamp>20120312.183226</timestamp> <buildNumber>13</buildNumber> </snapshot> <lastUpdated>20120312183226</lastUpdated> <snapshotVersions> <snapshotVersion> <extension>jar</extension> <value>1.6-20120312.183226-13</value> <updated>20120312183226</updated> </snapshotVersion> <snapshotVersion> <extension>pom</extension> <value>1.6-20120312.183226-13</value> <updated>20120312183226</updated> </snapshotVersion> <snapshotVersion> <classifier>sources</classifier> <extension>jar</extension> <value>1.6-20120312.183226-13</value> <updated>20120312183226</updated> </snapshotVersion> <snapshotVersion> <classifier>javadoc</classifier> <extension>jar</extension> <value>1.6-20120312.183226-13</value> <updated>20120312183226</updated> </snapshotVersion> </snapshotVersions> </versioning> </metadata>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org