You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Sahoo <Sa...@Sun.COM> on 2010/03/25 07:18:49 UTC

trunk still does not build

     [exec] [INFO] 
------------------------------------------------------------------------
     [exec] [INFO] Building Apache Felix UPnP Extra
     [exec] [INFO]    task-segment: [clean, install]
     [exec] [INFO] 
------------------------------------------------------------------------
     [exec] [INFO] [clean:clean {execution: default-clean}]
     [exec] [INFO] Deleting directory 
/space/ss141213/WS/felix/trunk/upnp/extra/target
     [exec] [INFO] [resources:resources {execution: default-resources}]
     [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
     [exec] [INFO] skip non existing resourceDirectory 
/space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
     [exec] [INFO] Copying 2 resources to META-INF
     [exec] [INFO] [compiler:compile {execution: default-compile}]
     [exec] [INFO] Compiling 3 source files to 
/space/ss141213/WS/felix/trunk/upnp/extra/target/classes
     [exec] [INFO] [resources:testResources {execution: 
default-testResources}]
     [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
     [exec] [INFO] skip non existing resourceDirectory 
/space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
     [exec] [INFO] [compiler:testCompile {execution: default-testCompile}]
     [exec] [INFO] No sources to compile
     [exec] [INFO] [surefire:test {execution: default-test}]
     [exec] [INFO] No tests to run.
     [exec] [INFO] [bundle:bundle {execution: default-bundle}]
     [exec] [WARNING] Warning building bundle 
org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT : 
Instructions in Private-Package, or -testpackages that are never used: 
org\.apache\.xerces\.impl\.dv\.util
     [exec] [INFO] [install:install {execution: default-install}]
     [exec] [INFO] Installing 
/space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar 
to 
/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
     [exec] [INFO] [bundle:install {execution: default-install}]
     [exec] [FATAL ERROR] 
org.apache.felix.obrplugin.ObrInstall#execute() caused a linkage error 
(java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
     [exec] [FATAL ERROR] Plugin realm = 
app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
     [exec] urls[0] = 
file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
     [exec] urls[1] = 
file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
     [exec] urls[2] = 
file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
     [exec] urls[3] = 
file:/home/ss141213/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
     [exec] urls[4] = 
file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
     [exec] urls[5] = 
file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
     [exec] urls[6] = 
file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
     [exec] urls[7] = 
file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
     [exec] urls[8] = 
file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
     [exec] urls[9] = 
file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
     [exec] urls[10] = 
file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
     [exec] urls[11] = 
file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
     [exec] urls[12] = 
file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
     [exec] [FATAL ERROR] Container realm = plexus.core
     [exec] urls[0] = 
file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
     [exec] [INFO] 
------------------------------------------------------------------------
     [exec] [ERROR] FATAL ERROR
     [exec] [INFO] 
------------------------------------------------------------------------
     [exec] [INFO] org/apache/felix/bundlerepository/Requirement
     [exec] org.apache.felix.bundlerepository.Requirement
     [exec] [INFO] 
------------------------------------------------------------------------
     [exec] [INFO] Trace
     [exec] java.lang.NoClassDefFoundError: 
org/apache/felix/bundlerepository/Requirement
     [exec]     at 
org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
     [exec]     at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
     [exec]     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
     [exec]     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
     [exec]     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
     [exec]     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
     [exec]     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
     [exec]     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
     [exec]     at 
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
     [exec]     at 
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
     [exec]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
     [exec]     at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
     [exec]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [exec]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
     [exec]     at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
     [exec]     at 
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
     [exec]     at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
     [exec]     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
     [exec] Caused by: java.lang.ClassNotFoundException: 
org.apache.felix.bundlerepository.Requirement
     [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [exec]     at java.security.AccessController.doPrivileged(Native 
Method)
     [exec]     at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [exec]     at 
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
     [exec]     at 
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
     [exec]     at 
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
     [exec]     at 
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [exec]     at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [exec]     ... 20 more
     [exec] [INFO] 
------------------------------------------------------------------------
     [exec] [INFO] Total time: 4 minutes 13 seconds
     [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
     [exec] [INFO] Final Memory: 94M/141M
     [exec] [INFO] 
------------------------------------------------------------------------

BUILD FAILED
/space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1

I am at svn rev#927284. One may ask why I am building everything in 
trunk, well I typically build everything at the top level, because I 
hate to build each module separately when I have to build four or five 
modules. In any case, there is no justification for build failures.

Thanks,
Sahoo

Re: trunk still does not build

Posted by Justin Edelson <ju...@gmail.com>.
On 3/26/10 12:23 PM, Marcel Offermans wrote:
> On Mar 26, 2010, at 8:19 , Guillaume Nodet wrote:
>> On Fri, Mar 26, 2010 at 15:58, Sahoo <Sa...@sun.com> wrote:
>>> Pierre De Rop wrote:
>>>> However, the -Dmaven.test.skip=true option still has to be used because
>>>> there is one pending issue in the DependencyManager junit tests, which has
>>>> to be fixed. This is a known issue, and it's referenced here:
>>>> http://issues.apache.org/jira/browse/FELIX-2078.
>>>
>>>
>>> Why don't we exclude the test until it is fixed? That will keep CI server
>>> to function as well.
>>>
>>
> 
>> That's a good idea ;-)
> 
> Whilst I don't mind too much doing that, I'm wondering why our build cannot support subprojects that have failing tests? I mean as long as I'm not releasing anything, a project that is in flux might have a few test cases that are broken, right? That should not affect our whole build in a way that it makes life hard on everybody else.
> 
> Is it really not possible to have a solution where having tests that fail is not a problem?
Pass -fae to the maven command. This tells Maven that if a module fails
in the reactor it should continue with the next buildable module
(meaning one that doesn't have a dependency upon the failed module).
(fae = fail at end).

However, this isn't going to resolve a cyclical dependency; nothing
will. That just needs to be resolved.

HTH,
Justin

> 
> If not, then just disable that test for now.
> 
> Greetings, Marcel
> 


Re: trunk still does not build

Posted by Marcel Offermans <ma...@luminis.nl>.
Hello Clement,

On Mar 26, 2010, at 9:29 , Clement Escoffier wrote:

> On 26.03.2010, at 17:23, Marcel Offermans wrote:
> 
>> On Mar 26, 2010, at 8:19 , Guillaume Nodet wrote:
>>> On Fri, Mar 26, 2010 at 15:58, Sahoo <Sa...@sun.com> wrote:
>>>> Pierre De Rop wrote:
>>>>> However, the -Dmaven.test.skip=true option still has to be used because
>>>>> there is one pending issue in the DependencyManager junit tests, which has
>>>>> to be fixed. This is a known issue, and it's referenced here:
>>>>> http://issues.apache.org/jira/browse/FELIX-2078.
>>>> 
>>>> 
>>>> Why don't we exclude the test until it is fixed? That will keep CI server
>>>> to function as well.
>>>> 
>>> 
>> 
>>> That's a good idea ;-)
>> 
>> Whilst I don't mind too much doing that, I'm wondering why our build cannot support subprojects that have failing tests? I mean as long as I'm not releasing anything, a project that is in flux might have a few test cases that are broken, right? That should not affect our whole build in a way that it makes life hard on everybody else.
>> 
>> Is it really not possible to have a solution where having tests that fail is not a problem?
>> 
>> If not, then just disable that test for now.
> 
> There is several things that are possible:
> - setting 'testFailureIgnore=true' ignore test failures (not sure about errors). 

I'm no expert on what this option does, but it sounds like a solution.

> - executing the tests only when a 'test' profile is enabled. That was my choice for iPOJO because of the number of tests.

That's certainly an option, so the normal build someone does simply builds the artifacts without any tests whatsoever, and on the CI servers we run this test profile that enables all of them (probably combined with that option you mention so the build does continue even if it encounters test failures).

Does this make sense (to the more Maven experienced amongst us)?

Greetings, Marcel


Re: trunk still does not build

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,


On 26.03.2010, at 17:23, Marcel Offermans wrote:

> On Mar 26, 2010, at 8:19 , Guillaume Nodet wrote:
>> On Fri, Mar 26, 2010 at 15:58, Sahoo <Sa...@sun.com> wrote:
>>> Pierre De Rop wrote:
>>>> However, the -Dmaven.test.skip=true option still has to be used because
>>>> there is one pending issue in the DependencyManager junit tests, which has
>>>> to be fixed. This is a known issue, and it's referenced here:
>>>> http://issues.apache.org/jira/browse/FELIX-2078.
>>> 
>>> 
>>> Why don't we exclude the test until it is fixed? That will keep CI server
>>> to function as well.
>>> 
>> 
> 
>> That's a good idea ;-)
> 
> Whilst I don't mind too much doing that, I'm wondering why our build cannot support subprojects that have failing tests? I mean as long as I'm not releasing anything, a project that is in flux might have a few test cases that are broken, right? That should not affect our whole build in a way that it makes life hard on everybody else.
> 
> Is it really not possible to have a solution where having tests that fail is not a problem?
> 
> If not, then just disable that test for now.

There is several things that are possible:
- setting 'testFailureIgnore=true' ignore test failures (not sure about errors). 
- executing the tests only when a 'test' profile is enabled. That was my choice for iPOJO because of the number of tests.

Regards,

Clement



> 
> Greetings, Marcel
> 


Re: trunk still does not build

Posted by Marcel Offermans <ma...@luminis.nl>.
On Mar 26, 2010, at 8:19 , Guillaume Nodet wrote:
> On Fri, Mar 26, 2010 at 15:58, Sahoo <Sa...@sun.com> wrote:
>> Pierre De Rop wrote:
>>> However, the -Dmaven.test.skip=true option still has to be used because
>>> there is one pending issue in the DependencyManager junit tests, which has
>>> to be fixed. This is a known issue, and it's referenced here:
>>> http://issues.apache.org/jira/browse/FELIX-2078.
>> 
>> 
>> Why don't we exclude the test until it is fixed? That will keep CI server
>> to function as well.
>> 
> 

> That's a good idea ;-)

Whilst I don't mind too much doing that, I'm wondering why our build cannot support subprojects that have failing tests? I mean as long as I'm not releasing anything, a project that is in flux might have a few test cases that are broken, right? That should not affect our whole build in a way that it makes life hard on everybody else.

Is it really not possible to have a solution where having tests that fail is not a problem?

If not, then just disable that test for now.

Greetings, Marcel


Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
On Fri, Mar 26, 2010 at 15:58, Sahoo <Sa...@sun.com> wrote:

> Pierre De Rop wrote:
>
>> Hello Guillaume,
>>
>> yes, it works (thank you !)
>>
>> I did:
>>
>> 1) mvn -Dpackaging=plugins install
>> 2) mvn -Dmaven.test.skip=true -Dpackaging=bundle install
>>
>> and everything has been built correctly.
>>
>>
> Can we update the build.xml accordingly?
>

I did along with the root pom.


>  However, the -Dmaven.test.skip=true option still has to be used because
>> there is one pending issue in the DependencyManager junit tests, which has
>> to be fixed. This is a known issue, and it's referenced here:
>> http://issues.apache.org/jira/browse/FELIX-2078.
>>
>>
> Why don't we exclude the test until it is fixed? That will keep CI server
> to function as well.
>
>
That's a good idea ;-)


> Thanks,
> Sahoo
>
>> Regards;
>> /pierre
>>
>>
>>
>>
>>
>>
>> On Fri, Mar 26, 2010 at 3:02 PM, Guillaume Nodet <gn...@gmail.com>
>> wrote:
>>
>>
>>
>>> I had a better idea which seems to work.
>>> I've added another profile to the root pom to build utils /
>>> bundlerepository
>>> in a separate reactor.
>>> This means we don't hit this cyclic dependency problem anymore.
>>> Could you update and try on your side ?
>>>
>>> On Fri, Mar 26, 2010 at 09:27, Guillaume Nodet <gn...@gmail.com> wrote:
>>>
>>>
>>>
>>>> I think the problems comes from the fact that bundlerepository and
>>>> bundleplugin have a cyclic dependency.
>>>> I'll try to remove this cyclic dep by extracting the model to utils
>>>>
>>>>
>>> (which
>>>
>>>
>>>> could be later merged with the one from trunk).
>>>>
>>>>
>>>> On Thu, Mar 25, 2010 at 23:28, Pierre De Rop <pierre.derop@gmail.com
>>>> wrote:
>>>>
>>>>
>>>>
>>>>> Guillaume,
>>>>>
>>>>> Ok, indeed, it works if I manually do the following:
>>>>>
>>>>> 1) build utils
>>>>> 2) build bundlerepository
>>>>> 3) build bundleplugin
>>>>> 4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle
>>>>> install"
>>>>>
>>>>> However, with your last commit, if I type directly "mvn
>>>>> -Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
>>>>> exception:
>>>>>
>>>>> [ERROR] FATAL ERROR
>>>>> [INFO]
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] org/apache/felix/bundlerepository/Requirement
>>>>> [INFO]
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Trace
>>>>> java.lang.NoClassDefFoundError:
>>>>> org/apache/felix/bundlerepository/Requirement
>>>>>        at
>>>>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>>>>>        at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>
>>>
>>>>       at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>
>>>
>>>>       at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>>
>>>
>>>>       at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>>
>>>
>>>>       at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>
>>>
>>>>       at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>
>>>
>>>>       at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>
>>>
>>>>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>       at
>>>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>>       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:592)
>>>>>        at
>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>       at
>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>
>>>>>
>>>>>
>>>>> One additional thing to notice is that if I type "mvn
>>>>>
>>>>>
>>>> -Dpackaging=plugins
>>>
>>>
>>>> install", I then get this error:
>>>>>
>>>>> [ERROR] BUILD FAILURE
>>>>> [INFO]
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] The projects in the reactor contain a cyclic reference: Edge
>>>>> between
>>>>> 'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}'
>>>>> and
>>>>> 'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to
>>>>>
>>>>>
>>>> cycle
>>>
>>>
>>>> in the graph org.apache.felix:maven-bundle-plugin -->
>>>>> org.apache.felix:org.apache.felix.bundlerepository -->
>>>>> org.apache.felix:maven-bundle-plugin
>>>>>
>>>>>
>>>>>
>>>>> Did I miss something ?
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> That one works for me.  Make sure you svn up.  The root pom may be
>>>>>>
>>>>>>
>>>>> missing
>>>>>
>>>>>
>>>>>> the utils subproject too and you actually need a freshly build copy of
>>>>>>
>>>>>>
>>>>> it,
>>>>>
>>>>>
>>>>>> so try building it manually first.  I'll try to add it to the build in
>>>>>>
>>>>>>
>>>>> the
>>>>>
>>>>>
>>>>>> meantime.
>>>>>>
>>>>>> On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Guillaume,
>>>>>>>
>>>>>>> The issue reported by Sahoo also takes place when just typing:
>>>>>>>
>>>>>>>   mvn -Dmaven.test.skip=true -Dpackaging=bundle install
>>>>>>>
>>>>>>> (it's quicker than when typing "ant")
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <
>>>>>>>
>>>>>>>
>>>>>> pierre.derop@gmail.com
>>>>>
>>>>>
>>>>>> wrote:
>>>>>>>>              Indeed, I get some exceptions while building the upnp
>>>>>>>> subproject:
>>>>>>>>
>>>>>>>> [INFO] Scanning for projects...
>>>>>>>> [INFO] Reactor build order:
>>>>>>>> [INFO]   Apache Felix UPnP Extra
>>>>>>>> [INFO]   Apache Felix UPnP Base Driver
>>>>>>>> [INFO]   Apache Felix UPnP Tester
>>>>>>>> [INFO]   Apache Felix UPnP Sample Binary-Light
>>>>>>>> [INFO]   Apache Felix UPnP Sample Clock
>>>>>>>> [INFO]   Apache Felix UPnP Sample TV
>>>>>>>> [INFO]   Apache Felix UPnP Examples: Build
>>>>>>>> [INFO]   Apache Felix UPnP: Root POM
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>> [INFO] Building Apache Felix UPnP Extra
>>>>>>>> [INFO]    task-segment: [install]
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>> [INFO] [resources:resources {execution: default-resources}]
>>>>>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>>> [INFO] skip non existing resourceDirectory
>>>>>>>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
>>>>>>>>
>>>>>>>> [INFO] Copying 2 resources to META-INF
>>>>>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>>>>>> [INFO] Nothing to compile - all classes are up to date
>>>>>>>>
>>>>>>>> [INFO] [resources:testResources {execution:
>>>>>>>>
>>>>>>>>
>>>>>>> default-testResources}]
>>>
>>>
>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>>> [INFO] skip non existing resourceDirectory
>>>>>>>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
>>>>>>>>
>>>>>>>> [INFO] [compiler:testCompile {execution: default-testCompile}]
>>>>>>>> [INFO] No sources to compile
>>>>>>>> [INFO] [surefire:test {execution: default-test}]
>>>>>>>> [INFO] No tests to run.
>>>>>>>> [INFO] [bundle:bundle {execution: default-bundle}]
>>>>>>>> [WARNING] Warning building bundle
>>>>>>>> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
>>>>>>>>
>>>>>>>>
>>>>>>> :
>>>
>>>
>>>> Instructions in Private-Package, or -testpackages that are never
>>>>>>>>
>>>>>>>>
>>>>>>> used:
>>>>>
>>>>>
>>>>>> org\.apache\.xerces\.impl\.dv\.util
>>>>>>>> [INFO] [install:install {execution: default-install}]
>>>>>>>> [INFO] Installing
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>>
>>>
>>>> to
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>>
>>>
>>>> [INFO] [bundle:install {execution: default-install}]
>>>>>>>> [WARNING] Exception while updating local OBR: Unable to read
>>>>>>>>
>>>>>>>>
>>>>>>> repository
>>>>>
>>>>>
>>>>>> xml: file:/home/nxuser/.m2/repository/repository.xml
>>>>>>>> org.apache.maven.plugin.MojoExecutionException: Unable to read
>>>>>>>>
>>>>>>>>
>>>>>>> repository
>>>>>>
>>>>>>
>>>>>>> xml: file:/home/nxuser/.m2/repository/repository.xml
>>>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
>>>>>>
>>>>>>
>>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>>
>>>>>
>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>
>>>
>>>>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>>
>>>>>
>>>>>>    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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>>>
>>>>>>>
>>>>>>>>    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>
>>>>>
>>>>>>    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>>> Caused by: java.lang.Exception: Error while parsing resource
>>>>>>>> org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column
>>>>>>>>
>>>>>>>>
>>>>>>> 156
>>>>>
>>>>>
>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
>>>
>>>
>>>>    ... 20 more
>>>>>>>> Caused by: java.lang.IllegalArgumentException
>>>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
>>>
>>>
>>>>    ... 25 more
>>>>>>>> Caused by: org.osgi.framework.InvalidSyntaxException: Invalid
>>>>>>>>
>>>>>>>>
>>>>>>> operator:
>>>>>
>>>>>
>>>>>> <2.0.0))
>>>>>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
>>>
>>>
>>>>    at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
>>>
>>>
>>>>    ... 27 more
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <
>>>>>>>>
>>>>>>>>
>>>>>>> gnodet@gmail.com>
>>>
>>>
>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Can you try building only the upnp subproject ?
>>>>>>>>> I suspect a problem with maven mixing the versions of
>>>>>>>>>
>>>>>>>>>
>>>>>>>> bundlerepository
>>>>>
>>>>>
>>>>>> to
>>>>>>>
>>>>>>>
>>>>>>>> use.
>>>>>>>>>
>>>>>>>>> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <
>>>>>>>>>
>>>>>>>>>
>>>>>>>> pierre.derop@gmail.com>
>>>>>
>>>>>
>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> I just type "ant".
>>>>>>>>>> Is this the correct way to compile the whole trunk ?
>>>>>>>>>>
>>>>>>>>>> /pierre
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> gnodet@gmail.com
>>>>>
>>>>>
>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Btw, what command do you use the build the whole trunk ?
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> pierre.derop@gmail.com>
>>>>>>>
>>>>>>>
>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Hello Guillaume;
>>>>>>>>>>>>
>>>>>>>>>>>> Just to confirm what Sahoo said: I also can't build the
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> trunk,
>>>>>
>>>>>
>>>>>> and
>>>>>>
>>>>>>
>>>>>>> get
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> the
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> same error: java.lang.NoClassDefFoundError:
>>>>>>>>>>>> org/apache/felix/bundlerepository/Requirement ...
>>>>>>>>>>>>
>>>>>>>>>>>> (I am using maven 2.2.1)
>>>>>>>>>>>> /pierre
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> gnodet@gmail.com>
>>>>>>>
>>>>>>>
>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> I don't see this error.
>>>>>>>>>>>>> Which version of maven do you use ? I use 2.2.0 and it
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> seems
>>>>>
>>>>>
>>>>>> to
>>>>>>
>>>>>>
>>>>>>> work
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> for
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> me.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> wrote:
>>>>>
>>>>>
>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>   [exec] [INFO] Building Apache Felix UPnP Extra
>>>>>>>>>>>>>>   [exec] [INFO]    task-segment: [clean, install]
>>>>>>>>>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>   [exec] [INFO] [clean:clean {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-clean}]
>>>
>>>
>>>>   [exec] [INFO] Deleting directory
>>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/upnp/extra/target
>>>>>>>>>>>>>>   [exec] [INFO] [resources:resources {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-resources}]
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>   [exec] [INFO] Using 'UTF-8' encoding to copy
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> filtered
>>>
>>>
>>>> resources.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>   [exec] [INFO] skip non existing resourceDirectory
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
>>>>>
>>>>>
>>>>>>   [exec] [INFO] Copying 2 resources to META-INF
>>>>>>>>>>>>>>   [exec] [INFO] [compiler:compile {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-compile}]
>>>>>>>
>>>>>>>
>>>>>>>>   [exec] [INFO] Compiling 3 source files to
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
>>>
>>>
>>>>   [exec] [INFO] [resources:testResources {execution:
>>>>>>>>>>>>>> default-testResources}]
>>>>>>>>>>>>>>   [exec] [INFO] Using 'UTF-8' encoding to copy
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> filtered
>>>
>>>
>>>> resources.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>   [exec] [INFO] skip non existing resourceDirectory
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
>>>>>
>>>>>
>>>>>>   [exec] [INFO] [compiler:testCompile {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-testCompile}]
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>   [exec] [INFO] No sources to compile
>>>>>>>>>>>>>>   [exec] [INFO] [surefire:test {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-test}]
>>>>>
>>>>>
>>>>>>   [exec] [INFO] No tests to run.
>>>>>>>>>>>>>>   [exec] [INFO] [bundle:bundle {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-bundle}]
>>>>>
>>>>>
>>>>>>   [exec] [WARNING] Warning building bundle
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
>>>
>>>
>>>> :
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Instructions in Private-Package, or -testpackages that
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> are
>>>>>
>>>>>
>>>>>> never
>>>>>>>
>>>>>>>
>>>>>>>> used:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> org\.apache\.xerces\.impl\.dv\.util
>>>>>>>>>>>>>>   [exec] [INFO] [install:install {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-install}]
>>>>>>>
>>>>>>>
>>>>>>>>   [exec] [INFO] Installing
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>>
>>>
>>>> to
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>>
>>>
>>>>   [exec] [INFO] [bundle:install {execution:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> default-install}]
>>>>>>
>>>>>>
>>>>>>>   [exec] [FATAL ERROR]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org.apache.felix.obrplugin.ObrInstall#execute()
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> caused a linkage error (java.lang.NoClassDefFoundError)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> and
>>>>>
>>>>>
>>>>>> may
>>>>>>>
>>>>>>>
>>>>>>>> be
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> out-of-date. Check the realms:
>>>>>>>>>>>>>>   [exec] [FATAL ERROR] Plugin realm =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
>>>
>>>
>>>>   [exec] urls[0] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
>>>
>>>
>>>>   [exec] urls[1] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
>>>
>>>
>>>>   [exec] urls[2] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
>>>
>>>
>>>>   [exec] urls[3] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> 1.1.3.1/xmlpull-1.1.3.1.jar
>>>>>>>>>>>>>>   [exec] urls[4] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
>>>
>>>
>>>>   [exec] urls[5] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
>>>
>>>
>>>>   [exec] urls[6] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
>>>
>>>
>>>>   [exec] urls[7] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
>>>
>>>
>>>>   [exec] urls[8] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
>>>
>>>
>>>>   [exec] urls[9] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
>>>
>>>
>>>>   [exec] urls[10] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
>>>
>>>
>>>>   [exec] urls[11] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
>>>
>>>
>>>>   [exec] urls[12] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
>>>
>>>
>>>>   [exec] [FATAL ERROR] Container realm = plexus.core
>>>>>>>>>>>>>>   [exec] urls[0] =
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
>>>
>>>
>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>   [exec] [ERROR] FATAL ERROR
>>>>>>>>>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org/apache/felix/bundlerepository/Requirement
>>>>>>
>>>>>>
>>>>>>>   [exec] org.apache.felix.bundlerepository.Requirement
>>>>>>>>>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>   [exec] [INFO] Trace
>>>>>>>>>>>>>>   [exec] java.lang.NoClassDefFoundError:
>>>>>>>>>>>>>> org/apache/felix/bundlerepository/Requirement
>>>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>>>
>>>>>>
>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>>
>>>>>
>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Method)
>>>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>
>>>>>
>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>>
>>>>>>
>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>   [exec] Caused by: java.lang.ClassNotFoundException:
>>>>>>>>>>>>>> org.apache.felix.bundlerepository.Requirement
>>>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.security.AccessController.doPrivileged(Native
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Method)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
>>>
>>>
>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>   [exec]     at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>>>
>>>>>>
>>>>>>>   [exec]     ... 20 more
>>>>>>>>>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>   [exec] [INFO] Total time: 4 minutes 13 seconds
>>>>>>>>>>>>>>   [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> 2010
>>>>>
>>>>>
>>>>>>   [exec] [INFO] Final Memory: 94M/141M
>>>>>>>>>>>>>>   [exec] [INFO]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>> BUILD FAILED
>>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/build.xml:71: exec
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> returned:
>>>>>
>>>>>
>>>>>> 1
>>>>>>
>>>>>>
>>>>>>> I am at svn rev#927284. One may ask why I am building
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> everything
>>>>>>>
>>>>>>>
>>>>>>>> in
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> trunk,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> well I typically build everything at the top level,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> because
>>>>>
>>>>>
>>>>>> I
>>>>>>
>>>>>>
>>>>>>> hate
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> to
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> build
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> each module separately when I have to build four or
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>> five
>>>
>>>
>>>> modules.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> In
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> any
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> case, there is no justification for build failures.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> Sahoo
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>> Guillaume Nodet
>>>>>>>>>>>>> ------------------------
>>>>>>>>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>>>>>>>>> ------------------------
>>>>>>>>>>>>> Open Source SOA
>>>>>>>>>>>>> http://fusesource.com
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Cheers,
>>>>>>>>>>> Guillaume Nodet
>>>>>>>>>>> ------------------------
>>>>>>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>>>>>>> ------------------------
>>>>>>>>>>> Open Source SOA
>>>>>>>>>>> http://fusesource.com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Cheers,
>>>>>>>>> Guillaume Nodet
>>>>>>>>> ------------------------
>>>>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>>>>> ------------------------
>>>>>>>>> Open Source SOA
>>>>>>>>> http://fusesource.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> Cheers,
>>>>>> Guillaume Nodet
>>>>>> ------------------------
>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>> ------------------------
>>>>>> Open Source SOA
>>>>>> http://fusesource.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Cheers,
>>>> Guillaume Nodet
>>>> ------------------------
>>>> Blog: http://gnodet.blogspot.com/
>>>> ------------------------
>>>> Open Source SOA
>>>> http://fusesource.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>>>
>>>
>>>
>>
>>
>>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Sahoo <Sa...@Sun.COM>.
Pierre De Rop wrote:
> Hello Guillaume,
>
> yes, it works (thank you !)
>
> I did:
>
> 1) mvn -Dpackaging=plugins install
> 2) mvn -Dmaven.test.skip=true -Dpackaging=bundle install
>
> and everything has been built correctly.
>   
Can we update the build.xml accordingly?
> However, the -Dmaven.test.skip=true option still has to be used because
> there is one pending issue in the DependencyManager junit tests, which has
> to be fixed. This is a known issue, and it's referenced here:
> http://issues.apache.org/jira/browse/FELIX-2078.
>   
Why don't we exclude the test until it is fixed? That will keep CI 
server to function as well.

