Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Problem building efxclipse sample app with tycho and Java 8
Problem building efxclipse sample app with tycho and Java 8 [message #1257606] Wed, 26 February 2014 16:14 Go to next message
Sun Volland is currently offline Sun VollandFriend
Messages: 29
Registered: September 2010
Junior Member
Hi,

I come into trouble when trying to build the e4 sample application with tycho (0.19.0) and java 8.
I setup a parent pom and a pom for the plugin, feature and product. The build is configured against the http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site/ target platform

when launching an mvn install, I get the following error :

[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Computing target platform for MavenProject: dummy:demo.application:1.0.0-SNAPSHOT @ C:\Users\Guest\dev\workspace\
DemoApplication\pom.xml
[INFO] Adding repository http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site
[INFO] Resolving dependencies of MavenProject: dummy:demo.application:1.0.0-SNAPSHOT @ C:\Users\Guest\dev\workspace\Demo
Application\pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: config.a.jre 1.6.0
[ERROR] Missing requirement: config.a.jre 1.6.0 requires 'a.jre 1.6.0' but it could not be found
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to
satisfy dependency from config.a.jre 1.6.0 to a.jre 1.6.0.; Unable to satisfy dependency from tycho-1393430580827 0.0.0.
1393430580827 to a.jre [1.6.0].; No solution found because the problem is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the probl
em is unsatisfiable.: [Unable to satisfy dependency from config.a.jre 1.6.0 to a.jre 1.6.0.; Unable to satisfy dependenc
y from tycho-1393430580827 0.0.0.1393430580827 to a.jre [1.6.0].; No solution found because the problem is unsatisfiable
.]
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
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)
Caused by: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy depen
dency from config.a.jre 1.6.0 to a.jre 1.6.0.; Unable to satisfy dependency from tycho-1393430580827 0.0.0.1393430580827
to a.jre [1.6.0].; No solution found because the problem is unsatisfiable.]
at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.ja
va:98)
at org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)

at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.
java:109)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.
java:75)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
... 11 more

