Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Wrong maven-tycho setup provided by project creation wizard
Wrong maven-tycho setup provided by project creation wizard [message #1441530] Thu, 09 October 2014 21:43 Go to next message
Andres Almiray is currently offline Andres AlmirayFriend
Messages: 9
Registered: July 2009
Location: Basel
Junior Member

Creating a JavaFX e4 application using the project creation wizard results in wrong configuration.

Steps to reproduce:

1. download all-in-one efxclipse bundle from efxclipse-addons (I've got eclipse-SDK-4.4-macosx-cocoa-x86_64-efx-1.0.0-SNAPSHOT.tar.gz)
2. Create a new project by choosing "JavaFX / OSGI / e4 Application Projects"

Project is successfully created however there are some errors as evidenced in the attached screenshot. Switching to the command line to invoke "mvn clean" on the .releng project (where the master pom is) results in the following exception

[INFO] Scanning for projects...
[ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /Users/aalmiray/Documents/workspace/test.app/META-INF/MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8' -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /Users/aalmiray/Documents/workspace/test.app/META-INF/MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8'
    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: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: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 /Users/aalmiray/Documents/workspace/test.app/META-INF/MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8'
    at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:66)
    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:142)
    at org.eclipse.tycho.core.osgitools.OsgiBundleProject.setupProject(OsgiBundleProject.java:131)
    at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:68)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    ... 11 more
Caused by: org.eclipse.tycho.core.ee.UnknownEnvironmentException: Unknown OSGi execution environment: 'JavaSE-1.8'
    at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.getExecutionEnvironment(ExecutionEnvironmentUtils.java:83)
    at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:63)
    ... 23 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] 


Switching dependencies to

    <properties>
        <tycho-version>0.21.0</tycho-version>
        <junit-version>4.11</junit-version>
        <mockito-version>1.8.4</mockito-version>
        <platform-version>4.4</platform-version>
        <efx-version>1.0.0</efx-version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>


makes the "mvn clean" command succeed. However, coming back to inside Eclipse the errors persists, even after refreshing the projects and closing/opening again.
Re: Wrong maven-tycho setup provided by project creation wizard [message #1441543 is a reply to message #1441530] Thu, 09 October 2014 22:05 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Correct we need a newer tycho version as the baseline fixed with [1].
The error you see in Eclipse has nothing todo with Tycho - tycho is not
configuring your workspace!

You simply have not set any specific target platform like e.g. outlined
in http://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4

Tom

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=446551

On 09.10.14 23:43, Andres Almiray wrote:
> Creating a JavaFX e4 application using the project creation wizard results in wrong configuration.
>
> Steps to reproduce:
>
> 1. download all-in-one efxclipse bundle from efxclipse-addons (I've got eclipse-SDK-4.4-macosx-cocoa-x86_64-efx-1.0.0-SNAPSHOT.tar.gz)
> 2. Create a new project by choosing "JavaFX / OSGI / e4 Application Projects"
>
> Project is successfully created however there are some errors as evidenced in the attached screenshot. Switching to the command line to invoke "mvn clean" on the .releng project (where the master pom is) results in the following exception
>
>
> [INFO] Scanning for projects...
> [ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /Users/aalmiray/Documents/workspace/test.app/META-INF/MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8' -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /Users/aalmiray/Documents/workspace/test.app/META-INF/MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8'
> 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: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: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 /Users/aalmiray/Documents/workspace/test.app/META-INF/MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-1.8'
> at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:66)
> 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:142)
> at org.eclipse.tycho.core.osgitools.OsgiBundleProject.setupProject(OsgiBundleProject.java:131)
> at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:68)
> at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> ... 11 more
> Caused by: org.eclipse.tycho.core.ee.UnknownEnvironmentException: Unknown OSGi execution environment: 'JavaSE-1.8'
> at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.getExecutionEnvironment(ExecutionEnvironmentUtils.java:83)
> at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:63)
> ... 23 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]
>
>
> Switching dependencies to
>
>
> <properties>
> <tycho-version>0.21.0</tycho-version>
> <junit-version>4.11</junit-version>
> <mockito-version>1.8.4</mockito-version>
> <platform-version>4.4</platform-version>
> <efx-version>1.0.0</efx-version>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
>
>
> makes the "mvn clean" command succeed. However, coming back to inside Eclipse the errors persists, even after refreshing the projects and closing/opening again.
>
Previous Topic:Using Eclipse help system
Next Topic:Unable to launch tycho generated application
Goto Forum:
  


Current Time: Fri Apr 26 02:51:31 GMT 2024

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

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

Back to the top