Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] When using copy-dependencies with tycho, how do I prevent manifest dependencies from being copied?

Title: [tycho-user] When using copy-dependencies with tycho, how do I prevent manifest dependencies from being copied?

Am 05.11.2013 22:53, schrieb Vasanth Velusamy:
I am using tycho for building a plugin project. The project requires some third party library jars that are copied over during the generate-sources phase using copy-dependencies. But the problem is, copy-dependencies copies all dependencies including the osgi ones listed in the manifest file. Is there a way to avoid this?
Don't use excludescope. Use includescope = runtime.
Tycho's dependencies are system-scoped!
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/lib/</outputDirectory>
<excludeTransitive>true</excludeTransitive>
<addParentPoms>false</addParentPoms>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>

Back to the top