bnitay / openid4java

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

unable to build samples\simple-openid with maven 3.0.3 #172

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd ..\samples\simple-openid
2. mvn jetty:run

What is the expected output? What do you see instead?
expect to build and start server.  partial stack trace follows:

[INFO] ------------------------------------------------------------------------
[INFO] Building Simple Openid4Java Consumer and Provider 0.9.6
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-jetty-plugin:6.0.2:run (default-cli) @ simple-openid >>>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.391s
[INFO] Finished at: Fri Dec 16 15:24:29 EST 2011
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project simple-openid: Could not resolve 
dependencies for project org.openid4java:simple-openid:wa
r: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-JdbcServerAssociationStore:jar:0.9.6, or
g.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, 
org.openid4java:openid4java-server-SampleServer:jar:0.9.6: Failure to f
ind org.openid4java:openid4java:jar:0.9.6 in http://repo1.maven.org/maven2 was 
cached in the local repository, resolution will not b
e reattempted until the update interval of central has elapsed or updates are 
forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
on project simple-openid: Could not resolve dependenc
ies 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-JdbcServerAssociationStore:jar:0.9.6, 
org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, 
org.openid4java:openid4
java-server-SampleServer:jar:0.9.6: Failure to find 
org.openid4java:openid4java:jar:0.9.6 in http://repo1.maven.org/maven2 was cache
d in the local repository, resolution will not be reattempted until the update 
interval of central has elapsed or updates are forced

        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.ja
va:108)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

What version of the product are you using? On what operating system?
0.9.6

Please provide any additional information below.

Original issue reported on code.google.com by scro...@gmail.com on 16 Dec 2011 at 8:29

GoogleCodeExporter commented 8 years ago
i was using maven3 - i discovered it requires maven2.

Original comment by scro...@gmail.com on 16 Dec 2011 at 9:21

GoogleCodeExporter commented 8 years ago
Got the same issue  ?
Did you have something to help? 

And the version 0.9.5 i've got timed out on downloading objects ? 

Original comment by christia...@sphere3solutions.com on 31 Jan 2012 at 11:53

GoogleCodeExporter commented 8 years ago
I'm having the same issue as well.
I'm using Maven 2

I have made the recommended changes to the pom file:
openid4java-0.9.6.662\samples\simple-openid\pom.xml

<dendencies>
...
<dependency>
      <groupId>org.openid4java</groupId>
      <artifactId>openid4java</artifactId>
      <version>0.9.6</version>
      <type>pom</type> 
    </dependency>
...
<dependency>
         <groupId>org.openid4java</groupId>
         <artifactId>openid4java-consumer</artifactId>
         <!--artifactId>openid4java-server</artifactId-->
         <!--artifactId>openid4java-infocard</artifactId-->
         <!--artifactId>openid4java-xri</artifactId-->
         <!--artifactId>openid4java</artifactId-->
         <!--artifactId>openid4java-full</artifactId-->
         <version>0.9.6</version>
         <type>pom</type> 
    </dependency>
...
</dendencies>

Problem dependencies:
1) org.openid4java:openid4java-consumer:jar:0.9.6
2) org.openid4java:openid4java-server:jar:0.9.6
3) org.openid4java:openid4java-server-JdbcServerAssociationStore:jar:0.9.6
4) org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6
5) org.openid4java:openid4java-server-SampleServer:jar:0.9.6

5 required artifacts are missing.

Configured repositories in settings.xml
from the specified remote repositories:
  guice (http://repo2.maven.org/maven2/com/google/inject/guice/2.0/),
  central2 (http://repo2.maven.org/maven2),
  central (http://repo1.maven.org/maven2),
  guice-snapshot (http://guice-maven.googlecode.com/svn/trunk),
  openid4java snapshots repository (https://oss.sonatype.org/content/repositories/openid4java-snapshots),
  apache (http://ftp.cica.es/mirrors/maven2)

Any help would be appreciated

Original comment by marcus29...@gmail.com on 6 Mar 2012 at 9:36

GoogleCodeExporter commented 8 years ago
Maven3 is not supported.

Original comment by Johnny.B...@gmail.com on 1 Nov 2012 at 2:32