Description of problem: Manifest of org.eclipse.osgi_3.10.0.v20140417-0850.jar contains requirement on osgi.ee=JavaSE/compact1, which breaks Tycho. Version-Release number of selected component (if applicable): 4.4.0-0.11.git201404150800 Steps to Reproduce: Try to build a package with tycho. Actual results: Exception in thread "main" java.lang.ExceptionInInitializerError at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:63) at org.eclipse.tycho.core.osgitools.OsgiManifest.<init>(OsgiManifest.java:52) at org.eclipse.tycho.core.osgitools.OsgiManifest.parse(OsgiManifest.java:142) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifestFile(DefaultBundleReader.java:107) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifestFromDirectory(DefaultBundleReader.java:103) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.doLoadManifest(DefaultBundleReader.java:60) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifest(DefaultBundleReader.java:51) at org.eclipse.tycho.core.osgitools.OsgiBundleProject.readArtifactKey(OsgiBundleProject.java:139) at org.eclipse.tycho.core.osgitools.OsgiBundleProject.setupProject(OsgiBundleProject.java:134) at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:68) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:115) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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.IllegalArgumentException: JavaSE/compact1 at org.eclipse.tycho.core.ee.EEVersion$EEType.fromName(EEVersion.java:35) at org.eclipse.tycho.core.ee.StandardExecutionEnvironment.parseEEVersion(StandardExecutionEnvironment.java:103) at org.eclipse.tycho.core.ee.StandardExecutionEnvironment.<init>(StandardExecutionEnvironment.java:79) at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.fillEnvironmentsMap(ExecutionEnvironmentUtils.java:41) at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.<clinit>(ExecutionEnvironmentUtils.java:33) ... 24 more
This is actually a bug in Tycho that has to support the Java 8 compact profiles.
These were added recently to org.eclipse.osgi upstream. I guess we can just add JavaSE/compact{1..3} to EEType. (http://openjdk.java.net/jeps/161). I'll file at upstream Tycho as well.
tycho-0.20.0-3.fc21 (http://pkgs.fedoraproject.org/cgit/tycho.git/commit/?id=25d9638d5985458f63f19af17688b1287cd50234) will resolve this issue. I'll wait until Mat is able to rebuild Eclipse to confirm.
Thanks Roland, I've kicked off a build here: http://koji.fedoraproject.org/koji/taskinfo?taskID=6767164
I confirm that latest tycho fixed the issue for me.
Marking as CLOSED (RAWHIDE). I've referenced this issue at https://bugs.eclipse.org/bugs/show_bug.cgi?id=429442 .