我有一个实现包和依赖于它的片段包(清单中的fragment -Host)。此外,还有一个包含一些测试的捆绑包。
到目前一切尚好。我已经在我的eclipse-test-plugin中尝试了tycho-surefire-plugin配置中的依赖项。但它不起作用。正确的方式是什么?
编辑:我的测试插件的pom.xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<testSuite>com.example.impl.tests</testSuite>
<testClass>com.example.impl.tests.MyTest</testClass>
<dependencies>
<dependency>
<type>eclipse-plugin</type>
<artifactId>com.example.impl.config</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>片段包的清单:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: com.example.config
Bundle-SymbolicName: com.example.config
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: example
Fragment-Host: com.example.impl;bundle-version="1.0.0.qualifier"
Bundle-ClassPath: resources/
Bundle-RequiredExecutionEnvironment: JavaSE-1.7摘自reactor pom.xml:
<modules>
<module>../com.example.impl</module>
<module>../com.example.impl.config</module>
<module>../com.example.impl.tests</module>
</module>谢谢!
发布于 2012-11-28 14:39:54
看起来我自己也找到了答案。以防任何人遇到同样的问题:片段主机捆绑包版本中的.qualifier版本不会被Tycho自动扩展。
https://stackoverflow.com/questions/13454654
复制相似问题