GoogleCloudPlatform / appengine-cloudsql-native-mysql-datanucleus-jdo-demo-java

Native MySQL Connections from App Engine (Java)
Apache License 2.0
13 stars 9 forks source link

mvn package doesnt work #2

Open jyriand opened 9 years ago

jyriand commented 9 years ago

I get this error:

[ERROR] Exception in thread "main" Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/Users/jyria/.m2/repository/org/datanucleus/datanucleus-core/3.2.5/datanucleus-core-3.2.5.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/Users/jyria/.m2/repository/org/datanucleus/datanucleus-core/4.1.0-m1/datanucleus-core-4.1.0-m1.jar." org.datanucleus.exceptions.NucleusException: Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/Users/jyria/.m2/repository/org/datanucleus/datanucleus-core/3.2.5/datanucleus-core-3.2.5.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/Users/jyria/.m2/repository/org/datanucleus/datanucleus-core/4.1.0-m1/datanucleus-core-4.1.0-m1.jar."

rbarbaresco commented 9 years ago

I had it too and got it fixed by doing that

    <dependency>
        <groupId>org.datanucleus</groupId>
        <artifactId>datanucleus-accessplatform-jdo-rdbms</artifactId>
        <version>4.1.0-m1</version>
        <!-- <version>3.3.0-release</version> -->
        <type>pom</type>
    </dependency>

Now I got another problem and I'm not sure if this solution was the best one.