Thanks,
Sahoo
> Regards;
> /pierre
>
>
>
>
>
>
> On Fri, Mar 26, 2010 at 3:02 PM, Guillaume Nodet <gn...@gmail.com> wrote:
>
>   
>> I had a better idea which seems to work.
>> I've added another profile to the root pom to build utils /
>> bundlerepository
>> in a separate reactor.
>> This means we don't hit this cyclic dependency problem anymore.
>> Could you update and try on your side ?
>>
>> On Fri, Mar 26, 2010 at 09:27, Guillaume Nodet <gn...@gmail.com> wrote:
>>
>>     
>>> I think the problems comes from the fact that bundlerepository and
>>> bundleplugin have a cyclic dependency.
>>> I'll try to remove this cyclic dep by extracting the model to utils
>>>       
>> (which
>>     
>>> could be later merged with the one from trunk).
>>>
>>>
>>> On Thu, Mar 25, 2010 at 23:28, Pierre De Rop <pierre.derop@gmail.com
>>> wrote:
>>>
>>>       
>>>> Guillaume,
>>>>
>>>> Ok, indeed, it works if I manually do the following:
>>>>
>>>> 1) build utils
>>>> 2) build bundlerepository
>>>> 3) build bundleplugin
>>>> 4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle install"
>>>>
>>>> However, with your last commit, if I type directly "mvn
>>>> -Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
>>>> exception:
>>>>
>>>> [ERROR] FATAL ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] org/apache/felix/bundlerepository/Requirement
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Trace
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/felix/bundlerepository/Requirement
>>>>         at
>>>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>>>>         at
>>>>
>>>>
>>>>         
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>     
>>>>        at
>>>>
>>>>
>>>>         
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>     
>>>>        at
>>>>
>>>>
>>>>         
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>     
>>>>        at
>>>>
>>>>
>>>>         
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>     
>>>>        at
>>>>
>>>>
>>>>         
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>     
>>>>        at
>>>>
>>>>
>>>>         
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>     
>>>>        at
>>>>
>>>>
>>>>         
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>     
>>>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>        at
>>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>        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:592)
>>>>         at
>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>        at
>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>
>>>>
>>>>
>>>> One additional thing to notice is that if I type "mvn
>>>>         
>> -Dpackaging=plugins
>>     
>>>> install", I then get this error:
>>>>
>>>> [ERROR] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] The projects in the reactor contain a cyclic reference: Edge
>>>> between
>>>> 'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}' and
>>>> 'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to
>>>>         
>> cycle
>>     
>>>> in the graph org.apache.felix:maven-bundle-plugin -->
>>>> org.apache.felix:org.apache.felix.bundlerepository -->
>>>> org.apache.felix:maven-bundle-plugin
>>>>
>>>>
>>>>
>>>> Did I miss something ?
>>>>
>>>>
>>>>
>>>> On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com>
>>>> wrote:
>>>>
>>>>         
>>>>> That one works for me.  Make sure you svn up.  The root pom may be
>>>>>           
>>>> missing
>>>>         
>>>>> the utils subproject too and you actually need a freshly build copy of
>>>>>           
>>>> it,
>>>>         
>>>>> so try building it manually first.  I'll try to add it to the build in
>>>>>           
>>>> the
>>>>         
>>>>> meantime.
>>>>>
>>>>> On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>           
>>>>>> Guillaume,
>>>>>>
>>>>>> The issue reported by Sahoo also takes place when just typing:
>>>>>>
>>>>>>    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
>>>>>>
>>>>>> (it's quicker than when typing "ant")
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <
>>>>>>             
>>>> pierre.derop@gmail.com
>>>>         
>>>>>>> wrote:
>>>>>>>               
>>>>>>> Indeed, I get some exceptions while building the upnp subproject:
>>>>>>>
>>>>>>> [INFO] Scanning for projects...
>>>>>>> [INFO] Reactor build order:
>>>>>>> [INFO]   Apache Felix UPnP Extra
>>>>>>> [INFO]   Apache Felix UPnP Base Driver
>>>>>>> [INFO]   Apache Felix UPnP Tester
>>>>>>> [INFO]   Apache Felix UPnP Sample Binary-Light
>>>>>>> [INFO]   Apache Felix UPnP Sample Clock
>>>>>>> [INFO]   Apache Felix UPnP Sample TV
>>>>>>> [INFO]   Apache Felix UPnP Examples: Build
>>>>>>> [INFO]   Apache Felix UPnP: Root POM
>>>>>>> [INFO]
>>>>>>>
>>>>>>>               
>> ------------------------------------------------------------------------
>>     
>>>>>>> [INFO] Building Apache Felix UPnP Extra
>>>>>>> [INFO]    task-segment: [install]
>>>>>>> [INFO]
>>>>>>>
>>>>>>>               
>> ------------------------------------------------------------------------
>>     
>>>>>>> [INFO] [resources:resources {execution: default-resources}]
>>>>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>> [INFO] skip non existing resourceDirectory
>>>>>>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
>>>>>>>
>>>>>>> [INFO] Copying 2 resources to META-INF
>>>>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>>>>> [INFO] Nothing to compile - all classes are up to date
>>>>>>>
>>>>>>> [INFO] [resources:testResources {execution:
>>>>>>>               
>> default-testResources}]
>>     
>>>>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>> [INFO] skip non existing resourceDirectory
>>>>>>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
>>>>>>>
>>>>>>> [INFO] [compiler:testCompile {execution: default-testCompile}]
>>>>>>> [INFO] No sources to compile
>>>>>>> [INFO] [surefire:test {execution: default-test}]
>>>>>>> [INFO] No tests to run.
>>>>>>> [INFO] [bundle:bundle {execution: default-bundle}]
>>>>>>> [WARNING] Warning building bundle
>>>>>>> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
>>>>>>>               
>> :
>>     
>>>>>>> Instructions in Private-Package, or -testpackages that are never
>>>>>>>               
>>>> used:
>>>>         
>>>>>>> org\.apache\.xerces\.impl\.dv\.util
>>>>>>> [INFO] [install:install {execution: default-install}]
>>>>>>> [INFO] Installing
>>>>>>>
>>>>>>>               
>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>     
>>>>>>> to
>>>>>>>
>>>>>>>               
>> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>     
>>>>>>> [INFO] [bundle:install {execution: default-install}]
>>>>>>> [WARNING] Exception while updating local OBR: Unable to read
>>>>>>>               
>>>> repository
>>>>         
>>>>>>> xml: file:/home/nxuser/.m2/repository/repository.xml
>>>>>>> org.apache.maven.plugin.MojoExecutionException: Unable to read
>>>>>>>               
>>>>> repository
>>>>>           
>>>>>>> xml: file:/home/nxuser/.m2/repository/repository.xml
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
>>     
>>>>>>>     at
>>>>>>>               
>>>>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
>>>>>           
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>     
>>>>>>>     at
>>>>>>>               
>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>         
>>>>>>>     at
>>>>>>>               
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>     
>>>>>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>>>     at
>>>>>>>
>>>>>>>               
>>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>         
>>>>>>>     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>>             
>>>>>>>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>>>     at
>>>>>>>
>>>>>>>               
>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>         
>>>>>>>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>> Caused by: java.lang.Exception: Error while parsing resource
>>>>>>> org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column
>>>>>>>               
>>>> 156
>>>>         
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
>>     
>>>>>>>     ... 20 more
>>>>>>> Caused by: java.lang.IllegalArgumentException
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
>>     
>>>>>>>     ... 25 more
>>>>>>> Caused by: org.osgi.framework.InvalidSyntaxException: Invalid
>>>>>>>               
>>>> operator:
>>>>         
>>>>>>> <2.0.0))
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
>>     
>>>>>>>     at
>>>>>>>
>>>>>>>               
>> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
>>     
>>>>>>>     ... 27 more
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <
>>>>>>>               
>> gnodet@gmail.com>
>>     
>>>>>> wrote:
>>>>>>             
>>>>>>>> Can you try building only the upnp subproject ?
>>>>>>>> I suspect a problem with maven mixing the versions of
>>>>>>>>                 
>>>> bundlerepository
>>>>         
>>>>>> to
>>>>>>             
>>>>>>>> use.
>>>>>>>>
>>>>>>>> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <
>>>>>>>>                 
>>>> pierre.derop@gmail.com>
>>>>         
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> I just type "ant".
>>>>>>>>> Is this the correct way to compile the whole trunk ?
>>>>>>>>>
>>>>>>>>> /pierre
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <
>>>>>>>>>                   
>>>> gnodet@gmail.com
>>>>         
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> Btw, what command do you use the build the whole trunk ?
>>>>>>>>>>
>>>>>>>>>> On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
>>>>>>>>>>                     
>>>>>> pierre.derop@gmail.com>
>>>>>>             
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> Hello Guillaume;
>>>>>>>>>>>
>>>>>>>>>>> Just to confirm what Sahoo said: I also can't build the
>>>>>>>>>>>                       
>>>> trunk,
>>>>         
>>>>> and
>>>>>           
>>>>>>>> get
>>>>>>>>                 
>>>>>>>>>> the
>>>>>>>>>>                     
>>>>>>>>>>> same error: java.lang.NoClassDefFoundError:
>>>>>>>>>>> org/apache/felix/bundlerepository/Requirement ...
>>>>>>>>>>>
>>>>>>>>>>> (I am using maven 2.2.1)
>>>>>>>>>>> /pierre
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
>>>>>>>>>>>                       
>>>>>> gnodet@gmail.com>
>>>>>>             
>>>>>>>>>> wrote:
>>>>>>>>>>                     
>>>>>>>>>>>> I don't see this error.
>>>>>>>>>>>> Which version of maven do you use ? I use 2.2.0 and it
>>>>>>>>>>>>                         
>>>> seems
>>>>         
>>>>> to
>>>>>           
>>>>>>>> work
>>>>>>>>                 
>>>>>>>>>> for
>>>>>>>>>>                     
>>>>>>>>>>>> me.
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com>
>>>>>>>>>>>>                         
>>>> wrote:
>>>>         
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] Building Apache Felix UPnP Extra
>>>>>>>>>>>>>    [exec] [INFO]    task-segment: [clean, install]
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] [clean:clean {execution:
>>>>>>>>>>>>>                           
>> default-clean}]
>>     
>>>>>>>>>>>>>    [exec] [INFO] Deleting directory
>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/upnp/extra/target
>>>>>>>>>>>>>    [exec] [INFO] [resources:resources {execution:
>>>>>>>>>>>>>                           
>>>>>>>>> default-resources}]
>>>>>>>>>                   
>>>>>>>>>>>>>    [exec] [INFO] Using 'UTF-8' encoding to copy
>>>>>>>>>>>>>                           
>> filtered
>>     
>>>>>>>> resources.
>>>>>>>>                 
>>>>>>>>>>>>>    [exec] [INFO] skip non existing resourceDirectory
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] Copying 2 resources to META-INF
>>>>>>>>>>>>>    [exec] [INFO] [compiler:compile {execution:
>>>>>>>>>>>>>                           
>>>>>> default-compile}]
>>>>>>             
>>>>>>>>>>>>>    [exec] [INFO] Compiling 3 source files to
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
>>     
>>>>>>>>>>>>>    [exec] [INFO] [resources:testResources {execution:
>>>>>>>>>>>>> default-testResources}]
>>>>>>>>>>>>>    [exec] [INFO] Using 'UTF-8' encoding to copy
>>>>>>>>>>>>>                           
>> filtered
>>     
>>>>>>>> resources.
>>>>>>>>                 
>>>>>>>>>>>>>    [exec] [INFO] skip non existing resourceDirectory
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] [compiler:testCompile {execution:
>>>>>>>>>>>>>                           
>>>>>>>>>>> default-testCompile}]
>>>>>>>>>>>                       
>>>>>>>>>>>>>    [exec] [INFO] No sources to compile
>>>>>>>>>>>>>    [exec] [INFO] [surefire:test {execution:
>>>>>>>>>>>>>                           
>>>> default-test}]
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] No tests to run.
>>>>>>>>>>>>>    [exec] [INFO] [bundle:bundle {execution:
>>>>>>>>>>>>>                           
>>>> default-bundle}]
>>>>         
>>>>>>>>>>>>>    [exec] [WARNING] Warning building bundle
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
>>     
>>>>>>>>> :
>>>>>>>>>                   
>>>>>>>>>>>>> Instructions in Private-Package, or -testpackages that
>>>>>>>>>>>>>                           
>>>> are
>>>>         
>>>>>> never
>>>>>>             
>>>>>>>>>> used:
>>>>>>>>>>                     
>>>>>>>>>>>>> org\.apache\.xerces\.impl\.dv\.util
>>>>>>>>>>>>>    [exec] [INFO] [install:install {execution:
>>>>>>>>>>>>>                           
>>>>>> default-install}]
>>>>>>             
>>>>>>>>>>>>>    [exec] [INFO] Installing
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>     
>>>>>>>>>>>>> to
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>>     
>>>>>>>>>>>>>    [exec] [INFO] [bundle:install {execution:
>>>>>>>>>>>>>                           
>>>>> default-install}]
>>>>>           
>>>>>>>>>>>>>    [exec] [FATAL ERROR]
>>>>>>>>>>>>>                           
>>>>>>>>>> org.apache.felix.obrplugin.ObrInstall#execute()
>>>>>>>>>>                     
>>>>>>>>>>>>> caused a linkage error (java.lang.NoClassDefFoundError)
>>>>>>>>>>>>>                           
>>>> and
>>>>         
>>>>>> may
>>>>>>             
>>>>>>>> be
>>>>>>>>                 
>>>>>>>>>>>>> out-of-date. Check the realms:
>>>>>>>>>>>>>    [exec] [FATAL ERROR] Plugin realm =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
>>     
>>>>>>>>>>>>>    [exec] urls[0] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
>>     
>>>>>>>>>>>>>    [exec] urls[1] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
>>     
>>>>>>>>>>>>>    [exec] urls[2] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
>>     
>>>>>>>>>>>>>    [exec] urls[3] =
>>>>>>>>>>>>>                           
>>>>>>>>>> file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
>>>>>>>>>>                     
>>>>>>>>>>>>> 1.1.3.1/xmlpull-1.1.3.1.jar
>>>>>>>>>>>>>    [exec] urls[4] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
>>     
>>>>>>>>>>>>>    [exec] urls[5] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
>>     
>>>>>>>>>>>>>    [exec] urls[6] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
>>     
>>>>>>>>>>>>>    [exec] urls[7] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
>>     
>>>>>>>>>>>>>    [exec] urls[8] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
>>     
>>>>>>>>>>>>>    [exec] urls[9] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
>>     
>>>>>>>>>>>>>    [exec] urls[10] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
>>     
>>>>>>>>>>>>>    [exec] urls[11] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
>>     
>>>>>>>>>>>>>    [exec] urls[12] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
>>     
>>>>>>>>>>>>>    [exec] [FATAL ERROR] Container realm = plexus.core
>>>>>>>>>>>>>    [exec] urls[0] =
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
>>     
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>>    [exec] [ERROR] FATAL ERROR
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>                           
>>>>> org/apache/felix/bundlerepository/Requirement
>>>>>           
>>>>>>>>>>>>>    [exec] org.apache.felix.bundlerepository.Requirement
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] Trace
>>>>>>>>>>>>>    [exec] java.lang.NoClassDefFoundError:
>>>>>>>>>>>>> org/apache/felix/bundlerepository/Requirement
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>>           
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>         
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>>>> org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>>>>>>                     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>                   
>>>>>>>>>>>>> Method)
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>> java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>                 
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>         
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>           
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>>>>>> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>>>>>>>                         
>>>>>>>>>>>>>    [exec] Caused by: java.lang.ClassNotFoundException:
>>>>>>>>>>>>> org.apache.felix.bundlerepository.Requirement
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>>>> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>>>>>>                     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>> java.security.AccessController.doPrivileged(Native
>>>>>>>>                 
>>>>>>>>>>>> Method)
>>>>>>>>>>>>                         
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>>>>>>                     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
>>     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>                           
>>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>>>>>>                     
>>>>>>>>>>>>>    [exec]     at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>>           
>>>>>>>>>>>>>    [exec]     ... 20 more
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] Total time: 4 minutes 13 seconds
>>>>>>>>>>>>>    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST
>>>>>>>>>>>>>                           
>>>> 2010
>>>>         
>>>>>>>>>>>>>    [exec] [INFO] Final Memory: 94M/141M
>>>>>>>>>>>>>    [exec] [INFO]
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>> ------------------------------------------------------------------------
>>>>         
>>>>>>>>>>>>> BUILD FAILED
>>>>>>>>>>>>> /space/ss141213/WS/felix/trunk/build.xml:71: exec
>>>>>>>>>>>>>                           
>>>> returned:
>>>>         
>>>>> 1
>>>>>           
>>>>>>>>>>>>> I am at svn rev#927284. One may ask why I am building
>>>>>>>>>>>>>                           
>>>>>> everything
>>>>>>             
>>>>>>>> in
>>>>>>>>                 
>>>>>>>>>>>> trunk,
>>>>>>>>>>>>                         
>>>>>>>>>>>>> well I typically build everything at the top level,
>>>>>>>>>>>>>                           
>>>> because
>>>>         
>>>>> I
>>>>>           
>>>>>>>> hate
>>>>>>>>                 
>>>>>>>>> to
>>>>>>>>>                   
>>>>>>>>>>>> build
>>>>>>>>>>>>                         
>>>>>>>>>>>>> each module separately when I have to build four or
>>>>>>>>>>>>>                           
>> five
>>     
>>>>>>>> modules.
>>>>>>>>                 
>>>>>>>>> In
>>>>>>>>>                   
>>>>>>>>>>> any
>>>>>>>>>>>                       
>>>>>>>>>>>>> case, there is no justification for build failures.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Sahoo
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>> Guillaume Nodet
>>>>>>>>>>>> ------------------------
>>>>>>>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>>>>>>>> ------------------------
>>>>>>>>>>>> Open Source SOA
>>>>>>>>>>>> http://fusesource.com
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Cheers,
>>>>>>>>>> Guillaume Nodet
>>>>>>>>>> ------------------------
>>>>>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>>>>>> ------------------------
>>>>>>>>>> Open Source SOA
>>>>>>>>>> http://fusesource.com
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>
>>>>>>>> --
>>>>>>>> Cheers,
>>>>>>>> Guillaume Nodet
>>>>>>>> ------------------------
>>>>>>>> Blog: http://gnodet.blogspot.com/
>>>>>>>> ------------------------
>>>>>>>> Open Source SOA
>>>>>>>> http://fusesource.com
>>>>>>>>
>>>>>>>>                 
>>>>>>>               
>>>>>
>>>>> --
>>>>> Cheers,
>>>>> Guillaume Nodet
>>>>> ------------------------
>>>>> Blog: http://gnodet.blogspot.com/
>>>>> ------------------------
>>>>> Open Source SOA
>>>>> http://fusesource.com
>>>>>
>>>>>           
>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>>>
>>>
>>>
>>>       
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>>     
>
>   

