ossi petz wrote:
i someone has some feedback on using java 1.5 / eclipse 3.3 for java
1.4 based projects? eclipse requires java 1.5. which jdk does the
maven embedder use to compile the sources? the one configured in
eclipse? or the one used to start eclipse?
It is somewhat complicated. See the FAQ entry at
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-UnabletolocatetheJavacCompilerError
First of all, Eclipse and m2eclipse don't require Java 1.5, and do
work on Java 1.4.
Maven embedder is also don't require JDK, but sources are compiled by
Maven compiler plugin (and few other Maven plugins, such as AspectJ) and
that is the one that needs JDK (or more specifically - tools.jar). The
m2eclipse can trigger Maven compiler plugin invocation on "Update
Sources" action. In this case Maven is running using the same JVM as
Eclipse is running on (it runs in process).
When you launch Maven goals using m2eclipse, we always run them in
external JVM and select JVM installed under Java / Installed JREs in
Eclipse settings based on the best match for given project. So, those
JREs should be also JDKs, otherwise Maven compiler won't be able to
compile anything.
So, we now show a warning dialog on startup that gives some pointers
you can click on. You can also disable dialog if you don't want to fix
those issues but also don't want to see the dialog.
thanks a lot for the new version! it contains long awaited features we
where to lazy doing it ourselves :)
Thanks for the kind words. Appreciate that.
regards,
Eugene
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email