試圖構建一個alexa(亞馬遜:回聲)技能集。同時,試圖通過匕首2.使用體驗作爲學習測試平臺的依賴注入然而,建築用包的maven-2 CMD:java.lang.IllegalStateException:endPosTable已設置
mvn assembly:assembly -DdescriptorId=jar-with-dependencies package'.
生成具有完整的依賴關係的拉鍊罐子產生以下例外跟蹤:
[INFO] ------------------------------------------------------------------------
[INFO] Building Echo Device Client 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ echo-device-client ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/apil.tamang/Dropbox/Git/echo-device-client/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ echo-device-client ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 46 source files to /Users/apil.tamang/Dropbox/Git/echo-device-client/target/classes
An exception has occurred in the compiler (1.8.0_60). Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.IllegalStateException: endPosTable already set
at com.sun.tools.javac.util.DiagnosticSource.setEndPosTable(DiagnosticSource.java:136)
at com.sun.tools.javac.util.Log.setEndPosTable(Log.java:350)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:667)
at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:950)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:892)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:921)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1187)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
初始編譯發生得很好,並且所有測試都運行併成功執行。我覺得在'連接'事物向南的依賴關係期間是這樣的。請參閱this file以查看構建期間的控制檯輸出。
我的問題是如果值得一試,嘗試使用不同的方式生成依賴關係。對於這個目的我不太瞭解Maven。有沒有補丁或可以使用的東西?你認爲甚至有可能提出解決方法嗎?我希望能夠繼續使用匕首2框架來構建這個項目。
從上行家文檔:「該組件的使用方法:裝配,裝配:附接組件:目錄,和組裝:目錄內聯因爲它們會破壞正常的構建過程並促進非標準的構建實踐,所以不推薦使用。「我有一種感覺,一種不同的實用命令可能會解決我遇到的問題。如果我經過它,會發佈一個解決方案。在此期間,你有什麼想法? –
tl; dr - 'mvn clean' – RobEarl