Re: trunk still does not build

Posted by Pierre De Rop <pi...@gmail.com>.
Hello Guillaume,

yes, it works (thank you !)

I did:

1) mvn -Dpackaging=plugins install
2) mvn -Dmaven.test.skip=true -Dpackaging=bundle install

and everything has been built correctly.

However, the -Dmaven.test.skip=true option still has to be used because
there is one pending issue in the DependencyManager junit tests, which has
to be fixed. This is a known issue, and it's referenced here:
http://issues.apache.org/jira/browse/FELIX-2078.

Regards;
/pierre






On Fri, Mar 26, 2010 at 3:02 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> I had a better idea which seems to work.
> I've added another profile to the root pom to build utils /
> bundlerepository
> in a separate reactor.
> This means we don't hit this cyclic dependency problem anymore.
> Could you update and try on your side ?
>
> On Fri, Mar 26, 2010 at 09:27, Guillaume Nodet <gn...@gmail.com> wrote:
>
> > I think the problems comes from the fact that bundlerepository and
> > bundleplugin have a cyclic dependency.
> > I'll try to remove this cyclic dep by extracting the model to utils
> (which
> > could be later merged with the one from trunk).
> >
> >
> > On Thu, Mar 25, 2010 at 23:28, Pierre De Rop <pierre.derop@gmail.com
> >wrote:
> >
> >> Guillaume,
> >>
> >> Ok, indeed, it works if I manually do the following:
> >>
> >> 1) build utils
> >> 2) build bundlerepository
> >> 3) build bundleplugin
> >> 4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle install"
> >>
> >> However, with your last commit, if I type directly "mvn
> >> -Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
> >> exception:
> >>
> >> [ERROR] FATAL ERROR
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] org/apache/felix/bundlerepository/Requirement
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Trace
> >> java.lang.NoClassDefFoundError:
> >> org/apache/felix/bundlerepository/Requirement
> >>         at
> >> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> >>         at
> >>
> >>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >>        at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >>        at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >>        at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >>        at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >>        at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >>        at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >>        at
> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >>        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:592)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>        at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>
> >>
> >>
> >> One additional thing to notice is that if I type "mvn
> -Dpackaging=plugins
> >> install", I then get this error:
> >>
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] The projects in the reactor contain a cyclic reference: Edge
> >> between
> >> 'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}' and
> >> 'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to
> cycle
> >> in the graph org.apache.felix:maven-bundle-plugin -->
> >> org.apache.felix:org.apache.felix.bundlerepository -->
> >> org.apache.felix:maven-bundle-plugin
> >>
> >>
> >>
> >> Did I miss something ?
> >>
> >>
> >>
> >> On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com>
> >> wrote:
> >>
> >> > That one works for me.  Make sure you svn up.  The root pom may be
> >> missing
> >> > the utils subproject too and you actually need a freshly build copy of
> >> it,
> >> > so try building it manually first.  I'll try to add it to the build in
> >> the
> >> > meantime.
> >> >
> >> > On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
> >> > wrote:
> >> >
> >> > > Guillaume,
> >> > >
> >> > > The issue reported by Sahoo also takes place when just typing:
> >> > >
> >> > >    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
> >> > >
> >> > > (it's quicker than when typing "ant")
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <
> >> pierre.derop@gmail.com
> >> > > >wrote:
> >> > >
> >> > > > Indeed, I get some exceptions while building the upnp subproject:
> >> > > >
> >> > > > [INFO] Scanning for projects...
> >> > > > [INFO] Reactor build order:
> >> > > > [INFO]   Apache Felix UPnP Extra
> >> > > > [INFO]   Apache Felix UPnP Base Driver
> >> > > > [INFO]   Apache Felix UPnP Tester
> >> > > > [INFO]   Apache Felix UPnP Sample Binary-Light
> >> > > > [INFO]   Apache Felix UPnP Sample Clock
> >> > > > [INFO]   Apache Felix UPnP Sample TV
> >> > > > [INFO]   Apache Felix UPnP Examples: Build
> >> > > > [INFO]   Apache Felix UPnP: Root POM
> >> > > > [INFO]
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > >
> >> > > > [INFO] Building Apache Felix UPnP Extra
> >> > > > [INFO]    task-segment: [install]
> >> > > > [INFO]
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > >
> >> > > > [INFO] [resources:resources {execution: default-resources}]
> >> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> > > > [INFO] skip non existing resourceDirectory
> >> > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
> >> > > >
> >> > > > [INFO] Copying 2 resources to META-INF
> >> > > > [INFO] [compiler:compile {execution: default-compile}]
> >> > > > [INFO] Nothing to compile - all classes are up to date
> >> > > >
> >> > > > [INFO] [resources:testResources {execution:
> default-testResources}]
> >> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> > > > [INFO] skip non existing resourceDirectory
> >> > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
> >> > > >
> >> > > > [INFO] [compiler:testCompile {execution: default-testCompile}]
> >> > > > [INFO] No sources to compile
> >> > > > [INFO] [surefire:test {execution: default-test}]
> >> > > > [INFO] No tests to run.
> >> > > > [INFO] [bundle:bundle {execution: default-bundle}]
> >> > > > [WARNING] Warning building bundle
> >> > > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> :
> >> > > > Instructions in Private-Package, or -testpackages that are never
> >> used:
> >> > > > org\.apache\.xerces\.impl\.dv\.util
> >> > > > [INFO] [install:install {execution: default-install}]
> >> > > > [INFO] Installing
> >> > > >
> >> > >
> >> >
> >>
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >> > > > to
> >> > > >
> >> > >
> >> >
> >>
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >> > > >
> >> > > > [INFO] [bundle:install {execution: default-install}]
> >> > > > [WARNING] Exception while updating local OBR: Unable to read
> >> repository
> >> > > > xml: file:/home/nxuser/.m2/repository/repository.xml
> >> > > > org.apache.maven.plugin.MojoExecutionException: Unable to read
> >> > repository
> >> > > > xml: file:/home/nxuser/.m2/repository/repository.xml
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
> >> > > >     at
> >> > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
> >> > > >
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >> > > >     at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >> > > >     at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >> > > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >> > > >     at
> >> > > >
> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >> > > >     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >> > > >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >> > > >     at
> >> > > >
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >> > > >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> > > > Caused by: java.lang.Exception: Error while parsing resource
> >> > > > org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column
> >> 156
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
> >> > > >     ... 20 more
> >> > > > Caused by: java.lang.IllegalArgumentException
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
> >> > > >     ... 25 more
> >> > > > Caused by: org.osgi.framework.InvalidSyntaxException: Invalid
> >> operator:
> >> > > > <2.0.0))
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
> >> > > >     at
> >> > > >
> >> >
> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
> >> > > >     at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
> >> > > >     ... 27 more
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <
> gnodet@gmail.com>
> >> > > wrote:
> >> > > >
> >> > > >> Can you try building only the upnp subproject ?
> >> > > >> I suspect a problem with maven mixing the versions of
> >> bundlerepository
> >> > > to
> >> > > >> use.
> >> > > >>
> >> > > >> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <
> >> pierre.derop@gmail.com>
> >> > > >> wrote:
> >> > > >>
> >> > > >> > I just type "ant".
> >> > > >> > Is this the correct way to compile the whole trunk ?
> >> > > >> >
> >> > > >> > /pierre
> >> > > >> >
> >> > > >> >
> >> > > >> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <
> >> gnodet@gmail.com
> >> > >
> >> > > >> > wrote:
> >> > > >> >
> >> > > >> > > Btw, what command do you use the build the whole trunk ?
> >> > > >> > >
> >> > > >> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
> >> > > pierre.derop@gmail.com>
> >> > > >> > > wrote:
> >> > > >> > >
> >> > > >> > > > Hello Guillaume;
> >> > > >> > > >
> >> > > >> > > > Just to confirm what Sahoo said: I also can't build the
> >> trunk,
> >> > and
> >> > > >> get
> >> > > >> > > the
> >> > > >> > > > same error: java.lang.NoClassDefFoundError:
> >> > > >> > > > org/apache/felix/bundlerepository/Requirement ...
> >> > > >> > > >
> >> > > >> > > > (I am using maven 2.2.1)
> >> > > >> > > > /pierre
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
> >> > > gnodet@gmail.com>
> >> > > >> > > wrote:
> >> > > >> > > >
> >> > > >> > > > > I don't see this error.
> >> > > >> > > > > Which version of maven do you use ? I use 2.2.0 and it
> >> seems
> >> > to
> >> > > >> work
> >> > > >> > > for
> >> > > >> > > > > me.
> >> > > >> > > > >
> >> > > >> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com>
> >> wrote:
> >> > > >> > > > >
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> >> > > >> > > > > >    [exec] [INFO]    task-segment: [clean, install]
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >    [exec] [INFO] [clean:clean {execution:
> default-clean}]
> >> > > >> > > > > >    [exec] [INFO] Deleting directory
> >> > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> >> > > >> > > > > >    [exec] [INFO] [resources:resources {execution:
> >> > > >> > default-resources}]
> >> > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy
> filtered
> >> > > >> resources.
> >> > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> >> > > >> > > > > >
> >> /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> >> > > >> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> >> > > >> > > > > >    [exec] [INFO] [compiler:compile {execution:
> >> > > default-compile}]
> >> > > >> > > > > >    [exec] [INFO] Compiling 3 source files to
> >> > > >> > > > > >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> >> > > >> > > > > >    [exec] [INFO] [resources:testResources {execution:
> >> > > >> > > > > > default-testResources}]
> >> > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy
> filtered
> >> > > >> resources.
> >> > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> >> > > >> > > > > >
> >> /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> >> > > >> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> >> > > >> > > > default-testCompile}]
> >> > > >> > > > > >    [exec] [INFO] No sources to compile
> >> > > >> > > > > >    [exec] [INFO] [surefire:test {execution:
> >> default-test}]
> >> > > >> > > > > >    [exec] [INFO] No tests to run.
> >> > > >> > > > > >    [exec] [INFO] [bundle:bundle {execution:
> >> default-bundle}]
> >> > > >> > > > > >    [exec] [WARNING] Warning building bundle
> >> > > >> > > > > >
> >> > > >>
> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> >> > > >> > :
> >> > > >> > > > > > Instructions in Private-Package, or -testpackages that
> >> are
> >> > > never
> >> > > >> > > used:
> >> > > >> > > > > > org\.apache\.xerces\.impl\.dv\.util
> >> > > >> > > > > >    [exec] [INFO] [install:install {execution:
> >> > > default-install}]
> >> > > >> > > > > >    [exec] [INFO] Installing
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >> > > >> > > > > > to
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >> > > >> > > > > >    [exec] [INFO] [bundle:install {execution:
> >> > default-install}]
> >> > > >> > > > > >    [exec] [FATAL ERROR]
> >> > > >> > > org.apache.felix.obrplugin.ObrInstall#execute()
> >> > > >> > > > > > caused a linkage error (java.lang.NoClassDefFoundError)
> >> and
> >> > > may
> >> > > >> be
> >> > > >> > > > > > out-of-date. Check the realms:
> >> > > >> > > > > >    [exec] [FATAL ERROR] Plugin realm =
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > > >>
> >> > >
> >>
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> >> > > >> > > > > >    [exec] urls[0] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> >> > > >> > > > > >    [exec] urls[1] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> >> > > >> > > > > >    [exec] urls[2] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> >> > > >> > > > > >    [exec] urls[3] =
> >> > > >> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> >> > > >> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> >> > > >> > > > > >    [exec] urls[4] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> >> > > >> > > > > >    [exec] urls[5] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> >> > > >> > > > > >    [exec] urls[6] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> >> > > >> > > > > >    [exec] urls[7] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> >> > > >> > > > > >    [exec] urls[8] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> >> > > >> > > > > >    [exec] urls[9] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> >> > > >> > > > > >    [exec] urls[10] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> >> > > >> > > > > >    [exec] urls[11] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> >> > > >> > > > > >    [exec] urls[12] =
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> >> > > >> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> >> > > >> > > > > >    [exec] urls[0] =
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > > >>
> >> > >
> >>
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >    [exec] [ERROR] FATAL ERROR
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >    [exec] [INFO]
> >> > org/apache/felix/bundlerepository/Requirement
> >> > > >> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >    [exec] [INFO] Trace
> >> > > >> > > > > >    [exec] java.lang.NoClassDefFoundError:
> >> > > >> > > > > > org/apache/felix/bundlerepository/Requirement
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >>
> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > >
> >> > > >>
> >> >
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > > >> > > > > > Method)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> > > >> > > > > >    [exec]     at
> >> > > >> java.lang.reflect.Method.invoke(Method.java:597)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >>
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> >
> >> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> > > >> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> >> > > >> > > > > > org.apache.felix.bundlerepository.Requirement
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >> > > >> > > > > >    [exec]     at
> >> > > >> java.security.AccessController.doPrivileged(Native
> >> > > >> > > > > Method)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > >
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >> > > >> > > > > >    [exec]     at
> >> > > >> > > > > >
> >> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >> > > >> > > > > >    [exec]     ... 20 more
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> >> > > >> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST
> >> 2010
> >> > > >> > > > > >    [exec] [INFO] Final Memory: 94M/141M
> >> > > >> > > > > >    [exec] [INFO]
> >> > > >> > > > > >
> >> > > >> > > >
> >> > > >> >
> >> > >
> >> ------------------------------------------------------------------------
> >> > > >> > > > > >
> >> > > >> > > > > > BUILD FAILED
> >> > > >> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec
> >> returned:
> >> > 1
> >> > > >> > > > > >
> >> > > >> > > > > > I am at svn rev#927284. One may ask why I am building
> >> > > everything
> >> > > >> in
> >> > > >> > > > > trunk,
> >> > > >> > > > > > well I typically build everything at the top level,
> >> because
> >> > I
> >> > > >> hate
> >> > > >> > to
> >> > > >> > > > > build
> >> > > >> > > > > > each module separately when I have to build four or
> five
> >> > > >> modules.
> >> > > >> > In
> >> > > >> > > > any
> >> > > >> > > > > > case, there is no justification for build failures.
> >> > > >> > > > > >
> >> > > >> > > > > > Thanks,
> >> > > >> > > > > > Sahoo
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > > >
> >> > > >> > > > >
> >> > > >> > > > > --
> >> > > >> > > > > Cheers,
> >> > > >> > > > > Guillaume Nodet
> >> > > >> > > > > ------------------------
> >> > > >> > > > > Blog: http://gnodet.blogspot.com/
> >> > > >> > > > > ------------------------
> >> > > >> > > > > Open Source SOA
> >> > > >> > > > > http://fusesource.com
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> > >
> >> > > >> > >
> >> > > >> > > --
> >> > > >> > > Cheers,
> >> > > >> > > Guillaume Nodet
> >> > > >> > > ------------------------
> >> > > >> > > Blog: http://gnodet.blogspot.com/
> >> > > >> > > ------------------------
> >> > > >> > > Open Source SOA
> >> > > >> > > http://fusesource.com
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> > > >>
> >> > > >>
> >> > > >> --
> >> > > >> Cheers,
> >> > > >> Guillaume Nodet
> >> > > >> ------------------------
> >> > > >> Blog: http://gnodet.blogspot.com/
> >> > > >> ------------------------
> >> > > >> Open Source SOA
> >> > > >> http://fusesource.com
> >> > > >>
> >> > > >
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Cheers,
> >> > Guillaume Nodet
> >> > ------------------------
> >> > Blog: http://gnodet.blogspot.com/
> >> > ------------------------
> >> > Open Source SOA
> >> > http://fusesource.com
> >> >
> >>
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
I had a better idea which seems to work.
I've added another profile to the root pom to build utils / bundlerepository
in a separate reactor.
This means we don't hit this cyclic dependency problem anymore.
Could you update and try on your side ?

On Fri, Mar 26, 2010 at 09:27, Guillaume Nodet <gn...@gmail.com> wrote:

