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?


Setting includeScope to runtime solved it. Now it copies over only the dependencies listed in the pom. Thanks!

- Vasanth


On Wed, Nov 6, 2013 at 5:30 AM, "Sesterhenn, Jörg" <Joerg.Sesterhenn@xxxxxxxxx> wrote:

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>

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top