The thing about jre 1.6.0 seems curious,
Any clue on what's happening ?
Re: Problem building efxclipse sample app with tycho and Java 8 [message #1257661 is a reply to message #1257606] Wed, 26 February 2014 17:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No - i have to try myself - it looks like the problem is the same as if
you are not unchecking "include required ...." in the target platform
setting.

I'll give it a try tomorrow myself - can you try with tycho 0.18?

Tom

On 26.02.14 17:14, Sun Volland wrote:
> Hi,
>
> I come into trouble when trying to build the e4 sample application with
> tycho (0.19.0) and java 8.
> I setup a parent pom and a pom for the plugin, feature and product. The
> build is configured against the
> http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site/
> target platform
>
> when launching an mvn install, I get the following error :
>
> [INFO] Scanning for projects...
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [INFO] Computing target platform for MavenProject:
> dummy:demo.application:1.0.0-SNAPSHOT @ C:\Users\Guest\dev\workspace\
> DemoApplication\pom.xml
> [INFO] Adding repository
> http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site
> [INFO] Resolving dependencies of MavenProject:
> dummy:demo.application:1.0.0-SNAPSHOT @ C:\Users\Guest\dev\workspace\Demo
> Application\pom.xml
> [INFO] Cannot complete the request. Generating details.
> [INFO] Cannot complete the request. Generating details.
> [INFO] {osgi.os=win32, osgi.ws=win32,
> org.eclipse.update.install.features=true, osgi.arch=x86_64}
> [ERROR] Cannot resolve project dependencies:
> [ERROR] Software being installed: config.a.jre 1.6.0
> [ERROR] Missing requirement: config.a.jre 1.6.0 requires 'a.jre 1.6.0'
> but it could not be found
> [ERROR]
> [ERROR] Internal error: java.lang.RuntimeException: No solution found
> because the problem is unsatisfiable.: [Unable to
> satisfy dependency from config.a.jre 1.6.0 to a.jre 1.6.0.; Unable to
> satisfy dependency from tycho-1393430580827 0.0.0.
> 1393430580827 to a.jre [1.6.0].; No solution found because the problem
> is unsatisfiable.] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the probl
> em is unsatisfiable.: [Unable to satisfy dependency from config.a.jre
> 1.6.0 to a.jre 1.6.0.; Unable to satisfy dependenc
> y from tycho-1393430580827 0.0.0.1393430580827 to a.jre [1.6.0].; No
> solution found because the problem is unsatisfiable
> ]
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:483)
> 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)
> Caused by: java.lang.RuntimeException: No solution found because the
> problem is unsatisfiable.: [Unable to satisfy depen
> dency from config.a.jre 1.6.0 to a.jre 1.6.0.; Unable to satisfy
> dependency from tycho-1393430580827 0.0.0.1393430580827
> to a.jre [1.6.0].; No solution found because the problem is unsatisfiable.]
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.ja
>
> va:98)
> at
> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
>
>
> at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.
>
> java:109)
> at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.
>
> java:75)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> ... 11 more
>
> The thing about jre 1.6.0 seems curious,
> Any clue on what's happening ?
>
Re: Problem building efxclipse sample app with tycho and Java 8 [message #1257677 is a reply to message #1257661] Wed, 26 February 2014 17:39 Go to previous messageGo to next message
Sun Volland is currently offline Sun VollandFriend
Messages: 29
Registered: September 2010
Junior Member
Well tycho 0.18 does not seem to support JavaSE-1.8 execution environment:

[ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST C:
\Users\Guest\dev\workspace\DemoApplication\META-INF\MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8' -> [He
lp 1]
org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: E
xception parsing OSGi MANIFEST C:\Users\Guest\dev\workspace\DemoApplication\META-INF\MANIFEST.MF: Unknown OSGi execution
environment: 'JavaSE-1.8'


I also followed the instructions to include the Java 1.8 JDT beta libs and configure the tycho-compiler-plugin to use them as described in the following post:

https://dev.eclipse.org/mhonarc/lists/tycho-user/msg05279.html

but without better result.

FYI my parent pom is :

<project>
	<modelVersion>4.0.0</modelVersion>

	<groupId>dummy</groupId>
	<artifactId>demo.application.parent</artifactId>
	<version>1.0.0</version>
	<packaging>pom</packaging>

	<properties>
		<tycho.version>0.19.0</tycho.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<repositories>
		<repository>
			<id>efxclipse</id>
			<url>http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site/</url>
			<layout>p2</layout>
		</repository>

	</repositories>

	<modules>
		<module>DemoApplication</module>
		<module>DemoApplication.feature</module>
		<module>DemoApplication.product</module>
	</modules>


	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-maven-plugin</artifactId>
				<version>${tycho.version}</version>
				<extensions>true</extensions>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>target-platform-configuration</artifactId>
				<version>${tycho.version}</version>
				<configuration>
					<!-- 
					<environments>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86_64</arch>
						</environment>
					</environments>
					-->
				</configuration>
			</plugin>
		</plugins>

		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-compiler-plugin</artifactId>
					<version>${tycho.version}</version>
					<dependencies>
						<dependency>
							<groupId>org.eclipse.tycho</groupId>
							<artifactId>org.eclipse.jdt.core</artifactId>
							<version>3.9.2.v20140213-0104_BETA_JAVA8</version>
						</dependency>
						<dependency>
							<groupId>org.eclipse.tycho</groupId>
							<artifactId>org.eclipse.jdt.compiler.apt</artifactId>
							<version>1.0.600.v20140213-0104_BETA_JAVA8</version>
						</dependency>
					</dependencies>
				</plugin>
			</plugins>
		</pluginManagement>

	</build>

</project>

Re: Problem building efxclipse sample app with tycho and Java 8 [message #1258325 is a reply to message #1257677] Thu, 27 February 2014 09:12 Go to previous messageGo to next message
Sun Volland is currently offline Sun VollandFriend
Messages: 29
Registered: September 2010
Junior Member
This morning I gave a try with tycho 0.20.0-SNAPSHOT (http://wiki.eclipse.org/Tycho/Release_Notes/0.20)

The 1.6.0 dependency problem looks fixed, but now I somehow have to tell the compiler plugin how to properly resolve the jdt 1.8 libs because it tries to resolve them in the tycho 0.20.0-SNAPSHOT plugin repository instead of my local m2 repo :

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] demo.application.parent ........................... SUCCESS [ 0.218 s]
[INFO] DemoApplication.target ............................ SUCCESS [ 0.234 s]
[INFO] DemoApplication ................................... FAILURE [ 0.328 s]
[INFO] DemoApplication.feature ........................... SKIPPED
[INFO] DemoApplication.product ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.318 s
[INFO] Finished at: 2014-02-27T10:04:57+01:00
[INFO] Final Memory: 18M/104M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0-SNAPSHOT:compile (default-compile) on proj
ect DemoApplication: Execution default-compile of goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0-SNAPSHOT:compile f
ailed: Plugin org.eclipse.tycho:tycho-compiler-plugin:0.20.0-SNAPSHOT or one of its dependencies could not be resolved:
Failure to find org.eclipse.tycho:org.eclipse.jdt.compiler.apt:jar:1.0.600.v20140213-0104_BETA_JAVA8 in https://oss.sonatype.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update
interval of tycho-snapshots has elapsed or updates are forced -> [Help 1]
Re: Problem building efxclipse sample app with tycho and Java 8 [message #1258326 is a reply to message #1257677] Thu, 27 February 2014 09:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well i think you now have a compiler which understands Java8 but that
does not mean the p2-director shipped with it knows how to deal with the
1.8 EE hence the error with installing stuff.

Tom

On 26.02.14 18:39, Sun Volland wrote:
> Well tycho 0.18 does not seem to support JavaSE-1.8 execution environment:
>
> [ERROR] Internal error:
> org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception
> parsing OSGi MANIFEST C:
> \Users\Guest\dev\workspace\DemoApplication\META-INF\MANIFEST.MF: Unknown
> OSGi execution environment: 'JavaSE-1.8' -> [He
> lp 1]
> org.apache.maven.InternalErrorException: Internal error:
> org.eclipse.tycho.core.osgitools.OsgiManifestParserException: E
> xception parsing OSGi MANIFEST
> C:\Users\Guest\dev\workspace\DemoApplication\META-INF\MANIFEST.MF:
> Unknown OSGi execution
> environment: 'JavaSE-1.8'
>
>
> I also followed the instructions to include the Java 1.8 JDT beta libs
> and configure the tycho-compiler-plugin to use them as described in the
> following post:
>
> https://dev.eclipse.org/mhonarc/lists/tycho-user/msg05279.html
>
> but without better result.
>
> FYI my parent pom is :
>
>
> <project>
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>dummy</groupId>
> <artifactId>demo.application.parent</artifactId>
> <version>1.0.0</version>
> <packaging>pom</packaging>
>
> <properties>
> <tycho.version>0.19.0</tycho.version>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
>
> <repositories>
> <repository>
> <id>efxclipse</id>
>
> <url>http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site/</url>
>
> <layout>p2</layout>
> </repository>
>
> </repositories>
>
> <modules>
> <module>DemoApplication</module>
> <module>DemoApplication.feature</module>
> <module>DemoApplication.product</module>
> </modules>
>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-maven-plugin</artifactId>
> <version>${tycho.version}</version>
> <extensions>true</extensions>
> </plugin>
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>target-platform-configuration</artifactId>
> <version>${tycho.version}</version>
> <configuration>
> <!-- <environments>
> <environment>
> <os>win32</os>
> <ws>win32</ws>
> <arch>x86_64</arch>
> </environment>
> </environments>
> -->
> </configuration>
> </plugin>
> </plugins>
>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-compiler-plugin</artifactId>
> <version>${tycho.version}</version>
> <dependencies>
> <dependency>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>org.eclipse.jdt.core</artifactId>
>
> <version>3.9.2.v20140213-0104_BETA_JAVA8</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.tycho</groupId>
>
> <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
>
> <version>1.0.600.v20140213-0104_BETA_JAVA8</version>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
> </pluginManagement>
>
> </build>
>
> </project>
>
>
Re: Problem building efxclipse sample app with tycho and Java 8 [message #1258372 is a reply to message #1258326] Thu, 27 February 2014 10:09 Go to previous message
Sun Volland is currently offline Sun VollandFriend
Messages: 29
Registered: September 2010
Junior Member
Finally the last error was just because my script that deploys the 1.8 JDT libs in my local repo was buggy, that's why it could not resolve the dependency.

Now everything works fine, tycho (0.20.0-SNAPSHOT) successfully generates the efxclipse sample application product with jdk 8.
Previous Topic:efxeclipse Tutorial 3 doesn't show up
Next Topic:Logging all errors in e4 app
Goto Forum:
  


Current Time: Thu Mar 28 12:06:08 GMT 2024

Powered by FUDForum. Page generated in 0.02551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top