Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Toolchains jdkHome inconsistency between Tycho and plain Maven

Hi,

>> Is this a known issue or am I simply doing something wrong?
> 
> see the discussion on https://bugs.eclipse.org/bugs/show_bug.cgi?id=362966#c5
> 
> follow-up enhancement https://bugs.eclipse.org/bugs/show_bug.cgi?id=389856 may be used to work around it.

thanks for the pointers. Setting the bootclasspath explicitly may
actually be able to work around the issue.

> Could be we need better heuristics similar as proposed https://bugs.eclipse.org/bugs/show_bug.cgi?id=362966#c8

That being said, I don't quite understand why the maven-compiler-plugin
only works with <jdkHome> pointing to the "JDK home" and the
tycho-compiler-plugin only works with it pointing to the "JRE home". It
seems to me that the maven-compiler-plugin must also make some
assumptions about the JDK filesystem layout, so I don't quite understand
why both  can't make the same assumptions and why the
tycho-compiler-plugin cannot switch to <jdkHome> meaning "JDK home". Is
it because bootclasspath needs to be set explicitly, as Tycho uses the
JDT compiler rather than the javac that's part of the "JDK home" and
which hence implicitly knows the bootclasspath?

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