Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Tycho » Eclipse Default Bundles/Plugin(Eclipse Default Bundles/Plugin)
Eclipse Default Bundles/Plugin [message #717934] Mon, 22 August 2011 14:42 Go to next message
Raj  is currently offline Raj
Messages: 74
Registered: August 2011
Member
In the RAP we get the required bundles from

http://download.eclipse.org/rt/rap/1.4/tooling
http://download.eclipse.org/rt/rap/1.4/runtime

or from the eclipse installabe directory.

When i building my war file, my war file is able to acees the bundles from
http://download.eclipse.org/rt/rap/1.4/tooling
http://download.eclipse.org/rt/rap/1.4/runtime
I have put all the jar files into the folder and named as target platform.

but it does not get the bunde from eclipse installation directory.

I am passing the run time platform at the compile time like
Dtycho.targetPlatform=C:/dev/RAP/target_platform/eclipse

When i run the
call %M2_HOME%\bin\mvn -e -X -Ptycho -Dmaven.test.skip=true -Dsapphire.version=%VER% -Dadditional.goal=%ADD% -Dtycho.targetPlatform=C:/dev/RAP/target_platform/eclipse clean install -l build.log


If you notice com.ibm.icu and org.eclipse.jface.text are present in the <eclipse installabe directory>\eclipse-3.6.1-rcp\plugins

Any pointers are highly appreciate.

I am getting the error
cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: com.ibm.icu; bundle-version="0.0.0"
[ERROR] Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: org.eclipse.jface.text; bundle-version="0.
0.0"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException:
Bundle com.jpmorgan.sapphire.ui cannot be resolved
Resolution errors:
Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: com.ibm.icu; bundle-version="0.0.0"
Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: org.eclipse.jface.text; bundle-version="0.0.0"

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:163)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
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: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle com.jpmorgan.sapphire.ui cannot be res
olved
Resolution errors:
Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: com.ibm.icu; bundle-version="0.0.0"
Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: org.eclipse.jface.text; bundle-version="0.0.0"

at org.codehaus.tycho.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:226)
at org.codehaus.tycho.osgitools.OsgiBundleProject.resolve(OsgiBundleProject.java:159)
at org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java
:99)
at org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java
:94)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:268)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
... 11 more
Caused by: org.osgi.framework.BundleException: Bundle com.jpmorgan.sapphire.ui cannot be resolved
Resolution errors:
Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: com.ibm.icu; bundle-version="0.0.0"
Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: org.eclipse.jface.text; bundle-version="0.0.0"

at org.codehaus.tycho.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:260)
at org.codehaus.tycho.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:58)
at org.codehaus.tycho.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:222)
... 16 more
[ERROR]
[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
Re: Eclipse Default Bundles/Plugin [message #717935 is a reply to message #717934] Mon, 22 August 2011 14:43 Go to previous messageGo to next message
Raj  is currently offline Raj
Messages: 74
Registered: August 2011
Member
I am doing this all at the build time using maven.
Re: Eclipse Default Bundles/Plugin [message #717975 is a reply to message #717935] Mon, 22 August 2011 17:46 Go to previous message
Raj  is currently offline Raj
Messages: 74
Registered: August 2011
Member
Let me rephrase my question:

I downloaded RAP TargetPlatform http://www.eclipse.org/rap/downloads/ and unzipped in
C:/dev/RAP/target_platform/eclipse

Now i am compiling my rap application with the tycho and using

-Dtycho.targetPlatform=C:/dev/RAP/target_platform/eclipse.

But i notice all the dependencies for the jar files inside the C:/dev/RAP/target_platform/eclipse are fixed but all the dependencies for
inside the <eclipse-installable>/plugins are not fixed. I get the below error

[ERROR] Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: com.ibm.icu; bundle-version="0.0.0"
[ERROR] Bundle com.jpmorgan.sapphire.ui - Missing Constraint: Require-Bundle: org.eclipse.jface.text; bundle-version="0.

Any pointers???

Previous Topic:Bundles stored in local repository?
Next Topic:Missing root directory in created zip-file
Goto Forum:
  


Current Time: Tue Jul 29 00:41:54 EDT 2014

Powered by FUDForum. Page generated in 0.02068 seconds