It's the double slash. That's triggering a redirect. Might need to remove the trailing slash from the repository url.
On 06/17/2014 12:40 PM, Zac Harvey wrote: > > Thanks Scott, but not sure if I entirely understand your question. > This might provide some more insight: > > If I go to > ~/.m2/repository/org/jasig/cas/cas-server-support-ldap/4.0.0 and open > up the cas-server-support-ldap-4.0.0.pom file that is downloaded, its > contents are: > > <html> > > <head><title>301 Moved Permanently</title></head> > > <body bgcolor=”white”> > > <center><h1>301 Moved Permanently</h1></center> > > <hr><center>nginx/1.4.1</center> > > </body> > </html> > > I should also reiterate the name of the POM. It’s not a pom.xml file; > it’s a file that has a .pom file extension, so its almost a half-baked > POM/XML file that never downloaded correctly. I also think the nginx > stuff is note-worthy…thoughts? > > *From:*Scott Battaglia [mailto:[email protected]] > *Sent:* Tuesday, June 17, 2014 1:34 PM > *To:* [email protected] > *Subject:* Re: [cas-user] CAS: Are the repos for CAS 4.0 broken? > > You're getting some form of redirect: > > "remote = '<html> > > <head><title>301' - RETRYING" > > What does the redirect say? > > On Tue, Jun 17, 2014 at 1:31 PM, Zac Harvey <[email protected] > <mailto:[email protected]>> wrote: > > I have the following pom.xml file: > > <?xml version="1.0" encoding="UTF-8"?> > > <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/xsd/maven-4.0.0.xsd "> > > <modelVersion>4.0.0</modelVersion> > > <groupId>com.me.myorg</groupId> > > <artifactId>mycas</artifactId> > > <packaging>war</packaging> > > <version>1.0-SNAPSHOT</version> > > <build> > > <plugins> > > <plugin> > > <artifactId>maven-war-plugin</artifactId> > > <configuration> > > <warName>mycas</warName> > > </configuration> > > </plugin> > > </plugins> > > </build> > > <dependencies> > > <dependency> > > <groupId>org.jasig.cas</groupId> > > <artifactId>cas-server-webapp</artifactId> > > <version>${cas.version}</version> > > <type>war</type> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>org.jasig.cas</groupId> > > <artifactId>cas-server-support-ldap</artifactId> > > <version>${cas.version}</version> > > </dependency> > > <dependency> > > <groupId>org.jasig.cas</groupId> > > <artifactId>cas-server-integration-restlet</artifactId> > > <version>${cas.version}</version> > > </dependency> > > </dependencies> > > <properties> > > <cas.version>4.0.0</cas.version> > > </properties> > > <repositories> > > <repository> > > <id>ja-sig</id> > > <url>http://oss.sonatype.org/content/repositories/releases/</url>; > > </repository> > > </repositories> > > </project> > > When I run “mvn package” I get all sorts of download errors, a > sample of which are: > > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local > = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html> > > <head><title>301' - RETRYING > > Downloading: > > http://oss.sonatype.org/content/repositories/releases//org/jasig/cas/cas-server-support-ldap/4.0.0/cas-server-support-ldap-4.0.0.pom > > <http://oss.sonatype.org/content/repositories/releases/org/jasig/cas/cas-server-support-ldap/4.0.0/cas-server-support-ldap-4.0.0.pom> > > 184b downloaded (cas-server-support-ldap-4.0.0.pom) > > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local > = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html> > > <head><title>301' - IGNORING > > [WARNING] POM for > 'org.jasig.cas:cas-server-support-ldap:pom:4.0.0:compile' is invalid. > > Its dependencies (if any) will NOT be available to the current build. > > Downloading: > > http://oss.sonatype.org/content/repositories/releases//org/jasig/cas/cas-server-integration-restlet/4.0.0/cas-server-integration-restlet-4.0.0.pom > > <http://oss.sonatype.org/content/repositories/releases/org/jasig/cas/cas-server-integration-restlet/4.0.0/cas-server-integration-restlet-4.0.0.pom> > > 184b downloaded (cas-server-integration-restlet-4.0.0.pom) > > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local > = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html> > > <head><title>301' - RETRYING > > Downloading: > > http://oss.sonatype.org/content/repositories/releases//org/jasig/cas/cas-server-integration-restlet/4.0.0/cas-server-integration-restlet-4.0.0.pom > > <http://oss.sonatype.org/content/repositories/releases/org/jasig/cas/cas-server-integration-restlet/4.0.0/cas-server-integration-restlet-4.0.0.pom> > > 184b downloaded (cas-server-integration-restlet-4.0.0.pom) > > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local > = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html> > > <head><title>301' - IGNORING > > [WARNING] POM for > 'org.jasig.cas:cas-server-integration-restlet:pom:4.0.0:compile' > is invalid. > > If I try to open any of the downloaded JARs under ~/.m2 they are > malformed and won’t open in my Archive Manager. > > What is wrong with the Maven2/CAS repos? > > -- > > You are currently subscribed [email protected] > <mailto:[email protected]> as:[email protected] > <mailto:[email protected]> > > To unsubscribe, change settings or access archives, > seehttp://www.ja-sig.org/wiki/display/JSG/cas-user > > > -- > You are currently subscribed [email protected] > <mailto:[email protected]> as:[email protected] > <mailto:[email protected]> > To unsubscribe, change settings or access archives, > seehttp://www.ja-sig.org/wiki/display/JSG/cas-user > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
