Closed GoogleCodeExporter closed 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
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
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
Original comment by inder123
on 3 Jun 2011 at 6:29
Original issue reported on code.google.com by
vitek.pa...@gmail.com
on 19 May 2011 at 3:31