jmpcn / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

Still fail with Maven 3 : Could not resolve dependencies for project org.openid4java:simple-openid:war:0.9.6 #159

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
HI, I still get a build failure, using Maven 3 to install the samples... I 
tried setting the "type" as "pom" with no effect.

* java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

* mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: C:\dev\mavens\apache-maven-3.0.3\bin\..
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: C:\dev\javas\jdk1.6.0_26\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

* cd openid4java-0.9.6.662
* mvn clean install

BUILD SUCCES

but when :
* cd samples
* mvn clean install

...
Downloading: 
http://alchim.sf.net/download/snapshots/org/openid4java/openid4java-consumer-Sam
pleConsumer/0.9.6/openid4java-consumer-SampleConsumer-0.9.6.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenID4Java Samples ............................... SUCCESS [3.170s]
[INFO] Simple Openid4Java Consumer and Provider .......... FAILURE [10.516s]
[INFO] OpenID consumer demo using servlet ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.861s
[INFO] Finished at: Fri Jul 22 17:05:53 CEST 2011
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project simple-openid: Could not resolve 
dependencies for project org.openid4java:simple-openid:war:0.9.6: The following 
artifacts could not be resolved: org.openid4java:openid4java:jar:0.9.6, 
org.openid4java:openid4java-consumer:jar:0.9.6, 
org.openid4java:openid4java-server:jar:0.9.6, 
org.openid4java:openid4java-server-dbcServerAssociationStore:jar:0.9.6, 
org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, 
org.openid4java:openid4java-server-SampleServer:jar:0.9.6: Could not find 
artifact org.openid4java:openid4java:jar:0.9.6 in openid4java 
(https://oss.sonatype.org/content/repositories/openid4java/) -> [Help 1]

in my setting.xml :
<profiles>
    <profile>
       <id>openid4java</id>
       <activation>
          <property>
             <name>openid4java</name>
             <value>!false</value>
          </property>
       </activation>
       <repositories>
          <repository>
             <id>openid4java</id>
             <name>openid4java </name>
             <url>https://oss.sonatype.org/content/repositories/openid4java/</url>
             <releases>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </releases>
             <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </snapshots>
          </repository>
          <repository>
             <id>openid4java_releases</id>
             <name>openid4java releases</name>
             <url>https://oss.sonatype.org/content/repositories/openid4java-releases/</url>
             <releases>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </releases>
             <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </snapshots>
          </repository>
          <repository>
             <id>openid4java_snap</id>
             <name>openid4java snap</name>
             <url>https://oss.sonatype.org/content/repositories/openid4java-snapshots/</url>
             <releases>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </releases>
             <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </snapshots>
          </repository>

       </repositories>
    </profile>
</profiles>

Original issue reported on code.google.com by thierry...@gmail.com on 22 Jul 2011 at 3:35

GoogleCodeExporter commented 8 years ago
Go to the maven2 directory and do a mvn install. It resolves some of the issues.

Original comment by proggerp...@gmail.com on 2 Aug 2011 at 1:40

GoogleCodeExporter commented 8 years ago
It looks that this issue is duplicate with issue 153, and has been fixed in 
r675.

Original comment by zhoushu...@gmail.com on 2 Aug 2011 at 2:28

GoogleCodeExporter commented 8 years ago
I downgraded to 0.9.5 and it worked fine

Original comment by thierry...@gmail.com on 2 Aug 2011 at 5:39

GoogleCodeExporter commented 8 years ago
Yes, because in 0.9.6, only openid4java-nodeps is maven "jar", but the others 
are all maven "pom'. When release 0.9.6, we forgot checking the samples' 
pom.xml file.

Original comment by zhoushu...@gmail.com on 2 Aug 2011 at 5:54