Discussion:
[tycho-user] Work around for Maven persistently using JDK 1.5 by default
khady lo seck
2017-03-15 17:11:09 UTC
Permalink
Hello,

I am running Maven Tycho on an Eclipse Project that is using Java 8. The
whole system knows I am using JDK 1.8. and even my POM mentions it.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...

I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>

but regardless I have the same error due to Maven using jdk 1.5 regardless
of what is written in pom and manifest.


*Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on
project com.company.bbcode.parser: Compilation failure: Compilation
failure:*
*...*

* Lambda expressions are allowed only at source level 1.8 or above*

In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit dependency on
groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Nick Boldt
2017-03-15 18:29:08 UTC
Permalink
Do your MANIFEST.MF files specify JDK 8 too?

If not, set this in your plugins' manifests:

Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8. The
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
*Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on
project com.company.bbcode.parser: Compilation failure: Compilation
failure:*
*...*
* Lambda expressions are allowed only at source level 1.8 or above*
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit dependency
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat,
Inc.
http://nick.divbyzero.com
khady lo seck
2017-03-15 18:30:12 UTC
Permalink
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck <
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8. The
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
*Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on
project com.company.bbcode.parser: Compilation failure: Compilation
failure:*
*...*
* Lambda expressions are allowed only at source level 1.8 or above*
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit dependency
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat,
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Jonah Graham
2017-03-15 19:27:56 UTC
Permalink
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?

Do you have a minimal test case, perhaps on GitHub I can try out?
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
Post by khady lo seck
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8. The
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on
...
Lambda expressions are allowed only at source level 1.8 or above
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit dependency
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
Khady L. Seck
Full Stack Java Developer
Tel: 438-830-4117
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat,
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
khady lo seck
2017-03-15 19:41:37 UTC
Permalink
humm I haven't looked at how to add that to the classpath. I will try
.settings/org.eclipse.jdt.core.prefs but up to now I tried these three ways
suggested in this stackoverflow post (user : Henrik Steudel post). None
work.

http://stackoverflow.com/questions/24669940/java-8-missing-required-capability-require-capability-osgi-ee-filter-osg/40666361#40666361


Unfortunately the code is company code and they are pretty strict on
posting code externally.
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Do you have a minimal test case, perhaps on GitHub I can try out?
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
Post by khady lo seck
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8.
The
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
project com.company.bbcode.parser: Compilation failure: Compilation
...
Lambda expressions are allowed only at source level 1.8 or above
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit
dependency
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
Khady L. Seck
Full Stack Java Developer
Tel: 438-830-4117
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red
Hat,
Post by khady lo seck
Post by Nick Boldt
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from
Post by khady lo seck
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
khady lo seck
2017-03-15 19:48:53 UTC
Permalink
When I try approach 3 the error reported changes to
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2
repository with ID 'eclipse-repo' from location
http://download.eclipse.org/releases/mars: Unable to read repository at
http://download.eclipse.org/releases/mars.
http://download.eclipse.org/releases/mars is not a valid repository
location. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: Failed to load p2 repository with ID
'eclipse-repo' from location http://download.eclipse.org/releases/mars
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Post by khady lo seck
humm I haven't looked at how to add that to the classpath. I will try
.settings/org.eclipse.jdt.core.prefs but up to now I tried these three
ways suggested in this stackoverflow post (user : Henrik Steudel post).
None work.
http://stackoverflow.com/questions/24669940/java-8-
missing-required-capability-require-capability-osgi-ee-
filter-osg/40666361#40666361
Unfortunately the code is company code and they are pretty strict on
posting code externally.
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Do you have a minimal test case, perhaps on GitHub I can try out?
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
Post by khady lo seck
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8.
The
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
project com.company.bbcode.parser: Compilation failure: Compilation
...
Lambda expressions are allowed only at source level 1.8 or above
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit
dependency
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
Khady L. Seck
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red
Hat,
Post by khady lo seck
Post by Nick Boldt
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from
Post by khady lo seck
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Matthias Sohn
2017-03-15 19:59:28 UTC
Permalink
I tried to open http://download.eclipse.org/releases/mars using p2browser
and this worked successfully
Post by khady lo seck
When I try approach 3 the error reported changes to
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2
repository with ID 'eclipse-repo' from location
http://download.eclipse.org/releases/mars: Unable to read repository at
http://download.eclipse.org/releases/mars. http://download.eclipse.org/
releases/mars is not a valid repository location. -> [Help 1]
java.lang.RuntimeException: Failed to load p2 repository with ID
'eclipse-repo' from location http://download.eclipse.org/releases/mars
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.plexus.classworlds.launcher.Launcher.
launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.
launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.
mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.
main(Launcher.java:356)
On Wed, Mar 15, 2017 at 12:41 PM, khady lo seck <
Post by khady lo seck
humm I haven't looked at how to add that to the classpath. I will try
.settings/org.eclipse.jdt.core.prefs but up to now I tried these three
ways suggested in this stackoverflow post (user : Henrik Steudel post).
None work.
http://stackoverflow.com/questions/24669940/java-8-missing-
required-capability-require-capability-osgi-ee-filter-osg/
40666361#40666361
Unfortunately the code is company code and they are pretty strict on
posting code externally.
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Do you have a minimal test case, perhaps on GitHub I can try out?
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
Post by khady lo seck
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8.
The
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
project com.company.bbcode.parser: Compilation failure: Compilation
...
Lambda expressions are allowed only at source level 1.8 or above
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit
dependency
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
Khady L. Seck
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red
Hat,
Post by khady lo seck
Post by Nick Boldt
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from
Post by khady lo seck
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Matthew Piggott
2017-03-15 19:59:46 UTC
Permalink
Does your project only use Groovy? That seems to just be the groovy
compiler configuration.

