我改变了我的pom.xml以添加picktlink-social所以我改变了我的pom以删除picketlink-deltaspike,并添加了一个apache deltaspike因为我有一些与picktlink detlaspike的冗余问题,并且有一段时间我的应用程序工作。
所以每隔一段时间我做一次mvn干净,我就得到了这个错误
ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project unikaimagen: Compilation failure: Compilation failure:
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[33,34] error: package org.picketlink.idm.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[35,30] error: package org.picketlink.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[70,9] error: cannot find symbol
[ERROR] symbol: class EEJPAContextInitializer
[ERROR] location: class IDMConfiguration
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[33,34] error: package org.picketlink.idm.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[35,30] error: package org.picketlink.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[70,9] error: cannot find symbol
[ERROR] symbol: class EEJPAContextInitializer
[ERROR] location: class IDMConfiguration
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[110,25] error: cannot find symbol
[ERROR] -> [Help 1]
所以我将picketlink的版本从2.6.1更改为2.6.0或2.6.0更改为2.6.1并再次编译。但现在甚至没有工作,
这是我的pom.xml http://pastebin.com/9bRMrGkv。
org.picketlink.internal应该在picketlink-impl模块中,该模块包含在我的pom.xml中
这是我的IDMConfiguration.java http://pastebin.com/XES0WyDQ
我做了一个jarscan并找到了这个
$ java -jar jarscan.jar -d /home/jdc/.m2/repository/ EEJPAContextInitializer
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
+/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.Final/picketlink-impl-2.6.0.Final.jar
/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.Final/picketlink-impl-2.6.0.Final.jar/org/picketlink/internal/EEJPAContextInitializer.class
+/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.CR2/picketlink-impl-2.6.0.CR2.jar
/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.CR2/picketlink-impl-2.6.0.CR2.jar/org/picketlink/internal/EEJPAContextInitializer.class
+/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.1.Final/picketlink-impl-2.6.1.Final.jar
/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.1.Final/picketlink-impl-2.6.1.Final.jar/org/picketlink/internal/EEJPAContextInitializer.class
----------------------------------------------
答案 0 :(得分:0)
当我更新picketlink版本时,我遇到了同样的问题。我检查了你的pom,我意识到它包含
<dependency>
<groupId>org.picketlink</groupId>
<artifactId>picketlink-api</artifactId>
</dependency>
指定所有依赖项,但您还分别添加了每个模块。所以,我认为你应该删除它们并再试一次。