Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] migrating from Tycho 1.7 to 2.3

Hello,

here is my example


I launch the build with the following command:
 mvn clean install -X --global-toolchains toolchains.xml

My JAVA_HOME point to a jdk 11. And my toolchain to java 8.
And I see he fail to compile due to some classe remove from jdk in 11 but present in jdk 8.
So I think he compile with the wrong javac. no ?


[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] RCP Parent 1.0.0-SNAPSHOT .......................... SUCCESS [  0.365 s]
[INFO] RCP Example Bundle (Product Application) 0.1.0-SNAPSHOT FAILURE [  2.471 s]
[INFO] RCP Example Feature 0.1.0-SNAPSHOT ................. SKIPPED
[INFO] RCP Example Feature 2 0.2.0-SNAPSHOT ............... SKIPPED
[INFO] org.tycho.demo.rootfiles.win 1.0.0-SNAPSHOT ........ SKIPPED
[INFO] org.tycho.demo.rootfiles 1.0.0 ..................... SKIPPED
[INFO] RCP Example Product 1.0.0-SNAPSHOT ................. SKIPPED
[INFO] RCP Example Target Definition 1.0.0-SNAPSHOT ....... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.016 s
[INFO] Finished at: 2021-07-05T16:59:55+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.3.0:compile (default-compile) on project example-bundle: Compilation failure: Compilation failure:
[ERROR] C:\Users\gdufour\git\github\eclipse\tycho-demo\itp04-rcp\example-bundle\src\example\bundle\Application.java:[21]
[ERROR]         import javax.xml.bind.annotation.XmlEnum;
[ERROR]                ^^^^^^^^^^^^^^
[ERROR] The import javax.xml.bind cannot be resolved
[ERROR] C:\Users\gdufour\git\github\eclipse\tycho-demo\itp04-rcp\example-bundle\src\example\bundle\Application.java:[35]
[ERROR]         XmlEnum xmlEnum = null;
[ERROR]         ^^^^^^^
[ERROR] XmlEnum cannot be resolved to a type
[ERROR] 2 problems (2 errors)
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.3.0:compile (default-compile) on project example-bundle: Compilation failure



On Sat, Jul 3, 2021 at 8:35 AM Guillaume Dufour <guillaume.duff@xxxxxxxxx> wrote:
Ok thanks. I will do that

Le sam. 3 juil. 2021 à 07:34, Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> a écrit :
You should at least share a more complete error message, and as best a
minimal example that reproduces the problem (no need to share the actual
code).


Am 03.07.21 um 00:32 schrieb Guillaume Dufour:
> Hello,
>
> we migrating all our codebase to java 11 but it takes time.
> We want to anticipate and use the last tycho on our old java 8 code base.
> I try to use toolchain, i only declare java 8 inside it. and i add
> " --global-toolchains ${TOOLCHAIN_PATH}" option to all my mvn build.
> But it still fail on import which is present in Java 8 but not in java 11.
>
> import javax.xml.bind.annotation.XmlType;
>
>
> Is there any example of opensource project which use tycho which run on java 11 but compile a java 8?
>
>
> Is there a tutorial or article on it ?
>
> Or you advice me to wait end of java 11 code base migration?
>
>
> Sorry my product is a commercial tool, so i cannot provide the source.
>
>
> Regards
>
> Guillaume Dufour
>
>
>
>
> _______________________________________________
> tycho-dev mailing list
> tycho-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev
>
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev

Back to the top