Results 1 to 8 of 8

Thread: spring-security-oauth2 corrupt jar file

  1. #1
    Join Date
    Dec 2012
    Posts
    12

    Default spring-security-oauth2 corrupt jar file

    When using this is my pom...

    Code:
    <dependency>
    	<groupId>org.codehaus.spring-security-oauth</groupId>
    	<artifactId>spring-security-oauth2</artifactId>
    	<version>1.0.0.RC3</version>
    </dependency>
    I get a corrupted jar file...

    spring-security-oauth2-1.0.0.RC3.jar of 73 bytes.

    Have this in the pom

    Code:
    <repositories>
    	<repository>
    	   <id>spring-milestone</id>
    	   <name>Spring Maven MILESTONE Repository</name>
    	   <url>http://maven.springframework.org/milestone</url>
            </repository>
    </repositories>

  2. #2
    Join Date
    Dec 2012
    Posts
    12

    Default

    Fixed it by downloading jar file from
    http://maven.springframework.org/sna...UILD-SNAPSHOT/
    Renamed the jar file from spring-security-oauth2-1.0.0.BUILD-20121031.070531-186.jar to spring-security-oauth2-1.0.0.BUILD-SNAPSHOT.jar
    Put it in local repository

    and this in pom

    <dependency>
    <groupId>org.codehaus.spring-security-oauth</groupId>
    <artifactId>spring-security-oauth2</artifactId>
    <version>1.0.0.BUILD-SNAPSHOT</version>
    </dependency>

  3. #3
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    I think you must have had a network glitch. Please upgrade to 1.0.0.RELEASE anyway though.

  4. #4
    Join Date
    Dec 2012
    Posts
    12

    Default

    Hi, Dave.. I try :
    <dependency>
    <groupId>org.codehaus.spring-security-oauth</groupId>
    <artifactId>spring-security-oauth2</artifactId>
    <version>1.0.0.RELEASE</version>
    </dependency>

    But I still get the small jar file that is corrupted...

    2012-12-20_152733.jpg

  5. #5
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    Sorry I didn't read your dependency declaration. The groupId is wrong: it has been "org.springframework.security.oauth" since about M3. You probably have an HTML error message in that ".jar" file.

  6. #6
    Join Date
    Dec 2012
    Posts
    12

    Default

    So org.springframework.security.oauth is oauth2 ?? what is the groupid for oauth1 ??

  7. #7
    Join Date
    Dec 2012
    Posts
    12

    Default

    Hi Dave...

    <dependency>
    <groupId>org.springframework.security.oauth</groupId>
    <artifactId>spring-security-oauth2</artifactId>
    <version>1.0.0.RELEASE</version>
    </dependency>

    But I still get this bad jar file... ???

  8. #8
    Join Date
    Dec 2012
    Posts
    12

    Default

    ahhh.. I got it now..

    I deleted :

    <repositories>
    <repository>
    <id>spring-milestone</id>
    <name>Spring Maven MILESTONE Repository</name>
    <url>http://maven.springframework.org/milestone</url>
    </repository>
    </repositories>

    and made sure I had this in settings.xml

    <mirror>
    <id>central</id>
    <mirrorOf>*</mirrorOf>
    <url>http://repo1.maven.org/maven2/</url>
    </mirror>

    and I get a jar of 272 KB

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •