1

构建基于 maven datanucleus 的项目时出现以下错误。我已将 maven-datanucleus-plugin 放在插件下,并正确定义了包含持久类的路径。有人可以帮助解决这个问题吗?

Exception in thread "Thread-1" You have selected to use ClassEnhancer "ASM" yet
the JAR for that enhancer does not seem to be in the CLASSPATH!
org.datanucleus.enhancer.NucleusEnhanceException: You have selected to use Class
Enhancer "ASM" yet the JAR for that enhancer does not seem to be in the CLASSPAT
H!
        at org.datanucleus.enhancer.DataNucleusEnhancer.init(DataNucleusEnhancer
.java:212)
        at org.datanucleus.enhancer.DataNucleusEnhancer.addClasses(DataNucleusEn
hancer.java:370)
        at org.datanucleus.enhancer.EnhancerProcessor$EnhanceRunnable.run(Enhanc
erProcessor.java:163)
        at java.lang.Thread.run(Thread.java:662)

谢谢你。

4

1 回答 1

1

因此,根据文档,您想使用增强器并且不要将asm.jar放在 CLASSPATH 中。再清楚不过了。

于 2012-04-17T11:24:55.650 回答