Community
Participate
Working Groups
While try to build JBoss Tools with Tycho 0.14: I got this: See error: [INFO] Resolving class path of MavenProject: org.jboss.tools.examples:examples.site:1.2.1-SNAPSHOT @ /home/istria/workspaces/workspaceJBossTycho/jboss-tycho/examples/site/pom.xml [INFO] Computing target platform for MavenProject: org.jboss.tools.maven.features:org.jboss.tools.maven.feature:1.3.0-SNAPSHOT @ /home/istria/workspaces/workspaceJBossTycho/jboss-tycho/maven/features/org.jboss.tools.maven.feature/pom.xml [INFO] Adding repository (cached) http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/ [INFO] Resolving dependencies of MavenProject: org.jboss.tools.maven.features:org.jboss.tools.maven.feature:1.3.0-SNAPSHOT @ /home/istria/workspaces/workspaceJBossTycho/jboss-tycho/maven/features/org.jboss.tools.maven.feature/pom.xml [INFO] Downloading org.eclipse.equinox.p2.discovery [INFO] Fetching org.eclipse.equinox.p2.discovery_1.0.100.v20110502-1955.jar (0B of 34,61kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.equinox.p2.discovery_1.0.100.v20110502-1955.jar (3,7kB of 34,61kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.equinox.p2.discovery.compatibility [INFO] Fetching org.eclipse.equinox.p2.discovery.compatibility_1.0.1.v20110502-1955.jar (0B of 54,13kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.equinox.p2.discovery.compatibility_1.0.1.v20110502-1955.jar (3,7kB of 54,13kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.equinox.p2.ui.discovery [INFO] Fetching org.eclipse.equinox.p2.ui.discovery_1.0.0.v20110502-1955.jar (0B of 146,23kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.equinox.p2.ui.discovery_1.0.0.v20110502-1955.jar (3,69kB of 146,23kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.equinox.p2.ui.discovery_1.0.0.v20110502-1955.jar (70,83kB of 146,23kB at 69,51kB/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.m2e.discovery [INFO] Fetching org.eclipse.m2e.discovery_1.0.200.20111228-1245.jar (0B of 111,33kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.m2e.discovery_1.0.200.20111228-1245.jar (3,69kB of 111,33kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.discovery_1.0.200.20111228-1245.jar (70,83kB of 111,33kB at 69,51kB/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.m2e.editor [INFO] Fetching org.eclipse.m2e.editor_1.0.200.20111228-1245.jar (0B of 286,67kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.m2e.editor_1.0.200.20111228-1245.jar (3,69kB of 286,67kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.editor_1.0.200.20111228-1245.jar (91,89kB of 286,67kB at 90,58kB/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.m2e.editor.xml [INFO] Fetching org.eclipse.m2e.editor.xml_1.0.200.20111228-1245.jar (0B of 198,26kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.m2e.editor.xml_1.0.200.20111228-1245.jar (3,69kB of 198,26kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.editor.xml_1.0.200.20111228-1245.jar (86,63kB of 198,26kB at 85,31kB/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.m2e.jdt [INFO] Fetching org.eclipse.m2e.jdt_1.0.200.20111228-1245.jar (0B of 103,13kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.m2e.jdt_1.0.200.20111228-1245.jar (3,69kB of 103,13kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.jdt_1.0.200.20111228-1245.jar (80,04kB of 103,13kB at 76,1kB/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.m2e.lifecyclemapping.defaults [INFO] Fetching org.eclipse.m2e.lifecyclemapping.defaults_1.0.200.20111228-1245.jar (0B of 9,24kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.lifecyclemapping.defaults_1.0.200.20111228-1245.jar (3,7kB of 9,24kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Downloading org.eclipse.m2e.scm [INFO] Fetching org.eclipse.m2e.scm_1.0.200.20111228-1245.jar (0B of 67,96kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.scm_1.0.200.20111228-1245.jar (3,69kB of 67,96kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Downloading org.eclipse.m2e.feature [INFO] Fetching org.eclipse.m2e.feature_1.0.200.20111228-1245.jar (0B of 19,62kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/features/ [INFO] Fetching org.eclipse.m2e.feature_1.0.200.20111228-1245.jar (3,7kB of 19,62kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/features/ [INFO] 1 operation remaining. [INFO] Downloading org.eclipse.m2e.usagedata [INFO] Fetching org.eclipse.m2e.usagedata_1.0.200.20111228-1245.jar (0B of 12,67kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.m2e.usagedata_1.0.200.20111228-1245.jar (3,7kB of 12,67kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.eclipse.m2e.refactoring [INFO] Fetching org.eclipse.m2e.refactoring_1.0.200.20111228-1245.jar (0B of 70,48kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.eclipse.m2e.refactoring_1.0.200.20111228-1245.jar (3,69kB of 70,48kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Downloading org.eclipse.m2e.launching [INFO] Fetching org.eclipse.m2e.launching_1.0.200.20111228-1245.jar (0B of 94,5kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.eclipse.m2e.launching_1.0.200.20111228-1245.jar (3,69kB of 94,5kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.maven.ide.eclipse.wtp [INFO] Fetching org.maven.ide.eclipse.wtp_0.14.0.20110928-2045.jar (0B of 256,05kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.maven.ide.eclipse.wtp_0.14.0.20110928-2045.jar (3,69kB of 256,05kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.maven.ide.eclipse.wtp_0.14.0.20110928-2045.jar (64,25kB of 256,05kB at 62,93kB/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.maven.ide.eclipse.wtp.overlay [INFO] Fetching org.maven.ide.eclipse.wtp.overlay_0.14.0.20110928-2045.jar (0B of 39,64kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.maven.ide.eclipse.wtp.overlay_0.14.0.20110928-2045.jar (3,7kB of 39,64kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.sonatype.m2e.mavenarchiver [INFO] Fetching org.sonatype.m2e.mavenarchiver_0.15.0.201109290002.jar (0B of 16,69kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Fetching org.sonatype.m2e.mavenarchiver_0.15.0.201109290002.jar (3,7kB of 16,69kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Downloading org.maven.ide.eclipse.wtp.overlay.ui [INFO] Fetching org.maven.ide.eclipse.wtp.overlay.ui_0.14.0.20110928-2045.jar (0B of 5,39kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] Fetching org.maven.ide.eclipse.wtp.overlay.ui_0.14.0.20110928-2045.jar (4kB of 5,39kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/plugins/ [INFO] 1 operation remaining. [INFO] Downloading org.maven.ide.eclipse.wtp.feature [INFO] Fetching org.maven.ide.eclipse.wtp.feature_0.14.0.20110928-2045.jar (0B of 3,25kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/features/ [INFO] 1 operation remaining. [INFO] Fetching org.maven.ide.eclipse.wtp.feature_0.14.0.20110928-2045.jar (3,25kB of 3,25kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/features/ [INFO] Downloading org.sonatype.m2e.mavenarchiver.feature [INFO] Fetching org.sonatype.m2e.mavenarchiver.feature_0.15.0.201109290002.jar (0B of 11,82kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/features/ [INFO] 1 operation remaining. [INFO] Fetching org.sonatype.m2e.mavenarchiver.feature_0.15.0.201109290002.jar (4kB of 11,82kB at 0B/s) from http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR1-M/latest/features/ [INFO] Resolving class path of MavenProject: org.jboss.tools.maven.features:org.jboss.tools.maven.feature:1.3.0-SNAPSHOT @ /home/istria/workspaces/workspaceJBossTycho/jboss-tycho/maven/features/org.jboss.tools.maven.feature/pom.xml [ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /home/istria/.m2/repository/p2/osgi/bundle/org.maven.ide.eclipse.wtp.overlay.ui/0.14.0.20110928-2045/org.maven.ide.eclipse.wtp.overlay.ui-0.14.0.20110928-2045.jar!/META-INF/MANIFEST.MF: null: UnknownEnvironmentException -> [Help 1] org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /home/istria/.m2/repository/p2/osgi/bundle/org.maven.ide.eclipse.wtp.overlay.ui/0.14.0.20110928-2045/org.maven.ide.eclipse.wtp.overlay.ui-0.14.0.20110928-2045.jar!/META-INF/MANIFEST.MF: null at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /home/istria/.m2/repository/p2/osgi/bundle/org.maven.ide.eclipse.wtp.overlay.ui/0.14.0.20110928-2045/org.maven.ide.eclipse.wtp.overlay.ui-0.14.0.20110928-2045.jar!/META-INF/MANIFEST.MF: null at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:64) at org.eclipse.tycho.core.osgitools.OsgiManifest.<init>(OsgiManifest.java:48) at org.eclipse.tycho.core.osgitools.OsgiManifest.parse(OsgiManifest.java:140) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifestFromFile(DefaultBundleReader.java:90) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.doLoadManifest(DefaultBundleReader.java:67) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifest(DefaultBundleReader.java:56) at org.eclipse.tycho.core.maven.MavenDependencyInjector.getClasspathElements(MavenDependencyInjector.java:139) at org.eclipse.tycho.core.maven.MavenDependencyInjector.newExternalDependencies(MavenDependencyInjector.java:110) at org.eclipse.tycho.core.maven.MavenDependencyInjector.addDependency(MavenDependencyInjector.java:93) at org.eclipse.tycho.core.maven.MavenDependencyInjector.injectMavenDependencies(MavenDependencyInjector.java:49) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.injectDependenciesIntoMavenModel(P2TargetPlatformResolver.java:546) at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:113) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:61) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 11 more Caused by: org.eclipse.tycho.core.UnknownEnvironmentException at org.eclipse.tycho.core.utils.ExecutionEnvironmentUtils.getExecutionEnvironment(ExecutionEnvironmentUtils.java:87) at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:61) ... 25 more [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException And when having a look at the JAR in my repo, I see: Bundle-RequiredExecutionEnvironment: JavaSE-1.5,JavaSE-1.6,JavaSE-1.7
- Sorry for the long list before, I thought I had removed most of it - Here is the report for JBoss Tools: https://issues.jboss.org/browse/JBIDE-10828
The error is not clear on the actual reason. After having a look at Tycho code, it seems possible that the issue may come from the fact that one of the BREE (JavaSE-1.7) cannot be resolved.
(In reply to comment #0) > > And when having a look at the JAR in my repo, I see: > Bundle-RequiredExecutionEnvironment: JavaSE-1.5,JavaSE-1.6,JavaSE-1.7 There is no "JavaSE-1.5" afaik, you need to use "J2SE-1.5". Tycho needs to provide a better error message about execution environment it was not able to parse.
http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=7b9552d1bbb60a7acc8270dad383d380f08e7b68