> I think the problems comes from the fact that bundlerepository and
> bundleplugin have a cyclic dependency.
> I'll try to remove this cyclic dep by extracting the model to utils (which
> could be later merged with the one from trunk).
>
>
> On Thu, Mar 25, 2010 at 23:28, Pierre De Rop <pi...@gmail.com>wrote:
>
>> Guillaume,
>>
>> Ok, indeed, it works if I manually do the following:
>>
>> 1) build utils
>> 2) build bundlerepository
>> 3) build bundleplugin
>> 4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle install"
>>
>> However, with your last commit, if I type directly "mvn
>> -Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
>> exception:
>>
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] org/apache/felix/bundlerepository/Requirement
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NoClassDefFoundError:
>> org/apache/felix/bundlerepository/Requirement
>>         at
>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>>         at
>>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>        at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>        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:592)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>        at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>
>>
>>
>> One additional thing to notice is that if I type "mvn -Dpackaging=plugins
>> install", I then get this error:
>>
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The projects in the reactor contain a cyclic reference: Edge
>> between
>> 'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}' and
>> 'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to cycle
>> in the graph org.apache.felix:maven-bundle-plugin -->
>> org.apache.felix:org.apache.felix.bundlerepository -->
>> org.apache.felix:maven-bundle-plugin
>>
>>
>>
>> Did I miss something ?
>>
>>
>>
>> On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com>
>> wrote:
>>
>> > That one works for me.  Make sure you svn up.  The root pom may be
>> missing
>> > the utils subproject too and you actually need a freshly build copy of
>> it,
>> > so try building it manually first.  I'll try to add it to the build in
>> the
>> > meantime.
>> >
>> > On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
>> > wrote:
>> >
>> > > Guillaume,
>> > >
>> > > The issue reported by Sahoo also takes place when just typing:
>> > >
>> > >    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
>> > >
>> > > (it's quicker than when typing "ant")
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <
>> pierre.derop@gmail.com
>> > > >wrote:
>> > >
>> > > > Indeed, I get some exceptions while building the upnp subproject:
>> > > >
>> > > > [INFO] Scanning for projects...
>> > > > [INFO] Reactor build order:
>> > > > [INFO]   Apache Felix UPnP Extra
>> > > > [INFO]   Apache Felix UPnP Base Driver
>> > > > [INFO]   Apache Felix UPnP Tester
>> > > > [INFO]   Apache Felix UPnP Sample Binary-Light
>> > > > [INFO]   Apache Felix UPnP Sample Clock
>> > > > [INFO]   Apache Felix UPnP Sample TV
>> > > > [INFO]   Apache Felix UPnP Examples: Build
>> > > > [INFO]   Apache Felix UPnP: Root POM
>> > > > [INFO]
>> > > >
>> > ------------------------------------------------------------------------
>> > > >
>> > > > [INFO] Building Apache Felix UPnP Extra
>> > > > [INFO]    task-segment: [install]
>> > > > [INFO]
>> > > >
>> > ------------------------------------------------------------------------
>> > > >
>> > > > [INFO] [resources:resources {execution: default-resources}]
>> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> > > > [INFO] skip non existing resourceDirectory
>> > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
>> > > >
>> > > > [INFO] Copying 2 resources to META-INF
>> > > > [INFO] [compiler:compile {execution: default-compile}]
>> > > > [INFO] Nothing to compile - all classes are up to date
>> > > >
>> > > > [INFO] [resources:testResources {execution: default-testResources}]
>> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> > > > [INFO] skip non existing resourceDirectory
>> > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
>> > > >
>> > > > [INFO] [compiler:testCompile {execution: default-testCompile}]
>> > > > [INFO] No sources to compile
>> > > > [INFO] [surefire:test {execution: default-test}]
>> > > > [INFO] No tests to run.
>> > > > [INFO] [bundle:bundle {execution: default-bundle}]
>> > > > [WARNING] Warning building bundle
>> > > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
>> > > > Instructions in Private-Package, or -testpackages that are never
>> used:
>> > > > org\.apache\.xerces\.impl\.dv\.util
>> > > > [INFO] [install:install {execution: default-install}]
>> > > > [INFO] Installing
>> > > >
>> > >
>> >
>> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>> > > > to
>> > > >
>> > >
>> >
>> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>> > > >
>> > > > [INFO] [bundle:install {execution: default-install}]
>> > > > [WARNING] Exception while updating local OBR: Unable to read
>> repository
>> > > > xml: file:/home/nxuser/.m2/repository/repository.xml
>> > > > org.apache.maven.plugin.MojoExecutionException: Unable to read
>> > repository
>> > > > xml: file:/home/nxuser/.m2/repository/repository.xml
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
>> > > >     at
>> > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
>> > > >
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> > > >     at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> > > >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> > > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> > > >     at
>> > > >
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> > > >     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> > > >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> > > >     at
>> > > >
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> > > >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > > > Caused by: java.lang.Exception: Error while parsing resource
>> > > > org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column
>> 156
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
>> > > >     ... 20 more
>> > > > Caused by: java.lang.IllegalArgumentException
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
>> > > >     ... 25 more
>> > > > Caused by: org.osgi.framework.InvalidSyntaxException: Invalid
>> operator:
>> > > > <2.0.0))
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
>> > > >     at
>> > > >
>> > org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
>> > > >     at
>> > > >
>> > >
>> >
>> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
>> > > >     ... 27 more
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com>
>> > > wrote:
>> > > >
>> > > >> Can you try building only the upnp subproject ?
>> > > >> I suspect a problem with maven mixing the versions of
>> bundlerepository
>> > > to
>> > > >> use.
>> > > >>
>> > > >> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <
>> pierre.derop@gmail.com>
>> > > >> wrote:
>> > > >>
>> > > >> > I just type "ant".
>> > > >> > Is this the correct way to compile the whole trunk ?
>> > > >> >
>> > > >> > /pierre
>> > > >> >
>> > > >> >
>> > > >> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <
>> gnodet@gmail.com
>> > >
>> > > >> > wrote:
>> > > >> >
>> > > >> > > Btw, what command do you use the build the whole trunk ?
>> > > >> > >
>> > > >> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
>> > > pierre.derop@gmail.com>
>> > > >> > > wrote:
>> > > >> > >
>> > > >> > > > Hello Guillaume;
>> > > >> > > >
>> > > >> > > > Just to confirm what Sahoo said: I also can't build the
>> trunk,
>> > and
>> > > >> get
>> > > >> > > the
>> > > >> > > > same error: java.lang.NoClassDefFoundError:
>> > > >> > > > org/apache/felix/bundlerepository/Requirement ...
>> > > >> > > >
>> > > >> > > > (I am using maven 2.2.1)
>> > > >> > > > /pierre
>> > > >> > > >
>> > > >> > > >
>> > > >> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
>> > > gnodet@gmail.com>
>> > > >> > > wrote:
>> > > >> > > >
>> > > >> > > > > I don't see this error.
>> > > >> > > > > Which version of maven do you use ? I use 2.2.0 and it
>> seems
>> > to
>> > > >> work
>> > > >> > > for
>> > > >> > > > > me.
>> > > >> > > > >
>> > > >> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com>
>> wrote:
>> > > >> > > > >
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
>> > > >> > > > > >    [exec] [INFO]    task-segment: [clean, install]
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
>> > > >> > > > > >    [exec] [INFO] Deleting directory
>> > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
>> > > >> > > > > >    [exec] [INFO] [resources:resources {execution:
>> > > >> > default-resources}]
>> > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
>> > > >> resources.
>> > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
>> > > >> > > > > >
>> /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
>> > > >> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
>> > > >> > > > > >    [exec] [INFO] [compiler:compile {execution:
>> > > default-compile}]
>> > > >> > > > > >    [exec] [INFO] Compiling 3 source files to
>> > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
>> > > >> > > > > >    [exec] [INFO] [resources:testResources {execution:
>> > > >> > > > > > default-testResources}]
>> > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
>> > > >> resources.
>> > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
>> > > >> > > > > >
>> /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
>> > > >> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
>> > > >> > > > default-testCompile}]
>> > > >> > > > > >    [exec] [INFO] No sources to compile
>> > > >> > > > > >    [exec] [INFO] [surefire:test {execution:
>> default-test}]
>> > > >> > > > > >    [exec] [INFO] No tests to run.
>> > > >> > > > > >    [exec] [INFO] [bundle:bundle {execution:
>> default-bundle}]
>> > > >> > > > > >    [exec] [WARNING] Warning building bundle
>> > > >> > > > > >
>> > > >> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
>> > > >> > :
>> > > >> > > > > > Instructions in Private-Package, or -testpackages that
>> are
>> > > never
>> > > >> > > used:
>> > > >> > > > > > org\.apache\.xerces\.impl\.dv\.util
>> > > >> > > > > >    [exec] [INFO] [install:install {execution:
>> > > default-install}]
>> > > >> > > > > >    [exec] [INFO] Installing
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>> > > >> > > > > > to
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>> > > >> > > > > >    [exec] [INFO] [bundle:install {execution:
>> > default-install}]
>> > > >> > > > > >    [exec] [FATAL ERROR]
>> > > >> > > org.apache.felix.obrplugin.ObrInstall#execute()
>> > > >> > > > > > caused a linkage error (java.lang.NoClassDefFoundError)
>> and
>> > > may
>> > > >> be
>> > > >> > > > > > out-of-date. Check the realms:
>> > > >> > > > > >    [exec] [FATAL ERROR] Plugin realm =
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > > >>
>> > >
>> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
>> > > >> > > > > >    [exec] urls[0] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
>> > > >> > > > > >    [exec] urls[1] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
>> > > >> > > > > >    [exec] urls[2] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
>> > > >> > > > > >    [exec] urls[3] =
>> > > >> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
>> > > >> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
>> > > >> > > > > >    [exec] urls[4] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
>> > > >> > > > > >    [exec] urls[5] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
>> > > >> > > > > >    [exec] urls[6] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
>> > > >> > > > > >    [exec] urls[7] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
>> > > >> > > > > >    [exec] urls[8] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
>> > > >> > > > > >    [exec] urls[9] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
>> > > >> > > > > >    [exec] urls[10] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
>> > > >> > > > > >    [exec] urls[11] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
>> > > >> > > > > >    [exec] urls[12] =
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
>> > > >> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
>> > > >> > > > > >    [exec] urls[0] =
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > > >>
>> > >
>> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >    [exec] [ERROR] FATAL ERROR
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >    [exec] [INFO]
>> > org/apache/felix/bundlerepository/Requirement
>> > > >> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >    [exec] [INFO] Trace
>> > > >> > > > > >    [exec] java.lang.NoClassDefFoundError:
>> > > >> > > > > > org/apache/felix/bundlerepository/Requirement
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> > > >> > > > > >    [exec]     at
>> > > >> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > >
>> > > >>
>> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> > > >> > > > > >    [exec]     at
>> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > > >> > > > > > Method)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> > > >> > > > > >    [exec]     at
>> > > >> java.lang.reflect.Method.invoke(Method.java:597)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> >
>> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > > >> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
>> > > >> > > > > > org.apache.felix.bundlerepository.Requirement
>> > > >> > > > > >    [exec]     at
>> > > >> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> > > >> > > > > >    [exec]     at
>> > > >> java.security.AccessController.doPrivileged(Native
>> > > >> > > > > Method)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> > > >> > > > > >    [exec]     at
>> > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
>> > > >> > > > > >    [exec]     at
>> > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> > > >> > > > > >    [exec]     at
>> > > >> > > > > >
>> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> > > >> > > > > >    [exec]     ... 20 more
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
>> > > >> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST
>> 2010
>> > > >> > > > > >    [exec] [INFO] Final Memory: 94M/141M
>> > > >> > > > > >    [exec] [INFO]
>> > > >> > > > > >
>> > > >> > > >
>> > > >> >
>> > >
>> ------------------------------------------------------------------------
>> > > >> > > > > >
>> > > >> > > > > > BUILD FAILED
>> > > >> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec
>> returned:
>> > 1
>> > > >> > > > > >
>> > > >> > > > > > I am at svn rev#927284. One may ask why I am building
>> > > everything
>> > > >> in
>> > > >> > > > > trunk,
>> > > >> > > > > > well I typically build everything at the top level,
>> because
>> > I
>> > > >> hate
>> > > >> > to
>> > > >> > > > > build
>> > > >> > > > > > each module separately when I have to build four or five
>> > > >> modules.
>> > > >> > In
>> > > >> > > > any
>> > > >> > > > > > case, there is no justification for build failures.
>> > > >> > > > > >
>> > > >> > > > > > Thanks,
>> > > >> > > > > > Sahoo
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > > >
>> > > >> > > > >
>> > > >> > > > > --
>> > > >> > > > > Cheers,
>> > > >> > > > > Guillaume Nodet
>> > > >> > > > > ------------------------
>> > > >> > > > > Blog: http://gnodet.blogspot.com/
>> > > >> > > > > ------------------------
>> > > >> > > > > Open Source SOA
>> > > >> > > > > http://fusesource.com
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> > >
>> > > >> > >
>> > > >> > > --
>> > > >> > > Cheers,
>> > > >> > > Guillaume Nodet
>> > > >> > > ------------------------
>> > > >> > > Blog: http://gnodet.blogspot.com/
>> > > >> > > ------------------------
>> > > >> > > Open Source SOA
>> > > >> > > http://fusesource.com
>> > > >> > >
>> > > >> >
>> > > >>
>> > > >>
>> > > >>
>> > > >> --
>> > > >> Cheers,
>> > > >> Guillaume Nodet
>> > > >> ------------------------
>> > > >> Blog: http://gnodet.blogspot.com/
>> > > >> ------------------------
>> > > >> Open Source SOA
>> > > >> http://fusesource.com
>> > > >>
>> > > >
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> > ------------------------
>> > Blog: http://gnodet.blogspot.com/
>> > ------------------------
>> > Open Source SOA
>> > http://fusesource.com
>> >
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Stuart McCulloch <mc...@gmail.com>.
On 26 March 2010 01:27, Guillaume Nodet <gn...@gmail.com> wrote:

> I think the problems comes from the fact that bundlerepository and
> bundleplugin have a cyclic dependency.
> I'll try to remove this cyclic dep by extracting the model to utils (which
> could be later merged with the one from trunk).
>

this is exactly why we split out the "org.osgi.service.obr" artifact in the
first place,
so I'm a bit surprised that someone put this circular dependency back when
we'd
gone to the trouble removing it before

moving out common code to a shared artifact is definitely the way to go.


> On Thu, Mar 25, 2010 at 23:28, Pierre De Rop <pi...@gmail.com>
> wrote:
>
> > Guillaume,
> >
> > Ok, indeed, it works if I manually do the following:
> >
> > 1) build utils
> > 2) build bundlerepository
> > 3) build bundleplugin
> > 4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle install"
> >
> > However, with your last commit, if I type directly "mvn
> > -Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
> > exception:
> >
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] org/apache/felix/bundlerepository/Requirement
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > java.lang.NoClassDefFoundError:
> > org/apache/felix/bundlerepository/Requirement
> >         at
> > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> >         at
> >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >        at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >        at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >        at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >        at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >        at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >        at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >        at
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >        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:592)
> >         at
> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >        at
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >
> >
> >
> > One additional thing to notice is that if I type "mvn -Dpackaging=plugins
> > install", I then get this error:
> >
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] The projects in the reactor contain a cyclic reference: Edge
> between
> > 'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}' and
> > 'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to
> cycle
> > in the graph org.apache.felix:maven-bundle-plugin -->
> > org.apache.felix:org.apache.felix.bundlerepository -->
> > org.apache.felix:maven-bundle-plugin
> >
> >
> >
> > Did I miss something ?
> >
> >
> >
> > On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com>
> wrote:
> >
> > > That one works for me.  Make sure you svn up.  The root pom may be
> > missing
> > > the utils subproject too and you actually need a freshly build copy of
> > it,
> > > so try building it manually first.  I'll try to add it to the build in
> > the
> > > meantime.
> > >
> > > On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
> > > wrote:
> > >
> > > > Guillaume,
> > > >
> > > > The issue reported by Sahoo also takes place when just typing:
> > > >
> > > >    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
> > > >
> > > > (it's quicker than when typing "ant")
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <
> pierre.derop@gmail.com
> > > > >wrote:
> > > >
> > > > > Indeed, I get some exceptions while building the upnp subproject:
> > > > >
> > > > > [INFO] Scanning for projects...
> > > > > [INFO] Reactor build order:
> > > > > [INFO]   Apache Felix UPnP Extra
> > > > > [INFO]   Apache Felix UPnP Base Driver
> > > > > [INFO]   Apache Felix UPnP Tester
> > > > > [INFO]   Apache Felix UPnP Sample Binary-Light
> > > > > [INFO]   Apache Felix UPnP Sample Clock
> > > > > [INFO]   Apache Felix UPnP Sample TV
> > > > > [INFO]   Apache Felix UPnP Examples: Build
> > > > > [INFO]   Apache Felix UPnP: Root POM
> > > > > [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >
> > > > > [INFO] Building Apache Felix UPnP Extra
> > > > > [INFO]    task-segment: [install]
> > > > > [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >
> > > > > [INFO] [resources:resources {execution: default-resources}]
> > > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > > [INFO] skip non existing resourceDirectory
> > > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
> > > > >
> > > > > [INFO] Copying 2 resources to META-INF
> > > > > [INFO] [compiler:compile {execution: default-compile}]
> > > > > [INFO] Nothing to compile - all classes are up to date
> > > > >
> > > > > [INFO] [resources:testResources {execution: default-testResources}]
> > > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > > [INFO] skip non existing resourceDirectory
> > > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
> > > > >
> > > > > [INFO] [compiler:testCompile {execution: default-testCompile}]
> > > > > [INFO] No sources to compile
> > > > > [INFO] [surefire:test {execution: default-test}]
> > > > > [INFO] No tests to run.
> > > > > [INFO] [bundle:bundle {execution: default-bundle}]
> > > > > [WARNING] Warning building bundle
> > > > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> :
> > > > > Instructions in Private-Package, or -testpackages that are never
> > used:
> > > > > org\.apache\.xerces\.impl\.dv\.util
> > > > > [INFO] [install:install {execution: default-install}]
> > > > > [INFO] Installing
> > > > >
> > > >
> > >
> >
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > > to
> > > > >
> > > >
> > >
> >
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > >
> > > > > [INFO] [bundle:install {execution: default-install}]
> > > > > [WARNING] Exception while updating local OBR: Unable to read
> > repository
> > > > > xml: file:/home/nxuser/.m2/repository/repository.xml
> > > > > org.apache.maven.plugin.MojoExecutionException: Unable to read
> > > repository
> > > > > xml: file:/home/nxuser/.m2/repository/repository.xml
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
> > > > >     at
> > > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
> > > > >
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > > >     at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > > >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > > >     at
> > > > >
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > > >     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > >     at
> > > > >
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > > Caused by: java.lang.Exception: Error while parsing resource
> > > > > org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column
> 156
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
> > > > >     ... 20 more
> > > > > Caused by: java.lang.IllegalArgumentException
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
> > > > >     ... 25 more
> > > > > Caused by: org.osgi.framework.InvalidSyntaxException: Invalid
> > operator:
> > > > > <2.0.0))
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
> > > > >     at
> > > > >
> > >
> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
> > > > >     at
> > > > >
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
> > > > >     ... 27 more
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gnodet@gmail.com
> >
> > > > wrote:
> > > > >
> > > > >> Can you try building only the upnp subproject ?
> > > > >> I suspect a problem with maven mixing the versions of
> > bundlerepository
> > > > to
> > > > >> use.
> > > > >>
> > > > >> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <
> > pierre.derop@gmail.com>
> > > > >> wrote:
> > > > >>
> > > > >> > I just type "ant".
> > > > >> > Is this the correct way to compile the whole trunk ?
> > > > >> >
> > > > >> > /pierre
> > > > >> >
> > > > >> >
> > > > >> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <
> > gnodet@gmail.com
> > > >
> > > > >> > wrote:
> > > > >> >
> > > > >> > > Btw, what command do you use the build the whole trunk ?
> > > > >> > >
> > > > >> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
> > > > pierre.derop@gmail.com>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Hello Guillaume;
> > > > >> > > >
> > > > >> > > > Just to confirm what Sahoo said: I also can't build the
> trunk,
> > > and
> > > > >> get
> > > > >> > > the
> > > > >> > > > same error: java.lang.NoClassDefFoundError:
> > > > >> > > > org/apache/felix/bundlerepository/Requirement ...
> > > > >> > > >
> > > > >> > > > (I am using maven 2.2.1)
> > > > >> > > > /pierre
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
> > > > gnodet@gmail.com>
> > > > >> > > wrote:
> > > > >> > > >
> > > > >> > > > > I don't see this error.
> > > > >> > > > > Which version of maven do you use ? I use 2.2.0 and it
> seems
> > > to
> > > > >> work
> > > > >> > > for
> > > > >> > > > > me.
> > > > >> > > > >
> > > > >> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com>
> wrote:
> > > > >> > > > >
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > > > >> > > > > >    [exec] [INFO]    task-segment: [clean, install]
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >    [exec] [INFO] [clean:clean {execution:
> default-clean}]
> > > > >> > > > > >    [exec] [INFO] Deleting directory
> > > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > > > >> > > > > >    [exec] [INFO] [resources:resources {execution:
> > > > >> > default-resources}]
> > > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > > > >> resources.
> > > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > >> > > > > >
> > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > > > >> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> > > > >> > > > > >    [exec] [INFO] [compiler:compile {execution:
> > > > default-compile}]
> > > > >> > > > > >    [exec] [INFO] Compiling 3 source files to
> > > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > > > >> > > > > >    [exec] [INFO] [resources:testResources {execution:
> > > > >> > > > > > default-testResources}]
> > > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > > > >> resources.
> > > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > >> > > > > >
> > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > > > >> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> > > > >> > > > default-testCompile}]
> > > > >> > > > > >    [exec] [INFO] No sources to compile
> > > > >> > > > > >    [exec] [INFO] [surefire:test {execution:
> default-test}]
> > > > >> > > > > >    [exec] [INFO] No tests to run.
> > > > >> > > > > >    [exec] [INFO] [bundle:bundle {execution:
> > default-bundle}]
> > > > >> > > > > >    [exec] [WARNING] Warning building bundle
> > > > >> > > > > >
> > > > >> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> > > > >> > :
> > > > >> > > > > > Instructions in Private-Package, or -testpackages that
> are
> > > > never
> > > > >> > > used:
> > > > >> > > > > > org\.apache\.xerces\.impl\.dv\.util
> > > > >> > > > > >    [exec] [INFO] [install:install {execution:
> > > > default-install}]
> > > > >> > > > > >    [exec] [INFO] Installing
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > >> > > > > > to
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > >> > > > > >    [exec] [INFO] [bundle:install {execution:
> > > default-install}]
> > > > >> > > > > >    [exec] [FATAL ERROR]
> > > > >> > > org.apache.felix.obrplugin.ObrInstall#execute()
> > > > >> > > > > > caused a linkage error (java.lang.NoClassDefFoundError)
> > and
> > > > may
> > > > >> be
> > > > >> > > > > > out-of-date. Check the realms:
> > > > >> > > > > >    [exec] [FATAL ERROR] Plugin realm =
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > > >>
> > > >
> > app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > > > >> > > > > >    [exec] urls[0] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > > > >> > > > > >    [exec] urls[1] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > > > >> > > > > >    [exec] urls[2] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > > > >> > > > > >    [exec] urls[3] =
> > > > >> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > > >> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > > > >> > > > > >    [exec] urls[4] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > > > >> > > > > >    [exec] urls[5] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > > > >> > > > > >    [exec] urls[6] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > > > >> > > > > >    [exec] urls[7] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > > > >> > > > > >    [exec] urls[8] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > > > >> > > > > >    [exec] urls[9] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > > > >> > > > > >    [exec] urls[10] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > > > >> > > > > >    [exec] urls[11] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > > > >> > > > > >    [exec] urls[12] =
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > > > >> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > > > >> > > > > >    [exec] urls[0] =
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > > >>
> > > >
> > file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >    [exec] [ERROR] FATAL ERROR
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >    [exec] [INFO]
> > > org/apache/felix/bundlerepository/Requirement
> > > > >> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >    [exec] [INFO] Trace
> > > > >> > > > > >    [exec] java.lang.NoClassDefFoundError:
> > > > >> > > > > > org/apache/felix/bundlerepository/Requirement
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > > >> > > > > >    [exec]     at
> > > > >> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > >
> > > > >>
> > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > > >> > > > > >    [exec]     at
> > > > >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > >> > > > > > Method)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > >> > > > > >    [exec]     at
> > > > >> java.lang.reflect.Method.invoke(Method.java:597)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >>
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> >
> > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > >> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > > >> > > > > > org.apache.felix.bundlerepository.Requirement
> > > > >> > > > > >    [exec]     at
> > > > >> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > > >> > > > > >    [exec]     at
> > > > >> java.security.AccessController.doPrivileged(Native
> > > > >> > > > > Method)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > > >> > > > > >    [exec]     at
> > > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > > > >> > > > > >    [exec]     at
> > > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > > >> > > > > >    [exec]     at
> > > > >> > > > > >
> > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > > >> > > > > >    [exec]     ... 20 more
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > > > >> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST
> 2010
> > > > >> > > > > >    [exec] [INFO] Final Memory: 94M/141M
> > > > >> > > > > >    [exec] [INFO]
> > > > >> > > > > >
> > > > >> > > >
> > > > >> >
> > > >
> > ------------------------------------------------------------------------
> > > > >> > > > > >
> > > > >> > > > > > BUILD FAILED
> > > > >> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec
> > returned:
> > > 1
> > > > >> > > > > >
> > > > >> > > > > > I am at svn rev#927284. One may ask why I am building
> > > > everything
> > > > >> in
> > > > >> > > > > trunk,
> > > > >> > > > > > well I typically build everything at the top level,
> > because
> > > I
> > > > >> hate
> > > > >> > to
> > > > >> > > > > build
> > > > >> > > > > > each module separately when I have to build four or five
> > > > >> modules.
> > > > >> > In
> > > > >> > > > any
> > > > >> > > > > > case, there is no justification for build failures.
> > > > >> > > > > >
> > > > >> > > > > > Thanks,
> > > > >> > > > > > Sahoo
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > --
> > > > >> > > > > Cheers,
> > > > >> > > > > Guillaume Nodet
> > > > >> > > > > ------------------------
> > > > >> > > > > Blog: http://gnodet.blogspot.com/
> > > > >> > > > > ------------------------
> > > > >> > > > > Open Source SOA
> > > > >> > > > > http://fusesource.com
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> > > --
> > > > >> > > Cheers,
> > > > >> > > Guillaume Nodet
> > > > >> > > ------------------------
> > > > >> > > Blog: http://gnodet.blogspot.com/
> > > > >> > > ------------------------
> > > > >> > > Open Source SOA
> > > > >> > > http://fusesource.com
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> Cheers,
> > > > >> Guillaume Nodet
> > > > >> ------------------------
> > > > >> Blog: http://gnodet.blogspot.com/
> > > > >> ------------------------
> > > > >> Open Source SOA
> > > > >> http://fusesource.com
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > > ------------------------
> > > Blog: http://gnodet.blogspot.com/
> > > ------------------------
> > > Open Source SOA
> > > http://fusesource.com
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>



