Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Adding <extraClasspathElements> to Eclipse IDE classpath

not sure if it works but you could try using jars.extra.classpath in [1]
(if this is evaluated by PDE UI for the project classpath)
and use e.g. maven-dependency-plugin to copy over the required maven artifacts to a (.gitignore'd) lib/ folder similar as in [2].



On 31/10/16 16:37, "tycho-dev-bounces@xxxxxxxxxxx on behalf of Andreas Sewe" <tycho-dev-bounces@xxxxxxxxxxx on behalf of andreas.sewe@xxxxxxxxxxxxxx> wrote:


I have an eclipse-plugin, which should depend on a JAR with some
RetentionPolicy.CLASS annotations. This JAR is *not* an OSGi bundle and
only needed at compile time.

Now, I can use the tycho-compiler-plugin's <extraClasspathElements>
option to add it to the compile-time classpath during a Maven build. But
AFAICT, this option is not respected by the Tycho m2e connector, i.e., I
don't have the JAR on the classpath in the Eclipse IDE.

Any tips how to accomplish this?

Best wishes,


Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940

Back to the top