Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » How to build Test Project
How to build Test Project [message #1124340] Thu, 03 October 2013 08:45 Go to next message
Filip Deleersnijder is currently offline Filip Deleersnijder
Messages: 9
Registered: October 2013
Junior Member
Hi,

We are deciding whether the OSGi + JavaFX combination seems reasonable for our next project. Therefor, we made a small proof of concept project that we would like to build into a stand-alone application.

We have very little ANT experience and none Maven/Tycho experience, but I read that e(fx)clipse generates most of the tooling for us.
Could somebody give us some points on how to build our POC ?

Our entire workspace can be downloaded from this link (docs.google.com/file/d/0B2aFUSe8nJC0blViWUxub0Y3MWs/edit?usp=sharing).

The idea behind our POC project is the following:

We have a bundle with a Declarative Services Component that provides the "ButtonProvider" service. This service allows consumers of this service to request a Bundle.

We created an application with the "JavaFX/OSGi/OSGi Application Project" wizard. In this bundle, we have the MainApplication, a bundleactivator and a DS-Component ( called the ButtonBinderImpl ). The ButtonBinderImpl binds ButtonProviders and waits for the ApplicationService ( provided by the MainApplication ) to be registered. It will then add all the buttons from the ButtonProviders to the ApplicationService.

Any help will be greatly appreciated.

Filip

PS: The target platform that we use, is a combination of the Target platform from the (​http://download.eclipse.org/efxclipse/runtime-nightly/site) combined with the two bunldes that can be found in our Runtime project.
Re: How to build Test Project [message #1124349 is a reply to message #1124340] Thu, 03 October 2013 08:55 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5259
Registered: July 2009
Senior Member
Hi,

It would be much easier if you pushed your stuff to github then I could
take a look and provide a pull request.

I have not yet looked into the sources but the wizard should have
generated a project named ....releng and in there is a pom.xml this what
you should execute through maven.

The distro already holds m2e so in theory you should only have bring up
the context-menu on the pom.xml and select Run As > Maven build it will
bring up the build dialog and you enter "package" as the goal.

If you run with Java7 you'll also have to fix the javafx dependency see
"Maven build fails" in the forum how to fix this.

The ideal thing would be if we document all steps and put them up into
the wiki so that others can follow them step by step!

Anyways put up your stuff on github and I'll provide you some guidance!

Tom

On 03.10.13 14:45, FIlip Deleersnijder wrote:
> Hi,
>
> We are deciding whether the OSGi + JavaFX combination seems reasonable
> for our next project. Therefor, we made a small proof of concept
> project that we would like to build into a stand-alone application.
>
> We have very little ANT experience and none Maven/Tycho experience, but
> I read that e(fx)clipse generates most of the tooling for us.
> Could somebody give us some points on how to build our POC ?
>
> Our entire workspace can be downloaded from this link
> (docs.google.com/file/d/0B2aFUSe8nJC0blViWUxub0Y3MWs/edit?usp=sharing).
>
> The idea behind our POC project is the following:
>
> We have a bundle with a Declarative Services Component that provides the
> "ButtonProvider" service. This service allows consumers of this service
> to request a Bundle.
>
> We created an application with the "JavaFX/OSGi/OSGi Application
> Project" wizard. In this bundle, we have the MainApplication, a
> bundleactivator and a DS-Component ( called the ButtonBinderImpl ). The
> ButtonBinderImpl binds ButtonProviders and waits for the
> ApplicationService ( provided by the MainApplication ) to be
> registered. It will then add all the buttons from the ButtonProviders
> to the ApplicationService.
>
> Any help will be greatly appreciated.
>
> Filip
>
> PS: The target platform that we use, is a combination of the Target
> platform from the (​
> http://download.eclipse.org/efxclipse/runtime-nightly/site) combined
> with the two bunldes that can be found in our Runtime project.
Re: How to build Test Project [message #1124436 is a reply to message #1124349] Thu, 03 October 2013 10:34 Go to previous messageGo to next message
Filip Deleersnijder is currently offline Filip Deleersnijder
Messages: 9
Registered: October 2013
Junior Member
Hi,

I pushed the workspace to git github.com/FilipDeleersnijder/JavaFX-and-OSGi-Proof-Of-Concept.

I tried modifying the Pom.XML from the relang project according to this post (http://www.eclipse.org/forums/index.php/mv/msg/532712/1122008/#msg_1122008) and ran the file with Maven. The following error output occurred :

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: TestApplication:TestApplication.app:1.0.0-SNAPSHOT @ /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
[INFO] Adding repository http://download.eclipse.org/efxclipse/runtime-nightly/site
[INFO] Adding repository http://download.eclipse.org/efxclipse/runtime-nightly/site
[INFO] Adding repository downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
[INFO] Adding repository downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
[INFO] Resolving dependencies of MavenProject: TestApplication:TestApplication.app:1.0.0-SNAPSHOT @ /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
[INFO] Cannot complete the request.  Generating details.
[INFO] Cannot complete the request.  Generating details.
[INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: TestApplication.app 1.0.0.qualifier
[ERROR]   Missing requirement: TestApplication.app 1.0.0.qualifier requires 'package testapplication.buttonprovider 0.0.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 TestApplication.app 1.0.0.qualifier to package testapplication.buttonprovider 0.0.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 problem is unsatisfiable.": ["Unable to satisfy dependency from TestApplication.app 1.0.0.qualifier to package testapplication.buttonprovider 0.0.0.", "No solution found because the problem is unsatisfiable."]
	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: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: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: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from TestApplication.app 1.0.0.qualifier to package testapplication.buttonprovider 0.0.0.", "No solution found because the problem is unsatisfiable."]
	at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java: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:126)
	at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
	at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	... 11 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] cwiki.apache.org/confluence/display/MAVEN/InternalErrorException



Re: How to build Test Project [message #1124442 is a reply to message #1124436] Thu, 03 October 2013 10:39 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5259
Registered: July 2009
Senior Member
Ok - I'll take a look later on ;-)

Tom

On 03.10.13 16:34, Filip Deleersnijder wrote:
> Hi,
>
> I pushed the workspace to git
> github.com/FilipDeleersnijder/JavaFX-and-OSGi-Proof-Of-Concept.
> I tried modifying the Pom.XML from the relang project according to this
> post
> (http://www.eclipse.org/forums/index.php/mv/msg/532712/1122008/#msg_1122008)
> and ran the file with Maven. The following error output occurred :
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: slf4j.org/codes.html#StaticLoggerBinder for further details.
> [INFO] Scanning for projects...
> [INFO] Computing target platform for MavenProject:
> TestApplication:TestApplication.app:1.0.0-SNAPSHOT @
> /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
>
> [INFO] Adding repository
> http://download.eclipse.org/efxclipse/runtime-nightly/site
> [INFO] Adding repository
> http://download.eclipse.org/efxclipse/runtime-nightly/site
> [INFO] Adding repository
> downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
>
> [INFO] Adding repository
> downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
>
> [INFO] Resolving dependencies of MavenProject:
> TestApplication:TestApplication.app:1.0.0-SNAPSHOT @
> /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
>
> [INFO] Cannot complete the request. Generating details.
> [INFO] Cannot complete the request. Generating details.
> [INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv,
> org.eclipse.update.install.features=true}
> [ERROR] Cannot resolve project dependencies:
> [ERROR] Software being installed: TestApplication.app 1.0.0.qualifier
> [ERROR] Missing requirement: TestApplication.app 1.0.0.qualifier
> requires 'package testapplication.buttonprovider 0.0.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 TestApplication.app 1.0.0.qualifier to package
> testapplication.buttonprovider 0.0.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 problem is
> unsatisfiable.": ["Unable to satisfy dependency from TestApplication.app
> 1.0.0.qualifier to package testapplication.buttonprovider 0.0.0.", "No
> solution found because the problem is unsatisfiable."]
> 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: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: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: java.lang.RuntimeException: "No solution found because the
> problem is unsatisfiable.": ["Unable to satisfy dependency from
> TestApplication.app 1.0.0.qualifier to package
> testapplication.buttonprovider 0.0.0.", "No solution found because the
> problem is unsatisfiable."]
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java: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:126)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
>
> at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>
> at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> ... 11 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]
> cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
>
>
>
Re: How to build Test Project [message #1125379 is a reply to message #1124442] Fri, 04 October 2013 08:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5259
Registered: July 2009
Senior Member
Ok - I found the problem - I'll try to push my changes and create a pull
request to you.

Tom

On 03.10.13 16:39, Tom Schindl wrote:
> Ok - I'll take a look later on ;-)
>
> Tom
>
> On 03.10.13 16:34, Filip Deleersnijder wrote:
>> Hi,
>>
>> I pushed the workspace to git
>> github.com/FilipDeleersnijder/JavaFX-and-OSGi-Proof-Of-Concept.
>> I tried modifying the Pom.XML from the relang project according to this
>> post
>> (http://www.eclipse.org/forums/index.php/mv/msg/532712/1122008/#msg_1122008)
>> and ran the file with Maven. The following error output occurred :
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: slf4j.org/codes.html#StaticLoggerBinder for further details.
>> [INFO] Scanning for projects...
>> [INFO] Computing target platform for MavenProject:
>> TestApplication:TestApplication.app:1.0.0-SNAPSHOT @
>> /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
>>
>> [INFO] Adding repository
>> http://download.eclipse.org/efxclipse/runtime-nightly/site
>> [INFO] Adding repository
>> http://download.eclipse.org/efxclipse/runtime-nightly/site
>> [INFO] Adding repository
>> downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
>>
>> [INFO] Adding repository
>> downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
>>
>> [INFO] Resolving dependencies of MavenProject:
>> TestApplication:TestApplication.app:1.0.0-SNAPSHOT @
>> /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
>>
>> [INFO] Cannot complete the request. Generating details.
>> [INFO] Cannot complete the request. Generating details.
>> [INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv,
>> org.eclipse.update.install.features=true}
>> [ERROR] Cannot resolve project dependencies:
>> [ERROR] Software being installed: TestApplication.app 1.0.0.qualifier
>> [ERROR] Missing requirement: TestApplication.app 1.0.0.qualifier
>> requires 'package testapplication.buttonprovider 0.0.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 TestApplication.app 1.0.0.qualifier to package
>> testapplication.buttonprovider 0.0.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 problem is
>> unsatisfiable.": ["Unable to satisfy dependency from TestApplication.app
>> 1.0.0.qualifier to package testapplication.buttonprovider 0.0.0.", "No
>> solution found because the problem is unsatisfiable."]
>> 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: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: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: java.lang.RuntimeException: "No solution found because the
>> problem is unsatisfiable.": ["Unable to satisfy dependency from
>> TestApplication.app 1.0.0.qualifier to package
>> testapplication.buttonprovider 0.0.0.", "No solution found because the
>> problem is unsatisfiable."]
>> at
>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java: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:126)
>>
>> at
>> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
>>
>> at
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
>>
>> at
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
>>
>> at
>> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>>
>> at
>> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> ... 11 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]
>> cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
>>
>>
>>
>
Re: How to build Test Project [message #1125792 is a reply to message #1125379] Fri, 04 October 2013 18:16 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5259
Registered: July 2009
Senior Member
Hi,

So the problems have been:
a) you added a new bundle but did not:
- add it to the build [1,2]
- add it to the feature [3]

b) a "bug" was in the generated feature.xml so that the final packaging
into an using the build.xml failed [4]

I've pushed all changes to my github-repo and created a pull request for
you [5]. If you accept the pull and then do a

a) execute mvn with the goals "clean package"
b) run the build.xml

You should get a completely package application (on OS-X it is a DMG,
for windows you need to install some extra software to get a setup.exe/msi)

Tom

[1]https://github.com/tomsontom/JavaFX-and-OSGi-Proof-Of-Concept/commit/fc472c63dd82b8eca8d9430e94f6b55d88df96a4
[2]https://github.com/tomsontom/JavaFX-and-OSGi-Proof-Of-Concept/commit/54da2fa47b18f350a9b557281f7d4776bf372a40
[3]https://github.com/tomsontom/JavaFX-and-OSGi-Proof-Of-Concept/commit/f0ae75f085a08b8d860c1f2d7e0b97e0465fa582
[4]https://bugs.eclipse.org/bugs/show_bug.cgi?id=418709
[5]https://github.com/FilipDeleersnijder/JavaFX-and-OSGi-Proof-Of-Concept/pull/1

On 04.10.13 14:53, Tom Schindl wrote:
> Ok - I found the problem - I'll try to push my changes and create a pull
> request to you.
>
> Tom
>
> On 03.10.13 16:39, Tom Schindl wrote:
>> Ok - I'll take a look later on ;-)
>>
>> Tom
>>
>> On 03.10.13 16:34, Filip Deleersnijder wrote:
>>> Hi,
>>>
>>> I pushed the workspace to git
>>> github.com/FilipDeleersnijder/JavaFX-and-OSGi-Proof-Of-Concept.
>>> I tried modifying the Pom.XML from the relang project according to this
>>> post
>>> (http://www.eclipse.org/forums/index.php/mv/msg/532712/1122008/#msg_1122008)
>>> and ran the file with Maven. The following error output occurred :
>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>> SLF4J: slf4j.org/codes.html#StaticLoggerBinder for further details.
>>> [INFO] Scanning for projects...
>>> [INFO] Computing target platform for MavenProject:
>>> TestApplication:TestApplication.app:1.0.0-SNAPSHOT @
>>> /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
>>>
>>> [INFO] Adding repository
>>> http://download.eclipse.org/efxclipse/runtime-nightly/site
>>> [INFO] Adding repository
>>> http://download.eclipse.org/efxclipse/runtime-nightly/site
>>> [INFO] Adding repository
>>> downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
>>>
>>> [INFO] Adding repository
>>> downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site
>>>
>>> [INFO] Resolving dependencies of MavenProject:
>>> TestApplication:TestApplication.app:1.0.0-SNAPSHOT @
>>> /Users/filip/Desktop/Workspaces/JunoWorkspace/Git/JavaFX-and-OSGi-Proof-Of-Concept/JavaFX-and-OSGi-Proof-Of-Concept/TestApplication.app/pom.xml
>>>
>>> [INFO] Cannot complete the request. Generating details.
>>> [INFO] Cannot complete the request. Generating details.
>>> [INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv,
>>> org.eclipse.update.install.features=true}
>>> [ERROR] Cannot resolve project dependencies:
>>> [ERROR] Software being installed: TestApplication.app 1.0.0.qualifier
>>> [ERROR] Missing requirement: TestApplication.app 1.0.0.qualifier
>>> requires 'package testapplication.buttonprovider 0.0.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 TestApplication.app 1.0.0.qualifier to package
>>> testapplication.buttonprovider 0.0.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 problem is
>>> unsatisfiable.": ["Unable to satisfy dependency from TestApplication.app
>>> 1.0.0.qualifier to package testapplication.buttonprovider 0.0.0.", "No
>>> solution found because the problem is unsatisfiable."]
>>> 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: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: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: java.lang.RuntimeException: "No solution found because the
>>> problem is unsatisfiable.": ["Unable to satisfy dependency from
>>> TestApplication.app 1.0.0.qualifier to package
>>> testapplication.buttonprovider 0.0.0.", "No solution found because the
>>> problem is unsatisfiable."]
>>> at
>>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java: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:126)
>>>
>>> at
>>> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
>>>
>>> at
>>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
>>>
>>> at
>>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
>>>
>>> at
>>> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>>>
>>> at
>>> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
>>>
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>> ... 11 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]
>>> cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
>>>
>>>
>>>
>>
>
Re: How to build Test Project [message #1129026 is a reply to message #1125792] Tue, 08 October 2013 04:04 Go to previous messageGo to next message
Filip Deleersnijder is currently offline Filip Deleersnijder
Messages: 9
Registered: October 2013
Junior Member
Hi Tom,

Thanks for the help, it worked like a charm !
Could you provide us with some links about the which software we need to install for generating an .exe ?
Thanks in advance
Re: How to build Test Project [message #1129031 is a reply to message #1129026] Tue, 08 October 2013 04:07 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5259
Registered: July 2009
Senior Member
http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm

Tom

On 08.10.13 10:04, Filip Deleersnijder wrote:
> Hi Tom,
>
> Thanks for the help, it worked like a charm !
> Could you provide us with some links about the which software we need to
> install for generating an .exe ? Thanks in advance
Previous Topic:E4 part with JavaFX
Next Topic:ESelectionService
Goto Forum:
  


Current Time: Thu Jul 31 23:49:16 EDT 2014

Powered by FUDForum. Page generated in 0.01881 seconds