-- 
Cheers, Stuart

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
I think the problems comes from the fact that bundlerepository and
bundleplugin have a cyclic dependency.
I'll try to remove this cyclic dep by extracting the model to utils (which
could be later merged with the one from trunk).

On Thu, Mar 25, 2010 at 23:28, Pierre De Rop <pi...@gmail.com> wrote:

> Guillaume,
>
> Ok, indeed, it works if I manually do the following:
>
> 1) build utils
> 2) build bundlerepository
> 3) build bundleplugin
> 4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle install"
>
> However, with your last commit, if I type directly "mvn
> -Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
> exception:
>
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org/apache/felix/bundlerepository/Requirement
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError:
> org/apache/felix/bundlerepository/Requirement
>         at
> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>         at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>        at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>        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:592)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
>
>
> One additional thing to notice is that if I type "mvn -Dpackaging=plugins
> install", I then get this error:
>
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The projects in the reactor contain a cyclic reference: Edge between
> 'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}' and
> 'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to cycle
> in the graph org.apache.felix:maven-bundle-plugin -->
> org.apache.felix:org.apache.felix.bundlerepository -->
> org.apache.felix:maven-bundle-plugin
>
>
>
> Did I miss something ?
>
>
>
> On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com> wrote:
>
> > That one works for me.  Make sure you svn up.  The root pom may be
> missing
> > the utils subproject too and you actually need a freshly build copy of
> it,
> > so try building it manually first.  I'll try to add it to the build in
> the
> > meantime.
> >
> > On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
> > wrote:
> >
> > > Guillaume,
> > >
> > > The issue reported by Sahoo also takes place when just typing:
> > >
> > >    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
> > >
> > > (it's quicker than when typing "ant")
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <pierre.derop@gmail.com
> > > >wrote:
> > >
> > > > Indeed, I get some exceptions while building the upnp subproject:
> > > >
> > > > [INFO] Scanning for projects...
> > > > [INFO] Reactor build order:
> > > > [INFO]   Apache Felix UPnP Extra
> > > > [INFO]   Apache Felix UPnP Base Driver
> > > > [INFO]   Apache Felix UPnP Tester
> > > > [INFO]   Apache Felix UPnP Sample Binary-Light
> > > > [INFO]   Apache Felix UPnP Sample Clock
> > > > [INFO]   Apache Felix UPnP Sample TV
> > > > [INFO]   Apache Felix UPnP Examples: Build
> > > > [INFO]   Apache Felix UPnP: Root POM
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > [INFO] Building Apache Felix UPnP Extra
> > > > [INFO]    task-segment: [install]
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > [INFO] [resources:resources {execution: default-resources}]
> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > [INFO] skip non existing resourceDirectory
> > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
> > > >
> > > > [INFO] Copying 2 resources to META-INF
> > > > [INFO] [compiler:compile {execution: default-compile}]
> > > > [INFO] Nothing to compile - all classes are up to date
> > > >
> > > > [INFO] [resources:testResources {execution: default-testResources}]
> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > [INFO] skip non existing resourceDirectory
> > > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
> > > >
> > > > [INFO] [compiler:testCompile {execution: default-testCompile}]
> > > > [INFO] No sources to compile
> > > > [INFO] [surefire:test {execution: default-test}]
> > > > [INFO] No tests to run.
> > > > [INFO] [bundle:bundle {execution: default-bundle}]
> > > > [WARNING] Warning building bundle
> > > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> > > > Instructions in Private-Package, or -testpackages that are never
> used:
> > > > org\.apache\.xerces\.impl\.dv\.util
> > > > [INFO] [install:install {execution: default-install}]
> > > > [INFO] Installing
> > > >
> > >
> >
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > to
> > > >
> > >
> >
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > >
> > > > [INFO] [bundle:install {execution: default-install}]
> > > > [WARNING] Exception while updating local OBR: Unable to read
> repository
> > > > xml: file:/home/nxuser/.m2/repository/repository.xml
> > > > org.apache.maven.plugin.MojoExecutionException: Unable to read
> > repository
> > > > xml: file:/home/nxuser/.m2/repository/repository.xml
> > > >     at
> > > >
> > >
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
> > > >     at
> > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
> > > >
> > > >     at
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > >     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > >     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > >     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > >     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > >     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > >     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > >     at
> > > >
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > >     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > >     at
> > > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > Caused by: java.lang.Exception: Error while parsing resource
> > > > org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column 156
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
> > > >     ... 20 more
> > > > Caused by: java.lang.IllegalArgumentException
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
> > > >     ... 25 more
> > > > Caused by: org.osgi.framework.InvalidSyntaxException: Invalid
> operator:
> > > > <2.0.0))
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
> > > >     at
> > > >
> > org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
> > > >     at
> > > >
> > >
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
> > > >     ... 27 more
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com>
> > > wrote:
> > > >
> > > >> Can you try building only the upnp subproject ?
> > > >> I suspect a problem with maven mixing the versions of
> bundlerepository
> > > to
> > > >> use.
> > > >>
> > > >> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <
> pierre.derop@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > I just type "ant".
> > > >> > Is this the correct way to compile the whole trunk ?
> > > >> >
> > > >> > /pierre
> > > >> >
> > > >> >
> > > >> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <
> gnodet@gmail.com
> > >
> > > >> > wrote:
> > > >> >
> > > >> > > Btw, what command do you use the build the whole trunk ?
> > > >> > >
> > > >> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
> > > pierre.derop@gmail.com>
> > > >> > > wrote:
> > > >> > >
> > > >> > > > Hello Guillaume;
> > > >> > > >
> > > >> > > > Just to confirm what Sahoo said: I also can't build the trunk,
> > and
> > > >> get
> > > >> > > the
> > > >> > > > same error: java.lang.NoClassDefFoundError:
> > > >> > > > org/apache/felix/bundlerepository/Requirement ...
> > > >> > > >
> > > >> > > > (I am using maven 2.2.1)
> > > >> > > > /pierre
> > > >> > > >
> > > >> > > >
> > > >> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
> > > gnodet@gmail.com>
> > > >> > > wrote:
> > > >> > > >
> > > >> > > > > I don't see this error.
> > > >> > > > > Which version of maven do you use ? I use 2.2.0 and it seems
> > to
> > > >> work
> > > >> > > for
> > > >> > > > > me.
> > > >> > > > >
> > > >> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> > > >> > > > >
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > > >> > > > > >    [exec] [INFO]    task-segment: [clean, install]
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > > >> > > > > >    [exec] [INFO] Deleting directory
> > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > > >> > > > > >    [exec] [INFO] [resources:resources {execution:
> > > >> > default-resources}]
> > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > > >> resources.
> > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > >> > > > > >
> /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > > >> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> > > >> > > > > >    [exec] [INFO] [compiler:compile {execution:
> > > default-compile}]
> > > >> > > > > >    [exec] [INFO] Compiling 3 source files to
> > > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > > >> > > > > >    [exec] [INFO] [resources:testResources {execution:
> > > >> > > > > > default-testResources}]
> > > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > > >> resources.
> > > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > >> > > > > >
> /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > > >> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> > > >> > > > default-testCompile}]
> > > >> > > > > >    [exec] [INFO] No sources to compile
> > > >> > > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > > >> > > > > >    [exec] [INFO] No tests to run.
> > > >> > > > > >    [exec] [INFO] [bundle:bundle {execution:
> default-bundle}]
> > > >> > > > > >    [exec] [WARNING] Warning building bundle
> > > >> > > > > >
> > > >> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> > > >> > :
> > > >> > > > > > Instructions in Private-Package, or -testpackages that are
> > > never
> > > >> > > used:
> > > >> > > > > > org\.apache\.xerces\.impl\.dv\.util
> > > >> > > > > >    [exec] [INFO] [install:install {execution:
> > > default-install}]
> > > >> > > > > >    [exec] [INFO] Installing
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > >> > > > > > to
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > >> > > > > >    [exec] [INFO] [bundle:install {execution:
> > default-install}]
> > > >> > > > > >    [exec] [FATAL ERROR]
> > > >> > > org.apache.felix.obrplugin.ObrInstall#execute()
> > > >> > > > > > caused a linkage error (java.lang.NoClassDefFoundError)
> and
> > > may
> > > >> be
> > > >> > > > > > out-of-date. Check the realms:
> > > >> > > > > >    [exec] [FATAL ERROR] Plugin realm =
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > > >>
> > >
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > > >> > > > > >    [exec] urls[0] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > > >> > > > > >    [exec] urls[1] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > > >> > > > > >    [exec] urls[2] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > > >> > > > > >    [exec] urls[3] =
> > > >> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > >> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > > >> > > > > >    [exec] urls[4] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > > >> > > > > >    [exec] urls[5] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > > >> > > > > >    [exec] urls[6] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > > >> > > > > >    [exec] urls[7] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > > >> > > > > >    [exec] urls[8] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > > >> > > > > >    [exec] urls[9] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > > >> > > > > >    [exec] urls[10] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > > >> > > > > >    [exec] urls[11] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > > >> > > > > >    [exec] urls[12] =
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > > >> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > > >> > > > > >    [exec] urls[0] =
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > > >>
> > >
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >    [exec] [ERROR] FATAL ERROR
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >    [exec] [INFO]
> > org/apache/felix/bundlerepository/Requirement
> > > >> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >    [exec] [INFO] Trace
> > > >> > > > > >    [exec] java.lang.NoClassDefFoundError:
> > > >> > > > > > org/apache/felix/bundlerepository/Requirement
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > >> > > > > >    [exec]     at
> > > >> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > >
> > > >>
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > >> > > > > >    [exec]     at
> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > >> > > > > > Method)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > >> > > > > >    [exec]     at
> > > >> java.lang.reflect.Method.invoke(Method.java:597)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> >
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > >> > > > > >    [exec]     at
> > > >> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > >> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > >> > > > > > org.apache.felix.bundlerepository.Requirement
> > > >> > > > > >    [exec]     at
> > > >> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > >> > > > > >    [exec]     at
> > > >> java.security.AccessController.doPrivileged(Native
> > > >> > > > > Method)
> > > >> > > > > >    [exec]     at
> > > >> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > >> > > > > >    [exec]     at
> > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > > >> > > > > >    [exec]     at
> > > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > >> > > > > >    [exec]     at
> > > >> > > > > >
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > >> > > > > >    [exec]     ... 20 more
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > > >> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > > >> > > > > >    [exec] [INFO] Final Memory: 94M/141M
> > > >> > > > > >    [exec] [INFO]
> > > >> > > > > >
> > > >> > > >
> > > >> >
> > >
> ------------------------------------------------------------------------
> > > >> > > > > >
> > > >> > > > > > BUILD FAILED
> > > >> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec
> returned:
> > 1
> > > >> > > > > >
> > > >> > > > > > I am at svn rev#927284. One may ask why I am building
> > > everything
> > > >> in
> > > >> > > > > trunk,
> > > >> > > > > > well I typically build everything at the top level,
> because
> > I
> > > >> hate
> > > >> > to
> > > >> > > > > build
> > > >> > > > > > each module separately when I have to build four or five
> > > >> modules.
> > > >> > In
> > > >> > > > any
> > > >> > > > > > case, there is no justification for build failures.
> > > >> > > > > >
> > > >> > > > > > Thanks,
> > > >> > > > > > Sahoo
> > > >> > > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > --
> > > >> > > > > Cheers,
> > > >> > > > > Guillaume Nodet
> > > >> > > > > ------------------------
> > > >> > > > > Blog: http://gnodet.blogspot.com/
> > > >> > > > > ------------------------
> > > >> > > > > Open Source SOA
> > > >> > > > > http://fusesource.com
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > --
> > > >> > > Cheers,
> > > >> > > Guillaume Nodet
> > > >> > > ------------------------
> > > >> > > Blog: http://gnodet.blogspot.com/
> > > >> > > ------------------------
> > > >> > > Open Source SOA
> > > >> > > http://fusesource.com
> > > >> > >
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Cheers,
> > > >> Guillaume Nodet
> > > >> ------------------------
> > > >> Blog: http://gnodet.blogspot.com/
> > > >> ------------------------
> > > >> Open Source SOA
> > > >> http://fusesource.com
> > > >>
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Pierre De Rop <pi...@gmail.com>.
Guillaume,

Ok, indeed, it works if I manually do the following:

1) build utils
2) build bundlerepository
3) build bundleplugin
4) and then type "mvn -Dmaven.test.skip=true -Dpackaging=bundle install"

However, with your last commit, if I type directly "mvn
-Dmaven.test.skip=true -Dpackaging=bundle install", I still get this
exception:

[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org/apache/felix/bundlerepository/Requirement
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError:
org/apache/felix/bundlerepository/Requirement
        at
org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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:592)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)



One additional thing to notice is that if I type "mvn -Dpackaging=plugins
install", I then get this error:

[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between
'Vertex{label='org.apache.felix:org.apache.felix.bundlerepository'}' and
'Vertex{label='org.apache.felix:maven-bundle-plugin'}' introduces to cycle
in the graph org.apache.felix:maven-bundle-plugin -->
org.apache.felix:org.apache.felix.bundlerepository -->
org.apache.felix:maven-bundle-plugin



Did I miss something ?



On Thu, Mar 25, 2010 at 3:28 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> That one works for me.  Make sure you svn up.  The root pom may be missing
> the utils subproject too and you actually need a freshly build copy of it,
> so try building it manually first.  I'll try to add it to the build in the
> meantime.
>
> On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com>
> wrote:
>
> > Guillaume,
> >
> > The issue reported by Sahoo also takes place when just typing:
> >
> >    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
> >
> > (it's quicker than when typing "ant")
> >
> >
> >
> >
> >
> >
> > On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <pierre.derop@gmail.com
> > >wrote:
> >
> > > Indeed, I get some exceptions while building the upnp subproject:
> > >
> > > [INFO] Scanning for projects...
> > > [INFO] Reactor build order:
> > > [INFO]   Apache Felix UPnP Extra
> > > [INFO]   Apache Felix UPnP Base Driver
> > > [INFO]   Apache Felix UPnP Tester
> > > [INFO]   Apache Felix UPnP Sample Binary-Light
> > > [INFO]   Apache Felix UPnP Sample Clock
> > > [INFO]   Apache Felix UPnP Sample TV
> > > [INFO]   Apache Felix UPnP Examples: Build
> > > [INFO]   Apache Felix UPnP: Root POM
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] Building Apache Felix UPnP Extra
> > > [INFO]    task-segment: [install]
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] [resources:resources {execution: default-resources}]
> > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > [INFO] skip non existing resourceDirectory
> > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
> > >
> > > [INFO] Copying 2 resources to META-INF
> > > [INFO] [compiler:compile {execution: default-compile}]
> > > [INFO] Nothing to compile - all classes are up to date
> > >
> > > [INFO] [resources:testResources {execution: default-testResources}]
> > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > [INFO] skip non existing resourceDirectory
> > > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
> > >
> > > [INFO] [compiler:testCompile {execution: default-testCompile}]
> > > [INFO] No sources to compile
> > > [INFO] [surefire:test {execution: default-test}]
> > > [INFO] No tests to run.
> > > [INFO] [bundle:bundle {execution: default-bundle}]
> > > [WARNING] Warning building bundle
> > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> > > Instructions in Private-Package, or -testpackages that are never used:
> > > org\.apache\.xerces\.impl\.dv\.util
> > > [INFO] [install:install {execution: default-install}]
> > > [INFO] Installing
> > >
> >
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > to
> > >
> >
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > >
> > > [INFO] [bundle:install {execution: default-install}]
> > > [WARNING] Exception while updating local OBR: Unable to read repository
> > > xml: file:/home/nxuser/.m2/repository/repository.xml
> > > org.apache.maven.plugin.MojoExecutionException: Unable to read
> repository
> > > xml: file:/home/nxuser/.m2/repository/repository.xml
> > >     at
> > >
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
> > >     at
> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
> > >
> > >     at
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > >     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > >     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > >     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > >     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > >     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > >     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > >     at
> > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > >     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >     at
> > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > Caused by: java.lang.Exception: Error while parsing resource
> > > org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column 156
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
> > >     at
> > >
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
> > >     ... 20 more
> > > Caused by: java.lang.IllegalArgumentException
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
> > >     ... 25 more
> > > Caused by: org.osgi.framework.InvalidSyntaxException: Invalid operator:
> > > <2.0.0))
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> > >     at
> > >
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
> > >     at
> > >
> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
> > >     at
> > >
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
> > >     ... 27 more
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com>
> > wrote:
> > >
> > >> Can you try building only the upnp subproject ?
> > >> I suspect a problem with maven mixing the versions of bundlerepository
> > to
> > >> use.
> > >>
> > >> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <pi...@gmail.com>
> > >> wrote:
> > >>
> > >> > I just type "ant".
> > >> > Is this the correct way to compile the whole trunk ?
> > >> >
> > >> > /pierre
> > >> >
> > >> >
> > >> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gnodet@gmail.com
> >
> > >> > wrote:
> > >> >
> > >> > > Btw, what command do you use the build the whole trunk ?
> > >> > >
> > >> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
> > pierre.derop@gmail.com>
> > >> > > wrote:
> > >> > >
> > >> > > > Hello Guillaume;
> > >> > > >
> > >> > > > Just to confirm what Sahoo said: I also can't build the trunk,
> and
> > >> get
> > >> > > the
> > >> > > > same error: java.lang.NoClassDefFoundError:
> > >> > > > org/apache/felix/bundlerepository/Requirement ...
> > >> > > >
> > >> > > > (I am using maven 2.2.1)
> > >> > > > /pierre
> > >> > > >
> > >> > > >
> > >> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
> > gnodet@gmail.com>
> > >> > > wrote:
> > >> > > >
> > >> > > > > I don't see this error.
> > >> > > > > Which version of maven do you use ? I use 2.2.0 and it seems
> to
> > >> work
> > >> > > for
> > >> > > > > me.
> > >> > > > >
> > >> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> > >> > > > >
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > >> > > > > >    [exec] [INFO]    task-segment: [clean, install]
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > >> > > > > >    [exec] [INFO] Deleting directory
> > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > >> > > > > >    [exec] [INFO] [resources:resources {execution:
> > >> > default-resources}]
> > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > >> resources.
> > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > >> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> > >> > > > > >    [exec] [INFO] [compiler:compile {execution:
> > default-compile}]
> > >> > > > > >    [exec] [INFO] Compiling 3 source files to
> > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > >> > > > > >    [exec] [INFO] [resources:testResources {execution:
> > >> > > > > > default-testResources}]
> > >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > >> resources.
> > >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > >> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> > >> > > > default-testCompile}]
> > >> > > > > >    [exec] [INFO] No sources to compile
> > >> > > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > >> > > > > >    [exec] [INFO] No tests to run.
> > >> > > > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> > >> > > > > >    [exec] [WARNING] Warning building bundle
> > >> > > > > >
> > >> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> > >> > :
> > >> > > > > > Instructions in Private-Package, or -testpackages that are
> > never
> > >> > > used:
> > >> > > > > > org\.apache\.xerces\.impl\.dv\.util
> > >> > > > > >    [exec] [INFO] [install:install {execution:
> > default-install}]
> > >> > > > > >    [exec] [INFO] Installing
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > >> > > > > > to
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > >> > > > > >    [exec] [INFO] [bundle:install {execution:
> default-install}]
> > >> > > > > >    [exec] [FATAL ERROR]
> > >> > > org.apache.felix.obrplugin.ObrInstall#execute()
> > >> > > > > > caused a linkage error (java.lang.NoClassDefFoundError) and
> > may
> > >> be
> > >> > > > > > out-of-date. Check the realms:
> > >> > > > > >    [exec] [FATAL ERROR] Plugin realm =
> > >> > > > > >
> > >> > > >
> > >> >
> > >>
> > app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > >> > > > > >    [exec] urls[0] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > >> > > > > >    [exec] urls[1] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > >> > > > > >    [exec] urls[2] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > >> > > > > >    [exec] urls[3] =
> > >> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > >> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > >> > > > > >    [exec] urls[4] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > >> > > > > >    [exec] urls[5] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > >> > > > > >    [exec] urls[6] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > >> > > > > >    [exec] urls[7] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > >> > > > > >    [exec] urls[8] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > >> > > > > >    [exec] urls[9] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > >> > > > > >    [exec] urls[10] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > >> > > > > >    [exec] urls[11] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > >> > > > > >    [exec] urls[12] =
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > >> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > >> > > > > >    [exec] urls[0] =
> > >> > > > > >
> > >> > > >
> > >> >
> > >>
> > file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >    [exec] [ERROR] FATAL ERROR
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >    [exec] [INFO]
> org/apache/felix/bundlerepository/Requirement
> > >> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >    [exec] [INFO] Trace
> > >> > > > > >    [exec] java.lang.NoClassDefFoundError:
> > >> > > > > > org/apache/felix/bundlerepository/Requirement
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > >> > > > > >    [exec]     at
> > >> > > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > >> > > > > >    [exec]     at
> > >> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > >
> > >>
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > >> > > > > >    [exec]     at
> > >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > >> > > > > > Method)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >> > > > > >    [exec]     at
> > >> java.lang.reflect.Method.invoke(Method.java:597)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >> > > > > >    [exec]     at
> > >> > > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> >
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >> > > > > >    [exec]     at
> > >> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > >> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > >> > > > > > org.apache.felix.bundlerepository.Requirement
> > >> > > > > >    [exec]     at
> > >> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > >> > > > > >    [exec]     at
> > >> java.security.AccessController.doPrivileged(Native
> > >> > > > > Method)
> > >> > > > > >    [exec]     at
> > >> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >> > > > > >    [exec]     at
> > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > >> > > > > >    [exec]     at
> > >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > >> > > > > >    [exec]     at
> > >> > > > > >
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > >> > > > > >    [exec]     ... 20 more
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > >> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > >> > > > > >    [exec] [INFO] Final Memory: 94M/141M
> > >> > > > > >    [exec] [INFO]
> > >> > > > > >
> > >> > > >
> > >> >
> > ------------------------------------------------------------------------
> > >> > > > > >
> > >> > > > > > BUILD FAILED
> > >> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned:
> 1
> > >> > > > > >
> > >> > > > > > I am at svn rev#927284. One may ask why I am building
> > everything
> > >> in
> > >> > > > > trunk,
> > >> > > > > > well I typically build everything at the top level, because
> I
> > >> hate
> > >> > to
> > >> > > > > build
> > >> > > > > > each module separately when I have to build four or five
> > >> modules.
> > >> > In
> > >> > > > any
> > >> > > > > > case, there is no justification for build failures.
> > >> > > > > >
> > >> > > > > > Thanks,
> > >> > > > > > Sahoo
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > > --
> > >> > > > > Cheers,
> > >> > > > > Guillaume Nodet
> > >> > > > > ------------------------
> > >> > > > > Blog: http://gnodet.blogspot.com/
> > >> > > > > ------------------------
> > >> > > > > Open Source SOA
> > >> > > > > http://fusesource.com
> > >> > > > >
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> > > --
> > >> > > Cheers,
> > >> > > Guillaume Nodet
> > >> > > ------------------------
> > >> > > Blog: http://gnodet.blogspot.com/
> > >> > > ------------------------
> > >> > > Open Source SOA
> > >> > > http://fusesource.com
> > >> > >
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Cheers,
> > >> Guillaume Nodet
> > >> ------------------------
> > >> Blog: http://gnodet.blogspot.com/
> > >> ------------------------
> > >> Open Source SOA
> > >> http://fusesource.com
> > >>
> > >
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
That one works for me.  Make sure you svn up.  The root pom may be missing
the utils subproject too and you actually need a freshly build copy of it,
so try building it manually first.  I'll try to add it to the build in the
meantime.

