Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Same dependency with different classifier

Hi,

I have an eclipse-test-plugin with POM-dependencies (pomDependencies consider) as follows:

...
<dependency>
	<groupId>ch.dummy</groupId>
	<artifactId>common</artifactId>
</dependency>
<dependency>
	<groupId>ch.dummy</groupId>
	<artifactId>common</artifactId>
	<classifier>tests</classifier>
</dependency>
...

It looks like tycho does not honor the classifier element as the latter dependency overrides the first one. This leads to compilation errors as the first dependency is not on the classpath. A workaround was to define the first dependency as extraClasspathElement for the tycho-compiler-plugin. But the as soon as it gets to the tycho-surefire-plugin the dependency is missing from the test runtime.

Is this a known issue? Is there any workaround to add both dependencies to my test runtime?

Thanks
Yves


Back to the top