Tycho Building error: Missing Constraint: Require-Bundle: org.eclipse.rap.ui;

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Tycho Building error: Missing Constraint: Require-Bundle: org.eclipse.rap.ui;

tychotychonofuba
Hi everybody.
Sorry to disturb you, but i am stuck on a problem with tycho...
I made a search with words "rap" and "org.eclipse.rap.ui" or "missing constraints" but didn't find anything.
 
I am currently trying to build a RAP demo project with Jenkins, Maven/Tycho and SVN before trying it on real project...

But I always got this error message:
[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.vincentico.calc.calculette cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"

In order to do that, I got three projects :
  * org.vicentico.calc.calculette <= the rap calculette
  * org.vincentico.calc.feature <= a feature using the "calculette" plugin above
  * org.vincentico.calc.releng <= a parent project with the parent pom.

I'am using JenkinsCi (similar for now to Hudson) to run the build.
I had set a "free style project" with those settings :
  1) execute a script shell
  mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms -DgroupId=org.vincentico.calc
in order to construct the pom(s).

   2)  invoke maven top target (~)
   clean install

(I set a subversion link too, but that part function without any problems). 

When I start the build I obtain this error :
 Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2" (see below for complete error)

Despite My parent pom contains more repositories than it could want :
<repository>
   <id>helios</id>
   <layout>p2</layout>
   <url>http://download.eclipse.org/releases/helios/</url>
</repository>
               
<repository>
   <id>equinox</id>
   <url> http://download.eclipse.org/eclipse/updates/3.4milestones/</url>
   <layout>p2</layout>
</repository>
               
<repository>
   <id>rap</id>
   <layout>p2</layout>
   <url>http://download.eclipse.org/rt/rap/1.3/runtime</url>
</repository>
(see below for complete pom).
 
I don't understand why this problem happend and why there is no possible resolution with those p2(s).
Cou'ld anywhone give me links, tracks, explainations, anything, ideas, ... to be back in movement ??

"help please" :)
---------------------------------------------------------------------
::: the output ::::
Started by user anonymous
Updating svn://192.168.1.112/repos
At revision 38
no change for svn://192.168.1.112/repos since the previous build
[workspace] $ /bin/sh -xe /tmp/hudson766499541853289131.sh
+ mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms -DgroupId=org.vincentico.calc
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Resolving target platform for project MavenProject: org.vincentico.calc:org.vincentico.calc.calculette:1.0.0.RAP110M2 @ /home/vincentico/.jenkins/jobs/calculetteFreeStyle/workspace/org.vincentico.calc.calculette/pom.xml
[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.vincentico.calc.calculette cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.vincentico.calc.calculette cannot be resolved
Resolution errors:
   Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"

        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:616)
        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 org.vincentico.calc.calculette cannot be resolved
Resolution errors:
   Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"

        at org.codehaus.tycho.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:198)
        at org.codehaus.tycho.osgitools.OsgiBundleProject.resolve(OsgiBundleProject.java:142)
        at org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:80)
        at org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        ... 11 more
Caused by: org.osgi.framework.BundleException: Bundle org.vincentico.calc.calculette cannot be resolved
Resolution errors:
   Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"

        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:194)
        ... 16 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
Finished: FAILURE

::: the complete parent pom ::::
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
       
        <prerequisites>
    <maven>3.0</maven>
    </prerequisites>

        <groupId>org.vincentico.calc</groupId>
        <artifactId>org.vicentico.calc_parent</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <packaging>pom</packaging>
       
        <name>Calc Parent POM</name>
       
        <properties>
            <helios-site>http://download.eclipse.org/releases/helios/</helios-site>
                <project-build-sourceEncoding>UTF-8</project-build-sourceEncoding>
                <tycho-version>0.10.0</tycho-version>
        </properties>
       
        <modules>
                <module>../org.vincentico.calc.feature</module>
                <module>../org.vincentico.calc.calculette</module>
        </modules>
       
        <repositories>
                <repository>
                        <id>helios</id>
                        <layout>p2</layout>
                        <url>http://download.eclipse.org/releases/helios/</url>
                </repository>
               
                <repository>
                        <id>equinox</id>
                        <url> http://download.eclipse.org/eclipse/updates/3.4milestones/</url>
                        <layout>p2</layout>
                </repository>
               
                <repository>
                        <id>rap</id>
                        <layout>p2</layout>
                        <url>http://download.eclipse.org/rt/rap/1.3/runtime</url>
                </repository>
        </repositories>

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.tycho</groupId>
                                <artifactId>tycho-maven-plugin</artifactId>
                                <version>${tycho-version}</version>
                                <extensions>true</extensions>
                        </plugin>
                       
                        <plugin>
                                <groupId>org.sonatype.tycho</groupId>
                                <artifactId>maven-osgi-compiler-plugin</artifactId>
                                <version>${tycho-version}</version>
                                <configuration>
          <encoding>${project-build-sourceEncoding}</encoding>
        </configuration>               
                        </plugin>
                       
                        <plugin>
                                <groupId>org.sonatype.tycho</groupId>
                                <artifactId>target-platform-configuration</artifactId>
                                <version>${tycho-version}</version>
                                <configuration>
                                        <resolver>p2</resolver>
                                        <ignoreTychoRepositories>true</ignoreTychoRepositories>
                                </configuration>
                        </plugin>                 
      </plugins>
    </build>
</project> 
Reply | Threaded
Open this post in threaded view
|

Re: Tycho Building error: Missing Constraint: Require-Bundle: org.eclipse.rap.ui;

Brian de Alwis
You might want to see how Holger Staudacher (one of the RAP guys) set up an example RAP project to build with Tycho:

        http://eclipsesource.com/blogs/2011/02/07/how-to-build-a-server-side-equinoxrap-application/