On Thu, Mar 25, 2010 at 14:19, Pierre De Rop <pi...@gmail.com> wrote:

> Guillaume,
>
> The issue reported by Sahoo also takes place when just typing:
>
>    mvn -Dmaven.test.skip=true -Dpackaging=bundle install
>
> (it's quicker than when typing "ant")
>
>
>
>
>
>
> On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <pierre.derop@gmail.com
> >wrote:
>
> > Indeed, I get some exceptions while building the upnp subproject:
> >
> > [INFO] Scanning for projects...
> > [INFO] Reactor build order:
> > [INFO]   Apache Felix UPnP Extra
> > [INFO]   Apache Felix UPnP Base Driver
> > [INFO]   Apache Felix UPnP Tester
> > [INFO]   Apache Felix UPnP Sample Binary-Light
> > [INFO]   Apache Felix UPnP Sample Clock
> > [INFO]   Apache Felix UPnP Sample TV
> > [INFO]   Apache Felix UPnP Examples: Build
> > [INFO]   Apache Felix UPnP: Root POM
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Building Apache Felix UPnP Extra
> > [INFO]    task-segment: [install]
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] [resources:resources {execution: default-resources}]
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] skip non existing resourceDirectory
> > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
> >
> > [INFO] Copying 2 resources to META-INF
> > [INFO] [compiler:compile {execution: default-compile}]
> > [INFO] Nothing to compile - all classes are up to date
> >
> > [INFO] [resources:testResources {execution: default-testResources}]
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] skip non existing resourceDirectory
> > /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
> >
> > [INFO] [compiler:testCompile {execution: default-testCompile}]
> > [INFO] No sources to compile
> > [INFO] [surefire:test {execution: default-test}]
> > [INFO] No tests to run.
> > [INFO] [bundle:bundle {execution: default-bundle}]
> > [WARNING] Warning building bundle
> > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> > Instructions in Private-Package, or -testpackages that are never used:
> > org\.apache\.xerces\.impl\.dv\.util
> > [INFO] [install:install {execution: default-install}]
> > [INFO] Installing
> >
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > to
> >
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >
> > [INFO] [bundle:install {execution: default-install}]
> > [WARNING] Exception while updating local OBR: Unable to read repository
> > xml: file:/home/nxuser/.m2/repository/repository.xml
> > org.apache.maven.plugin.MojoExecutionException: Unable to read repository
> > xml: file:/home/nxuser/.m2/repository/repository.xml
> >     at
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
> >     at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
> >
> >     at
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >     at
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >     at
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: java.lang.Exception: Error while parsing resource
> > org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column 156
> >     at
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
> >     at
> >
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
> >     at
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
> >     at
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
> >     at
> >
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
> >     at
> >
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
> >     ... 20 more
> > Caused by: java.lang.IllegalArgumentException
> >     at
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
> >     at
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
> >     at
> >
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
> >     ... 25 more
> > Caused by: org.osgi.framework.InvalidSyntaxException: Invalid operator:
> > <2.0.0))
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
> >     at
> >
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
> >     at
> > org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
> >     at
> >
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
> >     ... 27 more
> >
> >
> >
> >
> >
> > On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com>
> wrote:
> >
> >> Can you try building only the upnp subproject ?
> >> I suspect a problem with maven mixing the versions of bundlerepository
> to
> >> use.
> >>
> >> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <pi...@gmail.com>
> >> wrote:
> >>
> >> > I just type "ant".
> >> > Is this the correct way to compile the whole trunk ?
> >> >
> >> > /pierre
> >> >
> >> >
> >> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gn...@gmail.com>
> >> > wrote:
> >> >
> >> > > Btw, what command do you use the build the whole trunk ?
> >> > >
> >> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <
> pierre.derop@gmail.com>
> >> > > wrote:
> >> > >
> >> > > > Hello Guillaume;
> >> > > >
> >> > > > Just to confirm what Sahoo said: I also can't build the trunk, and
> >> get
> >> > > the
> >> > > > same error: java.lang.NoClassDefFoundError:
> >> > > > org/apache/felix/bundlerepository/Requirement ...
> >> > > >
> >> > > > (I am using maven 2.2.1)
> >> > > > /pierre
> >> > > >
> >> > > >
> >> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <
> gnodet@gmail.com>
> >> > > wrote:
> >> > > >
> >> > > > > I don't see this error.
> >> > > > > Which version of maven do you use ? I use 2.2.0 and it seems to
> >> work
> >> > > for
> >> > > > > me.
> >> > > > >
> >> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> >> > > > >
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> >> > > > > >    [exec] [INFO]    task-segment: [clean, install]
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> >> > > > > >    [exec] [INFO] Deleting directory
> >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> >> > > > > >    [exec] [INFO] [resources:resources {execution:
> >> > default-resources}]
> >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> >> resources.
> >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> >> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> >> > > > > >    [exec] [INFO] [compiler:compile {execution:
> default-compile}]
> >> > > > > >    [exec] [INFO] Compiling 3 source files to
> >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> >> > > > > >    [exec] [INFO] [resources:testResources {execution:
> >> > > > > > default-testResources}]
> >> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> >> resources.
> >> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> >> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> >> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> >> > > > default-testCompile}]
> >> > > > > >    [exec] [INFO] No sources to compile
> >> > > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> >> > > > > >    [exec] [INFO] No tests to run.
> >> > > > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> >> > > > > >    [exec] [WARNING] Warning building bundle
> >> > > > > >
> >> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> >> > :
> >> > > > > > Instructions in Private-Package, or -testpackages that are
> never
> >> > > used:
> >> > > > > > org\.apache\.xerces\.impl\.dv\.util
> >> > > > > >    [exec] [INFO] [install:install {execution:
> default-install}]
> >> > > > > >    [exec] [INFO] Installing
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >> > > > > > to
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >> > > > > >    [exec] [INFO] [bundle:install {execution: default-install}]
> >> > > > > >    [exec] [FATAL ERROR]
> >> > > org.apache.felix.obrplugin.ObrInstall#execute()
> >> > > > > > caused a linkage error (java.lang.NoClassDefFoundError) and
> may
> >> be
> >> > > > > > out-of-date. Check the realms:
> >> > > > > >    [exec] [FATAL ERROR] Plugin realm =
> >> > > > > >
> >> > > >
> >> >
> >>
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> >> > > > > >    [exec] urls[0] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> >> > > > > >    [exec] urls[1] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> >> > > > > >    [exec] urls[2] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> >> > > > > >    [exec] urls[3] =
> >> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> >> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> >> > > > > >    [exec] urls[4] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> >> > > > > >    [exec] urls[5] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> >> > > > > >    [exec] urls[6] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> >> > > > > >    [exec] urls[7] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> >> > > > > >    [exec] urls[8] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> >> > > > > >    [exec] urls[9] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> >> > > > > >    [exec] urls[10] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> >> > > > > >    [exec] urls[11] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> >> > > > > >    [exec] urls[12] =
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> >> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> >> > > > > >    [exec] urls[0] =
> >> > > > > >
> >> > > >
> >> >
> >>
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >    [exec] [ERROR] FATAL ERROR
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> >> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >    [exec] [INFO] Trace
> >> > > > > >    [exec] java.lang.NoClassDefFoundError:
> >> > > > > > org/apache/felix/bundlerepository/Requirement
> >> > > > > >    [exec]     at
> >> > > > > >
> >> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >> > > > > >    [exec]     at
> >> > > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >> > > > > >    [exec]     at
> >> > > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >> > > > > >    [exec]     at
> >> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > >
> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >> > > > > >    [exec]     at
> >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > > > > > Method)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> > > > > >    [exec]     at
> >> java.lang.reflect.Method.invoke(Method.java:597)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >> > > > > >    [exec]     at
> >> > > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >> > > > > >    [exec]     at
> >> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> >> > > > > > org.apache.felix.bundlerepository.Requirement
> >> > > > > >    [exec]     at
> >> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >> > > > > >    [exec]     at
> >> java.security.AccessController.doPrivileged(Native
> >> > > > > Method)
> >> > > > > >    [exec]     at
> >> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >> > > > > >    [exec]     at
> >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> >> > > > > >    [exec]     at
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> >> > > > > >    [exec]     at
> >> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >> > > > > >    [exec]     at
> >> > > > > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >> > > > > >    [exec]     ... 20 more
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> >> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> >> > > > > >    [exec] [INFO] Final Memory: 94M/141M
> >> > > > > >    [exec] [INFO]
> >> > > > > >
> >> > > >
> >> >
> ------------------------------------------------------------------------
> >> > > > > >
> >> > > > > > BUILD FAILED
> >> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> >> > > > > >
> >> > > > > > I am at svn rev#927284. One may ask why I am building
> everything
> >> in
> >> > > > > trunk,
> >> > > > > > well I typically build everything at the top level, because I
> >> hate
> >> > to
> >> > > > > build
> >> > > > > > each module separately when I have to build four or five
> >> modules.
> >> > In
> >> > > > any
> >> > > > > > case, there is no justification for build failures.
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > > Sahoo
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > --
> >> > > > > Cheers,
> >> > > > > Guillaume Nodet
> >> > > > > ------------------------
> >> > > > > Blog: http://gnodet.blogspot.com/
> >> > > > > ------------------------
> >> > > > > Open Source SOA
> >> > > > > http://fusesource.com
> >> > > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > Cheers,
> >> > > Guillaume Nodet
> >> > > ------------------------
> >> > > Blog: http://gnodet.blogspot.com/
> >> > > ------------------------
> >> > > Open Source SOA
> >> > > http://fusesource.com
> >> > >
> >> >
> >>
> >>
> >>
> >> --
> >> Cheers,
> >> Guillaume Nodet
> >> ------------------------
> >> Blog: http://gnodet.blogspot.com/
> >> ------------------------
> >> Open Source SOA
> >> http://fusesource.com
> >>
> >
> >
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Pierre De Rop <pi...@gmail.com>.
Guillaume,

The issue reported by Sahoo also takes place when just typing:

    mvn -Dmaven.test.skip=true -Dpackaging=bundle install

(it's quicker than when typing "ant")






On Thu, Mar 25, 2010 at 1:51 PM, Pierre De Rop <pi...@gmail.com>wrote:

> Indeed, I get some exceptions while building the upnp subproject:
>
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Apache Felix UPnP Extra
> [INFO]   Apache Felix UPnP Base Driver
> [INFO]   Apache Felix UPnP Tester
> [INFO]   Apache Felix UPnP Sample Binary-Light
> [INFO]   Apache Felix UPnP Sample Clock
> [INFO]   Apache Felix UPnP Sample TV
> [INFO]   Apache Felix UPnP Examples: Build
> [INFO]   Apache Felix UPnP: Root POM
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Building Apache Felix UPnP Extra
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
>
> [INFO] Copying 2 resources to META-INF
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
>
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
>
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] No sources to compile
> [INFO] [surefire:test {execution: default-test}]
> [INFO] No tests to run.
> [INFO] [bundle:bundle {execution: default-bundle}]
> [WARNING] Warning building bundle
> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> Instructions in Private-Package, or -testpackages that are never used:
> org\.apache\.xerces\.impl\.dv\.util
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> to
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>
> [INFO] [bundle:install {execution: default-install}]
> [WARNING] Exception while updating local OBR: Unable to read repository
> xml: file:/home/nxuser/.m2/repository/repository.xml
> org.apache.maven.plugin.MojoExecutionException: Unable to read repository
> xml: file:/home/nxuser/.m2/repository/repository.xml
>     at
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
>     at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
>
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>     at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.Exception: Error while parsing resource
> org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column 156
>     at
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
>     at
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
>     at
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
>     at
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
>     at
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
>     at
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
>     ... 20 more
> Caused by: java.lang.IllegalArgumentException
>     at
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
>     at
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
>     at
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
>     ... 25 more
> Caused by: org.osgi.framework.InvalidSyntaxException: Invalid operator:
> <2.0.0))
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>     at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
>     at
> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
>     at
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
>     ... 27 more
>
>
>
>
>
> On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com> wrote:
>
>> Can you try building only the upnp subproject ?
>> I suspect a problem with maven mixing the versions of bundlerepository to
>> use.
>>
>> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <pi...@gmail.com>
>> wrote:
>>
>> > I just type "ant".
>> > Is this the correct way to compile the whole trunk ?
>> >
>> > /pierre
>> >
>> >
>> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gn...@gmail.com>
>> > wrote:
>> >
>> > > Btw, what command do you use the build the whole trunk ?
>> > >
>> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <pi...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hello Guillaume;
>> > > >
>> > > > Just to confirm what Sahoo said: I also can't build the trunk, and
>> get
>> > > the
>> > > > same error: java.lang.NoClassDefFoundError:
>> > > > org/apache/felix/bundlerepository/Requirement ...
>> > > >
>> > > > (I am using maven 2.2.1)
>> > > > /pierre
>> > > >
>> > > >
>> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gn...@gmail.com>
>> > > wrote:
>> > > >
>> > > > > I don't see this error.
>> > > > > Which version of maven do you use ? I use 2.2.0 and it seems to
>> work
>> > > for
>> > > > > me.
>> > > > >
>> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
>> > > > >
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
>> > > > > >    [exec] [INFO]    task-segment: [clean, install]
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
>> > > > > >    [exec] [INFO] Deleting directory
>> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
>> > > > > >    [exec] [INFO] [resources:resources {execution:
>> > default-resources}]
>> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
>> resources.
>> > > > > >    [exec] [INFO] skip non existing resourceDirectory
>> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
>> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
>> > > > > >    [exec] [INFO] [compiler:compile {execution: default-compile}]
>> > > > > >    [exec] [INFO] Compiling 3 source files to
>> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
>> > > > > >    [exec] [INFO] [resources:testResources {execution:
>> > > > > > default-testResources}]
>> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
>> resources.
>> > > > > >    [exec] [INFO] skip non existing resourceDirectory
>> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
>> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
>> > > > default-testCompile}]
>> > > > > >    [exec] [INFO] No sources to compile
>> > > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
>> > > > > >    [exec] [INFO] No tests to run.
>> > > > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
>> > > > > >    [exec] [WARNING] Warning building bundle
>> > > > > >
>> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
>> > :
>> > > > > > Instructions in Private-Package, or -testpackages that are never
>> > > used:
>> > > > > > org\.apache\.xerces\.impl\.dv\.util
>> > > > > >    [exec] [INFO] [install:install {execution: default-install}]
>> > > > > >    [exec] [INFO] Installing
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>> > > > > > to
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>> > > > > >    [exec] [INFO] [bundle:install {execution: default-install}]
>> > > > > >    [exec] [FATAL ERROR]
>> > > org.apache.felix.obrplugin.ObrInstall#execute()
>> > > > > > caused a linkage error (java.lang.NoClassDefFoundError) and may
>> be
>> > > > > > out-of-date. Check the realms:
>> > > > > >    [exec] [FATAL ERROR] Plugin realm =
>> > > > > >
>> > > >
>> >
>> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
>> > > > > >    [exec] urls[0] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
>> > > > > >    [exec] urls[1] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
>> > > > > >    [exec] urls[2] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
>> > > > > >    [exec] urls[3] =
>> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
>> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
>> > > > > >    [exec] urls[4] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
>> > > > > >    [exec] urls[5] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
>> > > > > >    [exec] urls[6] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
>> > > > > >    [exec] urls[7] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
>> > > > > >    [exec] urls[8] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
>> > > > > >    [exec] urls[9] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
>> > > > > >    [exec] urls[10] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
>> > > > > >    [exec] urls[11] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
>> > > > > >    [exec] urls[12] =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
>> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
>> > > > > >    [exec] urls[0] =
>> > > > > >
>> > > >
>> >
>> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >    [exec] [ERROR] FATAL ERROR
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
>> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >    [exec] [INFO] Trace
>> > > > > >    [exec] java.lang.NoClassDefFoundError:
>> > > > > > org/apache/felix/bundlerepository/Requirement
>> > > > > >    [exec]     at
>> > > > > >
>> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> > > > > >    [exec]     at
>> > > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> > > > > >    [exec]     at
>> > > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> > > > > >    [exec]     at
>> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> > > > > >    [exec]     at
>> > > > > >
>> > >
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> > > > > >    [exec]     at
>> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > > > > > Method)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> > > > > >    [exec]     at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> > > > > >    [exec]     at
>> > > > > >
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> > > > > >    [exec]     at
>> > > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> > > > > >    [exec]     at
>> > > > > >
>> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> > > > > >    [exec]     at
>> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
>> > > > > > org.apache.felix.bundlerepository.Requirement
>> > > > > >    [exec]     at
>> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> > > > > >    [exec]     at
>> java.security.AccessController.doPrivileged(Native
>> > > > > Method)
>> > > > > >    [exec]     at
>> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> > > > > >    [exec]     at
>> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>> > > > > >    [exec]     at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
>> > > > > >    [exec]     at
>> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> > > > > >    [exec]     at
>> > > > > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> > > > > >    [exec]     ... 20 more
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
>> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
>> > > > > >    [exec] [INFO] Final Memory: 94M/141M
>> > > > > >    [exec] [INFO]
>> > > > > >
>> > > >
>> > ------------------------------------------------------------------------
>> > > > > >
>> > > > > > BUILD FAILED
>> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
>> > > > > >
>> > > > > > I am at svn rev#927284. One may ask why I am building everything
>> in
>> > > > > trunk,
>> > > > > > well I typically build everything at the top level, because I
>> hate
>> > to
>> > > > > build
>> > > > > > each module separately when I have to build four or five
>> modules.
>> > In
>> > > > any
>> > > > > > case, there is no justification for build failures.
>> > > > > >
>> > > > > > Thanks,
>> > > > > > Sahoo
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Cheers,
>> > > > > Guillaume Nodet
>> > > > > ------------------------
>> > > > > Blog: http://gnodet.blogspot.com/
>> > > > > ------------------------
>> > > > > Open Source SOA
>> > > > > http://fusesource.com
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Cheers,
>> > > Guillaume Nodet
>> > > ------------------------
>> > > Blog: http://gnodet.blogspot.com/
>> > > ------------------------
>> > > Open Source SOA
>> > > http://fusesource.com
>> > >
>> >
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>
>

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
I've just added support for the '<' operator this morning, so I think if you
rebuild the utils / bundlerepository / bundleplugin, you should get rid of
that one.

