kooyeed / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

maven build failed for java code #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn co http://oauth.googlecode.com/svn/code/java 
2. cd oauth
3. mvn install 

What is the expected output? What do you see instead?
The "mvn install" should succeed. 

Please provide any additional information below.
It's because of inconsistency in pom.xml files.
In core/pom.xml, there are following statements:
  <parent>
    <groupId>net.oauth</groupId>
    <artifactId>oauth-parent</artifactId>
    <version>20090105</version>
  </parent>
  <artifactId>oauth-core</artifactId>
  <version>20090121</version>
  <packaging>jar</packaging>
  <name>OAuth::Core</name>
So the version of built oauth-core is 20090121 while the version of
oauth-parent is 20090105.

In example/webapp/pom.xml and example/oauth-provider/pom.xml, oauth-core
dependency is:
    <dependency>
      <groupId>net.oauth</groupId>
      <artifactId>oauth-core</artifactId>
      <version>20090105</version>
    </dependency>
Note: the needed version for oauth-core is 20090105, not 20090121.

So just changing 
<version>20090105</version> to <version>20090121</version>
would solve the problem.

Original issue reported on code.google.com by zhguoiub@gmail.com on 21 Feb 2009 at 7:38

GoogleCodeExporter commented 9 years ago
I've attached a patch that fixes this build issue. Note that since the original 
bug was filed, it looks like another 
example package (desktop) has been added - that's fixed here too.

Original comment by paul...@gmail.com on 3 Mar 2009 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in -r941.  I didn't change the dependencies; I added a repository from 
which 
the older versions can be downloaded.

Original comment by jmkrist...@gmail.com on 9 Apr 2009 at 3:41