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 build.properties [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].

Regards,
Jan

[1] https://eclipse.org/tycho/sitedocs/BuildProperties.html
[2] https://github.com/eclipse/tycho/blob/master/tycho-surefire/org.eclipse.tycho.surefire.junit/pom.xml#L37 

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:

Hi,

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,

Andreas

-- 
Codetrails GmbH
The knowledge transfer company

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

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




Back to the top