Announcement Announcement Module
Collapse
No announcement yet.
spring-security-oauth2 corrupt jar file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment


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

      Comment


      • #4
        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...

        Attachment
        Attached Files

        Comment


        • #5
          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.

          Comment


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

            Comment


            • #7
              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... ???

              Comment


              • #8
                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

                Comment

                Working...
                X