Open GoogleCodeExporter opened 8 years ago
Here is a screenshot of app engine settings when you see the error caused by
remove app engine sdk from java build path.
Original comment by renfeng...@gmail.com
on 11 May 2013 at 1:02
Attachments:
I don't use app engine but I got something similar using just datanucleus. It
was caused by the DataNucleus enhancer plugin depending on a different version
of datanucleus-core than the project was using. Since the enhancer was pulling
in a different version, it caused two versions of datanucleus-core to be in the
classpath and due to datanucleus's plugin architecture, it was seeing to
plugins with the same signature registering.
I fixed it by forcing the enhancer plugin to use the same dependency the
project was using.
Here is relevant section of my (current) POM. The forced dependency is now
commented out since all versions align. Previously, I was using a 3.x.x
version of the enhancer but 4.0.0-release in the project. At least that's what
I think was the case (YMMV).
<plugin>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-maven-plugin</artifactId>
<version>4.0.0-release</version>
<configuration>
<api>JDO</api>
<props>${basedir}/datanucleus-maven-plugin-jdo.properties</props>
<outputFile>schema.ddl</outputFile>
<completeDdl>true</completeDdl>
<log4jConfiguration>${basedir}/datanucleus-maven-plugin-log4j.properties</log4jConfiguration>
<verbose>true</verbose>
<fork>true</fork>
</configuration>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
<!-- <dependencies> -->
<!-- <dependency> -->
<!-- <groupId>org.datanucleus</groupId> -->
<!-- <artifactId>datanucleus-core</artifactId> -->
<!-- <version>4.0.0-release</version> -->
<!-- </dependency> -->
<!-- </dependencies> -->
</plugin>
Original comment by wgtthomp...@gmail.com
on 5 Nov 2014 at 10:14
Original issue reported on code.google.com by
renfeng...@gmail.com
on 11 May 2013 at 1:00