On Thu, Mar 25, 2010 at 13:51, Pierre De Rop <pi...@gmail.com> wrote:

> Indeed, I get some exceptions while building the upnp subproject:
>
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Apache Felix UPnP Extra
> [INFO]   Apache Felix UPnP Base Driver
> [INFO]   Apache Felix UPnP Tester
> [INFO]   Apache Felix UPnP Sample Binary-Light
> [INFO]   Apache Felix UPnP Sample Clock
> [INFO]   Apache Felix UPnP Sample TV
> [INFO]   Apache Felix UPnP Examples: Build
> [INFO]   Apache Felix UPnP: Root POM
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Felix UPnP Extra
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
> [INFO] Copying 2 resources to META-INF
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] No sources to compile
> [INFO] [surefire:test {execution: default-test}]
> [INFO] No tests to run.
> [INFO] [bundle:bundle {execution: default-bundle}]
> [WARNING] Warning building bundle
> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> Instructions in Private-Package, or -testpackages that are never used:
> org\.apache\.xerces\.impl\.dv\.util
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing
>
> /home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> to
>
> /home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> [INFO] [bundle:install {execution: default-install}]
> [WARNING] Exception while updating local OBR: Unable to read repository
> xml:
> file:/home/nxuser/.m2/repository/repository.xml
> org.apache.maven.plugin.MojoExecutionException: Unable to read repository
> xml: file:/home/nxuser/.m2/repository/repository.xml
>    at
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
>    at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
>     at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>     at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.Exception: Error while parsing resource
> org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column 156
>    at
>
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
>    at
>
> org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
>    at
>
> org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
>    at
>
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
>    at
>
> org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
>    at
> org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
>    ... 20 more
> Caused by: java.lang.IllegalArgumentException
>    at
>
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
>    at
>
> org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
>    at
>
> org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
>    ... 25 more
> Caused by: org.osgi.framework.InvalidSyntaxException: Invalid operator:
> <2.0.0))
>    at
>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
>    at
>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
>    at
>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>    at
>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
>    at
>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
>    at
>
> org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
>    at
> org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
>    at
> org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
>    at
>
> org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
>    ... 27 more
>
>
>
>
> On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com> wrote:
>
> > Can you try building only the upnp subproject ?
> > I suspect a problem with maven mixing the versions of bundlerepository to
> > use.
> >
> > On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <pi...@gmail.com>
> > wrote:
> >
> > > I just type "ant".
> > > Is this the correct way to compile the whole trunk ?
> > >
> > > /pierre
> > >
> > >
> > > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gn...@gmail.com>
> > > wrote:
> > >
> > > > Btw, what command do you use the build the whole trunk ?
> > > >
> > > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <pierre.derop@gmail.com
> >
> > > > wrote:
> > > >
> > > > > Hello Guillaume;
> > > > >
> > > > > Just to confirm what Sahoo said: I also can't build the trunk, and
> > get
> > > > the
> > > > > same error: java.lang.NoClassDefFoundError:
> > > > > org/apache/felix/bundlerepository/Requirement ...
> > > > >
> > > > > (I am using maven 2.2.1)
> > > > > /pierre
> > > > >
> > > > >
> > > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gnodet@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > I don't see this error.
> > > > > > Which version of maven do you use ? I use 2.2.0 and it seems to
> > work
> > > > for
> > > > > > me.
> > > > > >
> > > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> > > > > >
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > > > > > >    [exec] [INFO]    task-segment: [clean, install]
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > > > > > >    [exec] [INFO] Deleting directory
> > > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > > > > > >    [exec] [INFO] [resources:resources {execution:
> > > default-resources}]
> > > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > resources.
> > > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> > > > > > >    [exec] [INFO] [compiler:compile {execution:
> default-compile}]
> > > > > > >    [exec] [INFO] Compiling 3 source files to
> > > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > > > > > >    [exec] [INFO] [resources:testResources {execution:
> > > > > > > default-testResources}]
> > > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> > resources.
> > > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> > > > > default-testCompile}]
> > > > > > >    [exec] [INFO] No sources to compile
> > > > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > > > > > >    [exec] [INFO] No tests to run.
> > > > > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> > > > > > >    [exec] [WARNING] Warning building bundle
> > > > > > >
> > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> > > :
> > > > > > > Instructions in Private-Package, or -testpackages that are
> never
> > > > used:
> > > > > > > org\.apache\.xerces\.impl\.dv\.util
> > > > > > >    [exec] [INFO] [install:install {execution: default-install}]
> > > > > > >    [exec] [INFO] Installing
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > > > > to
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > > > >    [exec] [INFO] [bundle:install {execution: default-install}]
> > > > > > >    [exec] [FATAL ERROR]
> > > > org.apache.felix.obrplugin.ObrInstall#execute()
> > > > > > > caused a linkage error (java.lang.NoClassDefFoundError) and may
> > be
> > > > > > > out-of-date. Check the realms:
> > > > > > >    [exec] [FATAL ERROR] Plugin realm =
> > > > > > >
> > > > >
> > >
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > > > > > >    [exec] urls[0] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > > > > > >    [exec] urls[1] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > > > > > >    [exec] urls[2] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > > > > > >    [exec] urls[3] =
> > > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > > > > > >    [exec] urls[4] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > > > > > >    [exec] urls[5] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > > > > > >    [exec] urls[6] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > > > > > >    [exec] urls[7] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > > > > > >    [exec] urls[8] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > > > > > >    [exec] urls[9] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > > > > > >    [exec] urls[10] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > > > > > >    [exec] urls[11] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > > > > > >    [exec] urls[12] =
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > > > > > >    [exec] urls[0] =
> > > > > > >
> > > > >
> > >
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >    [exec] [ERROR] FATAL ERROR
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> > > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >    [exec] [INFO] Trace
> > > > > > >    [exec] java.lang.NoClassDefFoundError:
> > > > > > > org/apache/felix/bundlerepository/Requirement
> > > > > > >    [exec]     at
> > > > > > >
> > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > > > > >    [exec]     at
> > > > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > > > > >    [exec]     at
> > > > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > > > > >    [exec]     at
> > > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > > > > >    [exec]     at
> > > > > > >
> > > >
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > > > > >    [exec]     at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > > Method)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > > > >    [exec]     at
> java.lang.reflect.Method.invoke(Method.java:597)
> > > > > > >    [exec]     at
> > > > > > >
> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > > > >    [exec]     at
> > > > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > > > >    [exec]     at
> > > > > > >
> > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > > > >    [exec]     at
> > > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > > > > > org.apache.felix.bundlerepository.Requirement
> > > > > > >    [exec]     at
> > > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > > > > >    [exec]     at
> > java.security.AccessController.doPrivileged(Native
> > > > > > Method)
> > > > > > >    [exec]     at
> > > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > > > > >    [exec]     at
> > > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > > > > > >    [exec]     at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > > > > > >    [exec]     at
> > > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > > > > >    [exec]     at
> > > > > > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > > > > >    [exec]     ... 20 more
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > > > > > >    [exec] [INFO] Final Memory: 94M/141M
> > > > > > >    [exec] [INFO]
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >
> > > > > > > BUILD FAILED
> > > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> > > > > > >
> > > > > > > I am at svn rev#927284. One may ask why I am building
> everything
> > in
> > > > > > trunk,
> > > > > > > well I typically build everything at the top level, because I
> > hate
> > > to
> > > > > > build
> > > > > > > each module separately when I have to build four or five
> modules.
> > > In
> > > > > any
> > > > > > > case, there is no justification for build failures.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Sahoo
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Cheers,
> > > > > > Guillaume Nodet
> > > > > > ------------------------
> > > > > > Blog: http://gnodet.blogspot.com/
> > > > > > ------------------------
> > > > > > Open Source SOA
> > > > > > http://fusesource.com
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Cheers,
> > > > Guillaume Nodet
> > > > ------------------------
> > > > Blog: http://gnodet.blogspot.com/
> > > > ------------------------
> > > > Open Source SOA
> > > > http://fusesource.com
> > > >
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Pierre De Rop <pi...@gmail.com>.
Indeed, I get some exceptions while building the upnp subproject:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Felix UPnP Extra
[INFO]   Apache Felix UPnP Base Driver
[INFO]   Apache Felix UPnP Tester
[INFO]   Apache Felix UPnP Sample Binary-Light
[INFO]   Apache Felix UPnP Sample Clock
[INFO]   Apache Felix UPnP Sample TV
[INFO]   Apache Felix UPnP Examples: Build
[INFO]   Apache Felix UPnP: Root POM
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Felix UPnP Extra
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/nxuser/work/osgi/felix-trunk/upnp/extra/src/main/resources
[INFO] Copying 2 resources to META-INF
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/nxuser/work/osgi/felix-trunk/upnp/extra/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [bundle:bundle {execution: default-bundle}]
[WARNING] Warning building bundle
org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
Instructions in Private-Package, or -testpackages that are never used:
org\.apache\.xerces\.impl\.dv\.util
[INFO] [install:install {execution: default-install}]
[INFO] Installing
/home/nxuser/work/osgi/felix-trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
to
/home/nxuser/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
[INFO] [bundle:install {execution: default-install}]
[WARNING] Exception while updating local OBR: Unable to read repository xml:
file:/home/nxuser/.m2/repository/repository.xml
org.apache.maven.plugin.MojoExecutionException: Unable to read repository
xml: file:/home/nxuser/.m2/repository/repository.xml
    at
org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:295)
    at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:140)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.Exception: Error while parsing resource
org.apache.felix.eventadmin/1.2.3.SNAPSHOT at line 563 and column 156
    at
org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:241)
    at
org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:138)
    at
org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:48)
    at
org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:162)
    at
org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:133)
    at
org.apache.felix.obrplugin.ObrUpdate.parseRepositoryXml(ObrUpdate.java:291)
    ... 20 more
Caused by: java.lang.IllegalArgumentException
    at
org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:69)
    at
org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:329)
    at
org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:204)
    ... 25 more
Caused by: org.osgi.framework.InvalidSyntaxException: Invalid operator:
<2.0.0))
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse_item(FilterImpl.java:1352)
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1228)
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse_and(FilterImpl.java:1243)
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse_filtercomp(FilterImpl.java:1217)
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse_filter(FilterImpl.java:1193)
    at
org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1167)
    at
org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:82)
    at
org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:65)
    ... 27 more




