discomarathon / google-gson

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

Maven build fail. #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.add maven dependency to project

I try to use 1.7.1 instead of 1.6, but error happend during project build.

Reason: Cannot find parent: org.sonatype.oss:oss-parent for project: 
com.google.code.gson:gson:jar:1.7.1 for project 
com.google.code.gson:gson:jar:1.7
.1

Original issue reported on code.google.com by vitek.pa...@gmail.com on 19 May 2011 at 3:31

GoogleCodeExporter commented 9 years ago
In maven pom xml file 

 <modelVersion>4.0.0</modelVersion>
 <groupId>com.google.code.gson</groupId>
 <artifactId>gson</artifactId>
 <packaging>jar</packaging>
 <version>1.7.1</version>
 <inceptionYear>2008</inceptionYear>
 <name>Gson</name>
 <parent>
   <groupId>org.sonatype.oss</groupId>
   <artifactId>oss-parent</artifactId>
   <version>5</version>
 </parent>

I confounded...

Original comment by vitek.pa...@gmail.com on 19 May 2011 at 3:34

GoogleCodeExporter commented 9 years ago
In UserGuide I didn't see any information about parent 

Only

Using Gson with Maven2
To use Gson with Maven2/3, you can use the Gson version available in Maven 
Central by adding the following dependency:

<dependencies>
    <!--  Gson: Java to Json conversion -->
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
      <version>1.7.1</version>
      <scope>compile</scope>
    </dependency>
</dependencies>

That is it, now your maven project is Gson enabled. 

Original comment by vitek.pa...@gmail.com on 19 May 2011 at 3:36

GoogleCodeExporter commented 9 years ago
I dont see that error when I run maven on Gson. Can you share in detail the 
command you are running and the error you are seeing?

Original comment by inder123 on 20 May 2011 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by inder123 on 3 Jun 2011 at 6:29