Brian.

On 16-Mar-2011, at 12:42 PM, tychotychonofuba wrote:

> Hi everybody.
> Sorry to disturb you, but i am stuck on a problem with tycho...
> I made a search with words "rap" and "org.eclipse.rap.ui" or "missing
> constraints" but didn't find anything.
>
> I am currently trying to build a RAP demo project with Jenkins, Maven/Tycho
> and SVN before trying it on real project...
>
> But I always got this error message:
> [ERROR] Internal error: java.lang.RuntimeException:
> org.osgi.framework.BundleException: Bundle org.vincentico.calc.calculette
> cannot be resolved
> [ERROR] Resolution errors:
> [ERROR] Bundle org.vincentico.calc.calculette - Missing Constraint:
> Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"
>
> In order to do that, I got three projects :
>  * org.vicentico.calc.calculette <= the rap calculette
>  * org.vincentico.calc.feature <= a feature using the "calculette" plugin
> above
>  * org.vincentico.calc.releng <= a parent project with the parent pom.
>
> I'am using JenkinsCi (similar for now to Hudson) to run the build.
> I had set a "free style project" with those settings :
>  1) execute a script shell
>  mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms
> -DgroupId=org.vincentico.calc
> in order to construct the pom(s).
>
>   2)  invoke maven top target (~)
>   clean install
>
> (I set a subversion link too, but that part function without any problems).
>
> When I start the build I obtain this error :
> Bundle org.vincentico.calc.calculette - Missing Constraint: Require-Bundle:
> org.eclipse.rap.ui; bundle-version="1.3.2" (see below for complete error)
>
> Despite My parent pom contains more repositories than it could want :
>
>   helios
>   p2
>   http://download.eclipse.org/releases/helios/
>
>
>
>   equinox
>    http://download.eclipse.org/eclipse/updates/3.4milestones/
>   p2
>
>
>
>   rap
>   p2
>   http://download.eclipse.org/rt/rap/1.3/runtime
>
> (see below for complete pom).
>
> I don't understand why this problem happend and why there is no possible
> resolution with those p2(s).
> Cou'ld anywhone give me links, tracks, explainations, anything, ideas, ...
> to be back in movement ??
>
> "help please" :)
> ---------------------------------------------------------------------
> ::: the output ::::
> Started by user anonymous
> Updating svn://192.168.1.112/repos
> At revision 38
> no change for svn://192.168.1.112/repos since the previous build
> [workspace] $ /bin/sh -xe /tmp/hudson766499541853289131.sh
> + mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms
> -DgroupId=org.vincentico.calc
> [INFO] Scanning for projects...
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [INFO] Resolving target platform for project MavenProject:
> org.vincentico.calc:org.vincentico.calc.calculette:1.0.0.RAP110M2 @
> /home/vincentico/.jenkins/jobs/calculetteFreeStyle/workspace/org.vincentico.calc.calculette/pom.xml
> [ERROR] Internal error: java.lang.RuntimeException:
> org.osgi.framework.BundleException: Bundle org.vincentico.calc.calculette
> cannot be resolved
> [ERROR] Resolution errors:
> [ERROR] Bundle org.vincentico.calc.calculette - Missing Constraint:
> Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"
> [ERROR] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle
> org.vincentico.calc.calculette cannot be resolved
> Resolution errors:
>   Bundle org.vincentico.calc.calculette - Missing Constraint:
> Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"
>
> 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:616)
> 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 org.vincentico.calc.calculette cannot be resolved
> Resolution errors:
>   Bundle org.vincentico.calc.calculette - Missing Constraint:
> Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"
>
> at
> org.codehaus.tycho.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:198)
> at
> org.codehaus.tycho.osgitools.OsgiBundleProject.resolve(OsgiBundleProject.java:142)
> at
> org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:80)
> at
> org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> ... 11 more
> Caused by: org.osgi.framework.BundleException: Bundle
> org.vincentico.calc.calculette cannot be resolved
> Resolution errors:
>   Bundle org.vincentico.calc.calculette - Missing Constraint:
> Require-Bundle: org.eclipse.rap.ui; bundle-version="1.3.2"
>
> 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:194)
> ... 16 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
> Finished: FAILURE
>
> ::: the complete parent pom ::::
>
> 4.0.0
>
>
>   3.0
>
>
> org.vincentico.calc
> org.vicentico.calc_parent
> 0.1.0-SNAPSHOT
> pom
>
> Calc Parent POM
>
>
>    http://download.eclipse.org/releases/helios/
> UTF-8
> 0.10.0
>
>
>
> ../org.vincentico.calc.feature
> ../org.vincentico.calc.calculette
>
>
>
>
> helios
> p2
> http://download.eclipse.org/releases/helios/
>
>
>
> equinox
> http://download.eclipse.org/eclipse/updates/3.4milestones/
> p2
>
>
>
> rap
> p2
> http://download.eclipse.org/rt/rap/1.3/runtime
>
>
>
>
>
>
> org.sonatype.tycho
> tycho-maven-plugin
> ${tycho-version}
> true
>
>
>
> org.sonatype.tycho
> maven-osgi-compiler-plugin
> ${tycho-version}
>
>         ${project-build-sourceEncoding}
>        
>
>
>
> org.sonatype.tycho
> target-platform-configuration
> ${tycho-version}
>
> p2
> true
>
>                  
>
>
>
>
>
> --
> View this message in context: http://software.2206966.n2.nabble.com/Tycho-Building-error-Missing-Constraint-Require-Bundle-org-eclipse-rap-ui-tp6177912p6177912.html
> Sent from the Tycho Users mailing list archive at Nabble.com.