Maybe relevant -
https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#compilerVersion
Post by khady lo seck
When I try approach 3 the error reported changes to
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2
repository with ID 'eclipse-repo' from location
http://download.eclipse.org/releases/mars: Unable to read repository at
http://download.eclipse.org/releases/mars. http://download.eclipse.org/
releases/mars is not a valid repository location. -> [Help 1]
java.lang.RuntimeException: Failed to load p2 repository with ID
'eclipse-repo' from location http://download.eclipse.org/releases/mars
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.plexus.classworlds.launcher.Launcher.
launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.
launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.
mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.
main(Launcher.java:356)
On Wed, Mar 15, 2017 at 12:41 PM, khady lo seck <
Post by khady lo seck
humm I haven't looked at how to add that to the classpath. I will try
.settings/org.eclipse.jdt.core.prefs but up to now I tried these three
ways suggested in this stackoverflow post (user : Henrik Steudel post).
None work.
http://stackoverflow.com/questions/24669940/java-8-missing-
required-capability-require-capability-osgi-ee-filter-osg/
40666361#40666361
Unfortunately the code is company code and they are pretty strict on
posting code externally.
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Do you have a minimal test case, perhaps on GitHub I can try out?
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
Post by khady lo seck
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java 8.
The
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
project com.company.bbcode.parser: Compilation failure: Compilation
...
Lambda expressions are allowed only at source level 1.8 or above
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit
dependency
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
Khady L. Seck
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red
Hat,
Post by khady lo seck
Post by Nick Boldt
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from
Post by khady lo seck
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
khady lo seck
2017-03-16 18:52:14 UTC
Permalink
No I am using mostly java across all projects. Some of them still have
groovy left but eventually we will refactor everything to java..
Post by Matthew Piggott
Does your project only use Groovy? That seems to just be the groovy
compiler configuration.
Maybe relevant - https://eclipse.org/tycho/sitedocs/tycho-compiler-
plugin/compile-mojo.html#compilerVersion
Post by khady lo seck
When I try approach 3 the error reported changes to
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2
repository with ID 'eclipse-repo' from location
http://download.eclipse.org/releases/mars: Unable to read repository at
http://download.eclipse.org/releases/mars. http://download.eclipse.org/re
leases/mars is not a valid repository location. -> [Help 1]
java.lang.RuntimeException: Failed to load p2 repository with ID
'eclipse-repo' from location http://download.eclipse.org/releases/mars
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnha
nced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx
itCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Launcher.java:356)
On Wed, Mar 15, 2017 at 12:41 PM, khady lo seck <
Post by khady lo seck
humm I haven't looked at how to add that to the classpath. I will try
.settings/org.eclipse.jdt.core.prefs but up to now I tried these three
ways suggested in this stackoverflow post (user : Henrik Steudel post).
None work.
http://stackoverflow.com/questions/24669940/java-8-missing-r
equired-capability-require-capability-osgi-ee-filter-osg/406
66361#40666361
Unfortunately the code is company code and they are pretty strict on
posting code externally.
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Do you have a minimal test case, perhaps on GitHub I can try out?
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
Post by khady lo seck
Tried that it did not work.
Post by Nick Boldt
Do your MANIFEST.MF files specify JDK 8 too?
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
On Wed, Mar 15, 2017 at 1:11 PM, khady lo seck
Post by khady lo seck
Hello,
I am running Maven Tycho on an Eclipse Project that is using Java
8. The
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
whole system knows I am using JDK 1.8. and even my POM mentions it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
...
I tried different things to work around the issue including using
org.codehaus.mojo and specifying 1.8 in the manifest.mf.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>maven-version</goal>
</goals>
</execution>
</executions>
</plugin>
but regardless I have the same error due to Maven using jdk 1.5
regardless of what is written in pom and manifest.
Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
project com.company.bbcode.parser: Compilation failure: Compilation
...
Lambda expressions are allowed only at source level 1.8 or above
In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<javaAgentClass>lombok.launch.Agent</javaAgentClass>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit
dependency
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>com.company.lombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.8</version>
</dependency>
</dependencies>
</plugin>
--
Best regards,
Khady L. Seck
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
Post by khady lo seck
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red
Hat,
Post by khady lo seck
Post by Nick Boldt
Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe
Post by khady lo seck
Post by Nick Boldt
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from
Post by khady lo seck
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Andreas Sewe
2017-03-16 11:11:09 UTC
Permalink
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Note that whether that file is considered depends on your Tycho version.
As of 1.0.0, it is considered by default [1]. For older version,
<useProjectSettings> defaults to false, however.

