在构建基于maven datanucleus的项目时,我得到了以下错误。我已经将maven-datanucleus-plugin放在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)谢谢。
发布于 2012-04-17 19:24:56
因此,您希望使用增强器,而不是按照文档将asm.jar放在类空间中。再清楚不过了。
https://stackoverflow.com/questions/10189913
复制相似问题