Hi
I work with several Java modules which have different JDK versions in the same 
Eclipse workspace.
For instance:
-Module A -> JDK 1.6.0_24
-Module B-> JDK 1.6.0_37

I must use JDK6 update 24 for module A, no higher version is supported.
I use Eclipse 4.3.2 (Kepler SR-2)

Module A pom.xml compiler plugin section is :
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.1</version>
          <configuration>
            <verbose>true</verbose>
            <fork>true</fork>
            <executable>C:\Program Files\Java\jdk1.6.0_24\bin\javac</executable>
            <compilerVersion>1.6</compilerVersion>
            <source>1.6</source>
            <target>1.6</target>
          </configuration>
        </plugin>

Module B pom.xml compiler plugin section is :
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.1</version>
          <configuration>
            <source>1.6</source>
            <target>1.6</target>
          </configuration>
        </plugin>

On Eclipse Preferences->Java->Installed JREs->Execution Environments I have the 
following compatible JREs for JavaSE-1.6 execution environment:
jdk1.6.0_24 [perfect match]
jdk1.6.0_37 [perfect match]

When I update Maven Project for both A and B projects, I get the following JRE 
System Library : JavaSE-1.6 for each project.

My problem :
For module A and B the jdk version used is 1.6.0_37 (I see that when I expand 
JRE System Library item in Package Explorer tab).

It's ok for module B. But for module A I would like to have jdk1.6.0_24 instead.

Any clue how can I achieve this with m2e plugin (the plugin seems to ignore the 
forked jdk I defined in plugin section)? Is there a feature request opened for 
that?

Cordialement / Best regards

Laurent TOURREAU




This message and any attachments (the "message") is
intended solely for the intended addressees and is confidential. 
If you receive this message in error,or are not the intended recipient(s), 
please delete it and any copies from your systems and immediately notify
the sender. Any unauthorized view, use that does not comply with its purpose, 
dissemination or disclosure, either whole or partial, is prohibited. Since the 
internet 
cannot guarantee the integrity of this message which may not be reliable, BNP 
PARIBAS 
(and its subsidiaries) shall not be liable for the message if modified, changed 
or falsified. 
Do not print this message unless it is necessary,consider the environment.

----------------------------------------------------------------------------------------------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message") 
sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de 
ce message qui n'est pas conforme a sa destination, toute diffusion ou toute 
publication, totale ou partielle, est interdite. L'Internet ne permettant pas 
d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP Paribas 
(et ses filiales) decline(nt) toute responsabilite au titre de ce message dans 
l'hypothese
ou il aurait ete modifie, deforme ou falsifie. 
N'imprimez ce message que si necessaire, pensez a l'environnement.

_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to