What would be helpful is to have the section from the effective POM (mvn
help:effective-pom) that deals with the tycho-compiler-plugin, as there
are multiple settings (<useProjectSettings>, <useJDK>, <source>,
<target> [2]) that may be relevant here.

Hope this helps.

Andreas

[1] <https://wiki.eclipse.org/Tycho/Release_Notes/1.0.0#Compiler>
[2]
<https://www.eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html>
--
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
khady lo seck
2017-03-16 19:06:35 UTC
Permalink
I have switched to Tycho 1.0.0 now. Andreas Sewe. I don't understand what
you said after the sentence about being on tycho 1.0.0




*What would be helpful is to have the section from the effective POM
(mvnhelp:effective-pom) that deals with the tycho-compiler-plugin, as
thereare multiple settings (<useProjectSettings>, <useJDK>,
<source>,<target> [2]) that may be relevant here.*

What exactly should i set?

This is what my effective_pom looks like for the tycho_colpiler_plugin
section

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-warn:-raw,unchecked</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
<configuration>
<compilerArgs>
<arg>-warn:-raw,unchecked</arg>
</compilerArgs>
</configuration>
</plugin>
Post by Andreas Sewe
Post by Jonah Graham
In addition to the manifest, are the .classpath and
.settings/org.eclipse.jdt.core.prefs also set to 1.8?
Note that whether that file is considered depends on your Tycho version.
As of 1.0.0, it is considered by default [1]. For older version,
<useProjectSettings> defaults to false, however.
What would be helpful is to have the section from the effective POM (mvn
help:effective-pom) that deals with the tycho-compiler-plugin, as there
are multiple settings (<useProjectSettings>, <useJDK>, <source>,
<target> [2]) that may be relevant here.
Hope this helps.
Andreas
[1] <https://wiki.eclipse.org/Tycho/Release_Notes/1.0.0#Compiler>
[2]
<https://www.eclipse.org/tycho/sitedocs/tycho-compiler-
plugin/compile-mojo.html>
--
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
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Andreas Sewe
2017-03-17 08:18:32 UTC
Permalink
Hi,
Post by khady lo seck
I have switched to Tycho 1.0.0 now. Andreas Sewe. I don't understand
what you said after the sentence about being on tycho 1.0.0
OK, so useProjectSettings=true. In that case, do you have .classpath and
.settings/org.eclipse.jdt.core.prefs files present when you build with
Tycho? Because Tycho will take the configuration from there.
Post by khady lo seck
/What would be helpful is to have the section from the effective POM (mvn
help:effective-pom) that deals with the tycho-compiler-plugin, as there
are multiple settings (<useProjectSettings>, <useJDK>, <source>,
<target> [2]) that may be relevant here./
OK, useJDK=SYSTEM (the default). That means that the
tycho-compiler-plugin should use the JDK used to run "mvn" with, but
apply any settings from .classpath and settings/org.eclipse.jdt.core.prefs.

Did you try runnning "mvn" with the -X (debug) switch?

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
Loading...