我已经为tycho 项目配置了一个 std 项目设置。构建效果很好:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] root .................................. SUCCESS [ 0.152 s]
[INFO] bundles ............................... SUCCESS [ 0.008 s]
[INFO] com.project.pcbcalculator ............. SUCCESS [ 3.649 s]
...(Other artifacts like target, features).... SUCCESS [.........]
[INFO] com.project.pcbcalculator.tests ....... FAILURE [ 4.693 s]
除了测试。我总是遇到运行时错误 (13)
!MESSAGE Missing required bundle **com.project.pcbcalculator_1.0.0**
!ENTRY org.eclipse.osgi 4 0 2018-06-05 18:51:19.816
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Bundle **com.project.pcbcalculator.tests** is not
found
分析控制台日志得出的结论是测试项目无法启动,因为要测试的bundle没有加载。
问题是为什么,我该如何改变。根据教程,一切都应该没问题,并且第谷能够编译主包