2014-09-10 60 views
0

我更改了我的pom.xml以添加picktlink-social,所以我更改了我的pom以刪除picketlink-deltaspike,並添加了apache deltaspike,因爲我在picktlink中存在一些冗餘問題detlaspike,並有一段時間我的應用程序工作。錯誤:package org.picketlink.idm.internal不存在

所以每過一段時間,當我做了一個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-implement執行模塊,它包含在我的pom.xml

這是我IDMConfiguration.java http://pastebin.com/XES0WyDQ

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

當我更新picketlink版本時,我有同樣的問題。我檢查了你的pom,並且我意識到它包含了

<dependency> 
    <groupId>org.picketlink</groupId> 
    <artifactId>picketlink-api</artifactId> 
</dependency> 

它指定了所有的依賴關係,但是你還分別添加了每個模塊。所以,我認爲你應該刪除它們並重試。

相關問題