maven datanucleus ASM问题

时间:2012-04-17 10:58:47

标签: maven maven-plugin datanucleus

在构建基于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)

谢谢。

1 个答案:

答案 0 :(得分:1)

因此,您希望使用增强器,并且不要在文档中将 asm.jar 放在CLASSPATH中。不能更清楚。