【发布时间】:2015-12-16 16:53:38
【问题描述】:
我们在 J2EE 服务器和 Google App Engine 上构建和运行 jdo 应用程序。不过,我们似乎停留在 datanucleus 3.1.2 上,当我尝试将我们的 maven 配置升级到 4.1 时,我总是得到类路径或编译错误。
我希望获得一些迁移帮助。我的 maven pom.xml 在下面,我需要更改什么才能进入 4.x?似乎仅仅切换到最新版本是行不通的。下面的版本组合工作得很好。什么是 4.x 等价物?谢谢!
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo-api</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-core</artifactId>
<version>3.1.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-api-jdo</artifactId>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-rdbms</artifactId>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-cache</artifactId>
<version>3.1.2</version>
</dependency>
<plugin>
<groupId>org.datanucleus</groupId>
<artifactId>maven-datanucleus-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<verbose>false</verbose>
<fork>false</fork>
</configuration>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: java maven jdo datanucleus