On Thu, Mar 25, 2010 at 1:32 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> Can you try building only the upnp subproject ?
> I suspect a problem with maven mixing the versions of bundlerepository to
> use.
>
> On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <pi...@gmail.com>
> wrote:
>
> > I just type "ant".
> > Is this the correct way to compile the whole trunk ?
> >
> > /pierre
> >
> >
> > On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gn...@gmail.com>
> > wrote:
> >
> > > Btw, what command do you use the build the whole trunk ?
> > >
> > > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <pi...@gmail.com>
> > > wrote:
> > >
> > > > Hello Guillaume;
> > > >
> > > > Just to confirm what Sahoo said: I also can't build the trunk, and
> get
> > > the
> > > > same error: java.lang.NoClassDefFoundError:
> > > > org/apache/felix/bundlerepository/Requirement ...
> > > >
> > > > (I am using maven 2.2.1)
> > > > /pierre
> > > >
> > > >
> > > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gn...@gmail.com>
> > > wrote:
> > > >
> > > > > I don't see this error.
> > > > > Which version of maven do you use ? I use 2.2.0 and it seems to
> work
> > > for
> > > > > me.
> > > > >
> > > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> > > > >
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > > > > >    [exec] [INFO]    task-segment: [clean, install]
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > > > > >    [exec] [INFO] Deleting directory
> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > > > > >    [exec] [INFO] [resources:resources {execution:
> > default-resources}]
> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > > > > >    [exec] [INFO] Copying 2 resources to META-INF
> > > > > >    [exec] [INFO] [compiler:compile {execution: default-compile}]
> > > > > >    [exec] [INFO] Compiling 3 source files to
> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > > > > >    [exec] [INFO] [resources:testResources {execution:
> > > > > > default-testResources}]
> > > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> > > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > > > > >    [exec] [INFO] [compiler:testCompile {execution:
> > > > default-testCompile}]
> > > > > >    [exec] [INFO] No sources to compile
> > > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > > > > >    [exec] [INFO] No tests to run.
> > > > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> > > > > >    [exec] [WARNING] Warning building bundle
> > > > > >
> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> > :
> > > > > > Instructions in Private-Package, or -testpackages that are never
> > > used:
> > > > > > org\.apache\.xerces\.impl\.dv\.util
> > > > > >    [exec] [INFO] [install:install {execution: default-install}]
> > > > > >    [exec] [INFO] Installing
> > > > > >
> > > > >
> > > >
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > > > to
> > > > > >
> > > > >
> > > >
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > > >    [exec] [INFO] [bundle:install {execution: default-install}]
> > > > > >    [exec] [FATAL ERROR]
> > > org.apache.felix.obrplugin.ObrInstall#execute()
> > > > > > caused a linkage error (java.lang.NoClassDefFoundError) and may
> be
> > > > > > out-of-date. Check the realms:
> > > > > >    [exec] [FATAL ERROR] Plugin realm =
> > > > > >
> > > >
> > app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > > > > >    [exec] urls[0] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > > > > >    [exec] urls[1] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > > > > >    [exec] urls[2] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > > > > >    [exec] urls[3] =
> > > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > > > > >    [exec] urls[4] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > > > > >    [exec] urls[5] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > > > > >    [exec] urls[6] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > > > > >    [exec] urls[7] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > > > > >    [exec] urls[8] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > > > > >    [exec] urls[9] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > > > > >    [exec] urls[10] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > > > > >    [exec] urls[11] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > > > > >    [exec] urls[12] =
> > > > > >
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > > > > >    [exec] urls[0] =
> > > > > >
> > > >
> > file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >    [exec] [ERROR] FATAL ERROR
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> > > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >    [exec] [INFO] Trace
> > > > > >    [exec] java.lang.NoClassDefFoundError:
> > > > > > org/apache/felix/bundlerepository/Requirement
> > > > > >    [exec]     at
> > > > > >
> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > > > >    [exec]     at
> > > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > > > >    [exec]     at
> > > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > > > >    [exec]     at
> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > > > >    [exec]     at
> > > > > >
> > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > > > >    [exec]     at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > Method)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > > >    [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
> > > > > >    [exec]     at
> > > > > >
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > > >    [exec]     at
> > > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > > >    [exec]     at
> > > > > >
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > > >    [exec]     at
> > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > > > > org.apache.felix.bundlerepository.Requirement
> > > > > >    [exec]     at
> > > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > > > >    [exec]     at
> java.security.AccessController.doPrivileged(Native
> > > > > Method)
> > > > > >    [exec]     at
> > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > > > >    [exec]     at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > > > > >    [exec]     at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > > > > >    [exec]     at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > > > >    [exec]     at
> > > > > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > > > >    [exec]     ... 20 more
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > > > > >    [exec] [INFO] Final Memory: 94M/141M
> > > > > >    [exec] [INFO]
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >
> > > > > > BUILD FAILED
> > > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> > > > > >
> > > > > > I am at svn rev#927284. One may ask why I am building everything
> in
> > > > > trunk,
> > > > > > well I typically build everything at the top level, because I
> hate
> > to
> > > > > build
> > > > > > each module separately when I have to build four or five modules.
> > In
> > > > any
> > > > > > case, there is no justification for build failures.
> > > > > >
> > > > > > Thanks,
> > > > > > Sahoo
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Cheers,
> > > > > Guillaume Nodet
> > > > > ------------------------
> > > > > Blog: http://gnodet.blogspot.com/
> > > > > ------------------------
> > > > > Open Source SOA
> > > > > http://fusesource.com
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > > ------------------------
> > > Blog: http://gnodet.blogspot.com/
> > > ------------------------
> > > Open Source SOA
> > > http://fusesource.com
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
Can you try building only the upnp subproject ?
I suspect a problem with maven mixing the versions of bundlerepository to
use.

On Thu, Mar 25, 2010 at 11:49, Pierre De Rop <pi...@gmail.com> wrote:

> I just type "ant".
> Is this the correct way to compile the whole trunk ?
>
> /pierre
>
>
> On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gn...@gmail.com>
> wrote:
>
> > Btw, what command do you use the build the whole trunk ?
> >
> > On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <pi...@gmail.com>
> > wrote:
> >
> > > Hello Guillaume;
> > >
> > > Just to confirm what Sahoo said: I also can't build the trunk, and get
> > the
> > > same error: java.lang.NoClassDefFoundError:
> > > org/apache/felix/bundlerepository/Requirement ...
> > >
> > > (I am using maven 2.2.1)
> > > /pierre
> > >
> > >
> > > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gn...@gmail.com>
> > wrote:
> > >
> > > > I don't see this error.
> > > > Which version of maven do you use ? I use 2.2.0 and it seems to work
> > for
> > > > me.
> > > >
> > > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> > > >
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > > > >    [exec] [INFO]    task-segment: [clean, install]
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > > > >    [exec] [INFO] Deleting directory
> > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > > > >    [exec] [INFO] [resources:resources {execution:
> default-resources}]
> > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > > > >    [exec] [INFO] Copying 2 resources to META-INF
> > > > >    [exec] [INFO] [compiler:compile {execution: default-compile}]
> > > > >    [exec] [INFO] Compiling 3 source files to
> > > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > > > >    [exec] [INFO] [resources:testResources {execution:
> > > > > default-testResources}]
> > > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > > > >    [exec] [INFO] [compiler:testCompile {execution:
> > > default-testCompile}]
> > > > >    [exec] [INFO] No sources to compile
> > > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > > > >    [exec] [INFO] No tests to run.
> > > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> > > > >    [exec] [WARNING] Warning building bundle
> > > > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT
> :
> > > > > Instructions in Private-Package, or -testpackages that are never
> > used:
> > > > > org\.apache\.xerces\.impl\.dv\.util
> > > > >    [exec] [INFO] [install:install {execution: default-install}]
> > > > >    [exec] [INFO] Installing
> > > > >
> > > >
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > > to
> > > > >
> > > >
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > >    [exec] [INFO] [bundle:install {execution: default-install}]
> > > > >    [exec] [FATAL ERROR]
> > org.apache.felix.obrplugin.ObrInstall#execute()
> > > > > caused a linkage error (java.lang.NoClassDefFoundError) and may be
> > > > > out-of-date. Check the realms:
> > > > >    [exec] [FATAL ERROR] Plugin realm =
> > > > >
> > >
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > > > >    [exec] urls[0] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > > > >    [exec] urls[1] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > > > >    [exec] urls[2] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > > > >    [exec] urls[3] =
> > file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > > > >    [exec] urls[4] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > > > >    [exec] urls[5] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > > > >    [exec] urls[6] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > > > >    [exec] urls[7] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > > > >    [exec] urls[8] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > > > >    [exec] urls[9] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > > > >    [exec] urls[10] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > > > >    [exec] urls[11] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > > > >    [exec] urls[12] =
> > > > >
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > > > >    [exec] urls[0] =
> > > > >
> > >
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >    [exec] [ERROR] FATAL ERROR
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> > > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >    [exec] [INFO] Trace
> > > > >    [exec] java.lang.NoClassDefFoundError:
> > > > > org/apache/felix/bundlerepository/Requirement
> > > > >    [exec]     at
> > > > > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > > >    [exec]     at
> > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > > >    [exec]     at
> > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > > >    [exec]     at
> > org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > > >    [exec]     at
> > > > >
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > > >    [exec]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > >    [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
> > > > >    [exec]     at
> > > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > >    [exec]     at
> > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > >    [exec]     at
> > > > >
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > >    [exec]     at
> > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > > > org.apache.felix.bundlerepository.Requirement
> > > > >    [exec]     at
> > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > > >    [exec]     at java.security.AccessController.doPrivileged(Native
> > > > Method)
> > > > >    [exec]     at
> > > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > > >    [exec]     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > > > >    [exec]     at
> > > > >
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > > > >    [exec]     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > > >    [exec]     at
> > > > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > > >    [exec]     ... 20 more
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > > > >    [exec] [INFO] Final Memory: 94M/141M
> > > > >    [exec] [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >
> > > > > BUILD FAILED
> > > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> > > > >
> > > > > I am at svn rev#927284. One may ask why I am building everything in
> > > > trunk,
> > > > > well I typically build everything at the top level, because I hate
> to
> > > > build
> > > > > each module separately when I have to build four or five modules.
> In
> > > any
> > > > > case, there is no justification for build failures.
> > > > >
> > > > > Thanks,
> > > > > Sahoo
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Cheers,
> > > > Guillaume Nodet
> > > > ------------------------
> > > > Blog: http://gnodet.blogspot.com/
> > > > ------------------------
> > > > Open Source SOA
> > > > http://fusesource.com
> > > >
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Pierre De Rop <pi...@gmail.com>.
I just type "ant".
Is this the correct way to compile the whole trunk ?

/pierre


On Thu, Mar 25, 2010 at 11:35 AM, Guillaume Nodet <gn...@gmail.com> wrote:

> Btw, what command do you use the build the whole trunk ?
>
> On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <pi...@gmail.com>
> wrote:
>
> > Hello Guillaume;
> >
> > Just to confirm what Sahoo said: I also can't build the trunk, and get
> the
> > same error: java.lang.NoClassDefFoundError:
> > org/apache/felix/bundlerepository/Requirement ...
> >
> > (I am using maven 2.2.1)
> > /pierre
> >
> >
> > On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gn...@gmail.com>
> wrote:
> >
> > > I don't see this error.
> > > Which version of maven do you use ? I use 2.2.0 and it seems to work
> for
> > > me.
> > >
> > > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> > >
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > > >    [exec] [INFO]    task-segment: [clean, install]
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > > >    [exec] [INFO] Deleting directory
> > > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > > >    [exec] [INFO] [resources:resources {execution: default-resources}]
> > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > > >    [exec] [INFO] Copying 2 resources to META-INF
> > > >    [exec] [INFO] [compiler:compile {execution: default-compile}]
> > > >    [exec] [INFO] Compiling 3 source files to
> > > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > > >    [exec] [INFO] [resources:testResources {execution:
> > > > default-testResources}]
> > > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > >    [exec] [INFO] skip non existing resourceDirectory
> > > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > > >    [exec] [INFO] [compiler:testCompile {execution:
> > default-testCompile}]
> > > >    [exec] [INFO] No sources to compile
> > > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > > >    [exec] [INFO] No tests to run.
> > > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> > > >    [exec] [WARNING] Warning building bundle
> > > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> > > > Instructions in Private-Package, or -testpackages that are never
> used:
> > > > org\.apache\.xerces\.impl\.dv\.util
> > > >    [exec] [INFO] [install:install {execution: default-install}]
> > > >    [exec] [INFO] Installing
> > > >
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > > to
> > > >
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > >    [exec] [INFO] [bundle:install {execution: default-install}]
> > > >    [exec] [FATAL ERROR]
> org.apache.felix.obrplugin.ObrInstall#execute()
> > > > caused a linkage error (java.lang.NoClassDefFoundError) and may be
> > > > out-of-date. Check the realms:
> > > >    [exec] [FATAL ERROR] Plugin realm =
> > > >
> > app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > > >    [exec] urls[0] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > > >    [exec] urls[1] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > > >    [exec] urls[2] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > > >    [exec] urls[3] =
> file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > > >    [exec] urls[4] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > > >    [exec] urls[5] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > > >    [exec] urls[6] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > > >    [exec] urls[7] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > > >    [exec] urls[8] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > > >    [exec] urls[9] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > > >    [exec] urls[10] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > > >    [exec] urls[11] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > > >    [exec] urls[12] =
> > > >
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > > >    [exec] urls[0] =
> > > >
> > file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >    [exec] [ERROR] FATAL ERROR
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> > > >    [exec] org.apache.felix.bundlerepository.Requirement
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >    [exec] [INFO] Trace
> > > >    [exec] java.lang.NoClassDefFoundError:
> > > > org/apache/felix/bundlerepository/Requirement
> > > >    [exec]     at
> > > > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > > >    [exec]     at
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > > >    [exec]     at
> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > > >    [exec]     at
> > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > > >    [exec]     at
> org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > >    [exec]     at
> > > >
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > > >    [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > >    [exec]     at
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > >    [exec]     at
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > >    [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
> > > >    [exec]     at
> > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > >    [exec]     at
> > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > >    [exec]     at
> > > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > >    [exec]     at
> > > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > > org.apache.felix.bundlerepository.Requirement
> > > >    [exec]     at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > >    [exec]     at java.security.AccessController.doPrivileged(Native
> > > Method)
> > > >    [exec]     at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > >    [exec]     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > >    [exec]     at
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > > >    [exec]     at
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > > >    [exec]     at
> > > >
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > > >    [exec]     at
> > > >
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > > >    [exec]     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > >    [exec]     at
> > > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > >    [exec]     ... 20 more
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > > >    [exec] [INFO] Final Memory: 94M/141M
> > > >    [exec] [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > BUILD FAILED
> > > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> > > >
> > > > I am at svn rev#927284. One may ask why I am building everything in
> > > trunk,
> > > > well I typically build everything at the top level, because I hate to
> > > build
> > > > each module separately when I have to build four or five modules. In
> > any
> > > > case, there is no justification for build failures.
> > > >
> > > > Thanks,
> > > > Sahoo
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > > ------------------------
> > > Blog: http://gnodet.blogspot.com/
> > > ------------------------
> > > Open Source SOA
> > > http://fusesource.com
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
Btw, what command do you use the build the whole trunk ?

On Thu, Mar 25, 2010 at 11:18, Pierre De Rop <pi...@gmail.com> wrote:

> Hello Guillaume;
>
> Just to confirm what Sahoo said: I also can't build the trunk, and get the
> same error: java.lang.NoClassDefFoundError:
> org/apache/felix/bundlerepository/Requirement ...
>
> (I am using maven 2.2.1)
> /pierre
>
>
> On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>
> > I don't see this error.
> > Which version of maven do you use ? I use 2.2.0 and it seems to work for
> > me.
> >
> > On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
> >
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >    [exec] [INFO] Building Apache Felix UPnP Extra
> > >    [exec] [INFO]    task-segment: [clean, install]
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >    [exec] [INFO] [clean:clean {execution: default-clean}]
> > >    [exec] [INFO] Deleting directory
> > > /space/ss141213/WS/felix/trunk/upnp/extra/target
> > >    [exec] [INFO] [resources:resources {execution: default-resources}]
> > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > >    [exec] [INFO] skip non existing resourceDirectory
> > > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> > >    [exec] [INFO] Copying 2 resources to META-INF
> > >    [exec] [INFO] [compiler:compile {execution: default-compile}]
> > >    [exec] [INFO] Compiling 3 source files to
> > > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> > >    [exec] [INFO] [resources:testResources {execution:
> > > default-testResources}]
> > >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > >    [exec] [INFO] skip non existing resourceDirectory
> > > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> > >    [exec] [INFO] [compiler:testCompile {execution:
> default-testCompile}]
> > >    [exec] [INFO] No sources to compile
> > >    [exec] [INFO] [surefire:test {execution: default-test}]
> > >    [exec] [INFO] No tests to run.
> > >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> > >    [exec] [WARNING] Warning building bundle
> > > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> > > Instructions in Private-Package, or -testpackages that are never used:
> > > org\.apache\.xerces\.impl\.dv\.util
> > >    [exec] [INFO] [install:install {execution: default-install}]
> > >    [exec] [INFO] Installing
> > >
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > > to
> > >
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > >    [exec] [INFO] [bundle:install {execution: default-install}]
> > >    [exec] [FATAL ERROR] org.apache.felix.obrplugin.ObrInstall#execute()
> > > caused a linkage error (java.lang.NoClassDefFoundError) and may be
> > > out-of-date. Check the realms:
> > >    [exec] [FATAL ERROR] Plugin realm =
> > >
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> > >    [exec] urls[0] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> > >    [exec] urls[1] =
> > >
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> > >    [exec] urls[2] =
> > >
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> > >    [exec] urls[3] = file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > > 1.1.3.1/xmlpull-1.1.3.1.jar
> > >    [exec] urls[4] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> > >    [exec] urls[5] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> > >    [exec] urls[6] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> > >    [exec] urls[7] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> > >    [exec] urls[8] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> > >    [exec] urls[9] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> > >    [exec] urls[10] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> > >    [exec] urls[11] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> > >    [exec] urls[12] =
> > >
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> > >    [exec] [FATAL ERROR] Container realm = plexus.core
> > >    [exec] urls[0] =
> > >
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >    [exec] [ERROR] FATAL ERROR
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> > >    [exec] org.apache.felix.bundlerepository.Requirement
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >    [exec] [INFO] Trace
> > >    [exec] java.lang.NoClassDefFoundError:
> > > org/apache/felix/bundlerepository/Requirement
> > >    [exec]     at
> > > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> > >    [exec]     at
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > >    [exec]     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > >    [exec]     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > >    [exec]     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > >    [exec]     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > >    [exec]     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > >    [exec]     at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > >    [exec]     at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > >    [exec]     at
> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > >    [exec]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > >    [exec]     at
> > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > >    [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > >    [exec]     at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >    [exec]     at
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >    [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
> > >    [exec]     at
> > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >    [exec]     at
> > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >    [exec]     at
> > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >    [exec]     at
> > org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > >    [exec] Caused by: java.lang.ClassNotFoundException:
> > > org.apache.felix.bundlerepository.Requirement
> > >    [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > >    [exec]     at java.security.AccessController.doPrivileged(Native
> > Method)
> > >    [exec]     at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >    [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > >    [exec]     at
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> > >    [exec]     at
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> > >    [exec]     at
> > >
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> > >    [exec]     at
> > >
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> > >    [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > >    [exec]     at
> > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > >    [exec]     ... 20 more
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >    [exec] [INFO] Total time: 4 minutes 13 seconds
> > >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> > >    [exec] [INFO] Final Memory: 94M/141M
> > >    [exec] [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > BUILD FAILED
> > > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> > >
> > > I am at svn rev#927284. One may ask why I am building everything in
> > trunk,
> > > well I typically build everything at the top level, because I hate to
> > build
> > > each module separately when I have to build four or five modules. In
> any
> > > case, there is no justification for build failures.
> > >
> > > Thanks,
> > > Sahoo
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: trunk still does not build

Posted by Pierre De Rop <pi...@gmail.com>.
Hello Guillaume;

Just to confirm what Sahoo said: I also can't build the trunk, and get the
same error: java.lang.NoClassDefFoundError:
org/apache/felix/bundlerepository/Requirement ...

(I am using maven 2.2.1)
/pierre


On Thu, Mar 25, 2010 at 9:18 AM, Guillaume Nodet <gn...@gmail.com> wrote:

> I don't see this error.
> Which version of maven do you use ? I use 2.2.0 and it seems to work for
> me.
>
> On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:
>
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >    [exec] [INFO] Building Apache Felix UPnP Extra
> >    [exec] [INFO]    task-segment: [clean, install]
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >    [exec] [INFO] [clean:clean {execution: default-clean}]
> >    [exec] [INFO] Deleting directory
> > /space/ss141213/WS/felix/trunk/upnp/extra/target
> >    [exec] [INFO] [resources:resources {execution: default-resources}]
> >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >    [exec] [INFO] skip non existing resourceDirectory
> > /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
> >    [exec] [INFO] Copying 2 resources to META-INF
> >    [exec] [INFO] [compiler:compile {execution: default-compile}]
> >    [exec] [INFO] Compiling 3 source files to
> > /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
> >    [exec] [INFO] [resources:testResources {execution:
> > default-testResources}]
> >    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >    [exec] [INFO] skip non existing resourceDirectory
> > /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
> >    [exec] [INFO] [compiler:testCompile {execution: default-testCompile}]
> >    [exec] [INFO] No sources to compile
> >    [exec] [INFO] [surefire:test {execution: default-test}]
> >    [exec] [INFO] No tests to run.
> >    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
> >    [exec] [WARNING] Warning building bundle
> > org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> > Instructions in Private-Package, or -testpackages that are never used:
> > org\.apache\.xerces\.impl\.dv\.util
> >    [exec] [INFO] [install:install {execution: default-install}]
> >    [exec] [INFO] Installing
> >
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> > to
> >
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> >    [exec] [INFO] [bundle:install {execution: default-install}]
> >    [exec] [FATAL ERROR] org.apache.felix.obrplugin.ObrInstall#execute()
> > caused a linkage error (java.lang.NoClassDefFoundError) and may be
> > out-of-date. Check the realms:
> >    [exec] [FATAL ERROR] Plugin realm =
> > app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
> >    [exec] urls[0] =
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
> >    [exec] urls[1] =
> >
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
> >    [exec] urls[2] =
> >
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
> >    [exec] urls[3] = file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> > 1.1.3.1/xmlpull-1.1.3.1.jar
> >    [exec] urls[4] =
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
> >    [exec] urls[5] =
> >
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> >    [exec] urls[6] =
> >
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> >    [exec] urls[7] =
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
> >    [exec] urls[8] =
> >
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
> >    [exec] urls[9] =
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
> >    [exec] urls[10] =
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> >    [exec] urls[11] =
> >
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> >    [exec] urls[12] =
> >
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> >    [exec] [FATAL ERROR] Container realm = plexus.core
> >    [exec] urls[0] =
> > file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >    [exec] [ERROR] FATAL ERROR
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
> >    [exec] org.apache.felix.bundlerepository.Requirement
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >    [exec] [INFO] Trace
> >    [exec] java.lang.NoClassDefFoundError:
> > org/apache/felix/bundlerepository/Requirement
> >    [exec]     at
> > org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
> >    [exec]     at
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> >    [exec]     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >    [exec]     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >    [exec]     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >    [exec]     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >    [exec]     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >    [exec]     at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >    [exec]     at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >    [exec]     at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >    [exec]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >    [exec]     at
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >    [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >    [exec]     at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >    [exec]     at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >    [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
> >    [exec]     at
> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >    [exec]     at
> > org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >    [exec]     at
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >    [exec]     at
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >    [exec] Caused by: java.lang.ClassNotFoundException:
> > org.apache.felix.bundlerepository.Requirement
> >    [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >    [exec]     at java.security.AccessController.doPrivileged(Native
> Method)
> >    [exec]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >    [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >    [exec]     at
> >
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> >    [exec]     at
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> >    [exec]     at
> >
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> >    [exec]     at
> >
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> >    [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >    [exec]     at
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >    [exec]     ... 20 more
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >    [exec] [INFO] Total time: 4 minutes 13 seconds
> >    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
> >    [exec] [INFO] Final Memory: 94M/141M
> >    [exec] [INFO]
> > ------------------------------------------------------------------------
> >
> > BUILD FAILED
> > /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
> >
> > I am at svn rev#927284. One may ask why I am building everything in
> trunk,
> > well I typically build everything at the top level, because I hate to
> build
> > each module separately when I have to build four or five modules. In any
> > case, there is no justification for build failures.
> >
> > Thanks,
> > Sahoo
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: trunk still does not build

Posted by Guillaume Nodet <gn...@gmail.com>.
I don't see this error.
Which version of maven do you use ? I use 2.2.0 and it seems to work for me.

On Thu, Mar 25, 2010 at 07:18, Sahoo <Sa...@sun.com> wrote:

>    [exec] [INFO]
> ------------------------------------------------------------------------
>    [exec] [INFO] Building Apache Felix UPnP Extra
>    [exec] [INFO]    task-segment: [clean, install]
>    [exec] [INFO]
> ------------------------------------------------------------------------
>    [exec] [INFO] [clean:clean {execution: default-clean}]
>    [exec] [INFO] Deleting directory
> /space/ss141213/WS/felix/trunk/upnp/extra/target
>    [exec] [INFO] [resources:resources {execution: default-resources}]
>    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
>    [exec] [INFO] skip non existing resourceDirectory
> /space/ss141213/WS/felix/trunk/upnp/extra/src/main/resources
>    [exec] [INFO] Copying 2 resources to META-INF
>    [exec] [INFO] [compiler:compile {execution: default-compile}]
>    [exec] [INFO] Compiling 3 source files to
> /space/ss141213/WS/felix/trunk/upnp/extra/target/classes
>    [exec] [INFO] [resources:testResources {execution:
> default-testResources}]
>    [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
>    [exec] [INFO] skip non existing resourceDirectory
> /space/ss141213/WS/felix/trunk/upnp/extra/src/test/resources
>    [exec] [INFO] [compiler:testCompile {execution: default-testCompile}]
>    [exec] [INFO] No sources to compile
>    [exec] [INFO] [surefire:test {execution: default-test}]
>    [exec] [INFO] No tests to run.
>    [exec] [INFO] [bundle:bundle {execution: default-bundle}]
>    [exec] [WARNING] Warning building bundle
> org.apache.felix:org.apache.felix.upnp.extra:bundle:0.5.0-SNAPSHOT :
> Instructions in Private-Package, or -testpackages that are never used:
> org\.apache\.xerces\.impl\.dv\.util
>    [exec] [INFO] [install:install {execution: default-install}]
>    [exec] [INFO] Installing
> /space/ss141213/WS/felix/trunk/upnp/extra/target/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
> to
> /home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.upnp.extra/0.5.0-SNAPSHOT/org.apache.felix.upnp.extra-0.5.0-SNAPSHOT.jar
>    [exec] [INFO] [bundle:install {execution: default-install}]
>    [exec] [FATAL ERROR] org.apache.felix.obrplugin.ObrInstall#execute()
> caused a linkage error (java.lang.NoClassDefFoundError) and may be
> out-of-date. Check the realms:
>    [exec] [FATAL ERROR] Plugin realm =
> app0.child-container[org.apache.felix:maven-bundle-plugin:2.1.0-SNAPSHOT]
>    [exec] urls[0] =
> file:/home/ss141213/.m2/repository/org/apache/felix/maven-bundle-plugin/2.1.0-SNAPSHOT/maven-bundle-plugin-2.1.0-SNAPSHOT.jar
>    [exec] urls[1] =
> file:/home/ss141213/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar
>    [exec] urls[2] =
> file:/home/ss141213/.m2/repository/net/sf/kxml/kxml2/2.2.2/kxml2-2.2.2.jar
>    [exec] urls[3] = file:/home/ss141213/.m2/repository/xmlpull/xmlpull/
> 1.1.3.1/xmlpull-1.1.3.1.jar
>    [exec] urls[4] =
> file:/home/ss141213/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.5.0-SNAPSHOT/org.apache.felix.bundlerepository-1.5.0-SNAPSHOT.jar
>    [exec] urls[5] =
> file:/home/ss141213/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
>    [exec] urls[6] =
> file:/home/ss141213/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
>    [exec] urls[7] =
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.core/1.0.0/org.osgi.core-1.0.0.jar
>    [exec] urls[8] =
> file:/home/ss141213/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.1/org.osgi.service.obr-1.0.1.jar
>    [exec] urls[9] =
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar
>    [exec] urls[10] =
> file:/home/ss141213/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
>    [exec] urls[11] =
> file:/home/ss141213/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
>    [exec] urls[12] =
> file:/home/ss141213/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
>    [exec] [FATAL ERROR] Container realm = plexus.core
>    [exec] urls[0] =
> file:/space/ss141213/software/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
>    [exec] [INFO]
> ------------------------------------------------------------------------
>    [exec] [ERROR] FATAL ERROR
>    [exec] [INFO]
> ------------------------------------------------------------------------
>    [exec] [INFO] org/apache/felix/bundlerepository/Requirement
>    [exec] org.apache.felix.bundlerepository.Requirement
>    [exec] [INFO]
> ------------------------------------------------------------------------
>    [exec] [INFO] Trace
>    [exec] java.lang.NoClassDefFoundError:
> org/apache/felix/bundlerepository/Requirement
>    [exec]     at
> org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:139)
>    [exec]     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>    [exec]     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>    [exec]     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>    [exec]     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>    [exec]     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>    [exec]     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>    [exec]     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>    [exec]     at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>    [exec]     at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>    [exec]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>    [exec]     at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>    [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [exec]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    [exec]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
>    [exec]     at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>    [exec]     at
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>    [exec]     at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>    [exec]     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>    [exec] Caused by: java.lang.ClassNotFoundException:
> org.apache.felix.bundlerepository.Requirement
>    [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>    [exec]     at java.security.AccessController.doPrivileged(Native Method)
>    [exec]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>    [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>    [exec]     at
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
>    [exec]     at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>    [exec]     at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>    [exec]     at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
>    [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>    [exec]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>    [exec]     ... 20 more
>    [exec] [INFO]
> ------------------------------------------------------------------------
>    [exec] [INFO] Total time: 4 minutes 13 seconds
>    [exec] [INFO] Finished at: Wed Mar 24 22:13:56 PST 2010
>    [exec] [INFO] Final Memory: 94M/141M
>    [exec] [INFO]
> ------------------------------------------------------------------------
>
> BUILD FAILED
> /space/ss141213/WS/felix/trunk/build.xml:71: exec returned: 1
>
> I am at svn rev#927284. One may ask why I am building everything in trunk,
> well I typically build everything at the top level, because I hate to build
> each module separately when I have to build four or five modules. In any
> case, there is no justification for build failures.
>
> Thanks,
> Sahoo
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Must I using the spring-osgi-namespace in osgi environment?

Posted by ext2 <xu...@tongtech.com>.
Hi:
	camel-osgi component give another a spring osgi
namespace."http://camel.apache.org/schema/osgi".
	But if I use the normal
spring-namespace(http://camel.apache.org/schema/spring), it seems works too
in osgi environment.
	So what's the real different for the osgi namespace?	Must I use
the osgi-namespace in osgi environment?