试图构建一个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