You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Nima Kaviani <ni...@gmail.com> on 2009/06/08 06:44:33 UTC

pax maven plugin problem

Hi all,

I have a problem when trying to use pax maven plugin. My parent POM has a
set of modules as follows

<modules>
      <module>api</module>
      <module>impl</module>
      <module>servlet-subscriber</module>
      <module>tcp-subscriber</module>
</modules>

I have used apache's bundle plugin to create bundles for all the above sub
projects. I can install and start all the bundles generated from the above
modules individually on Felix, however when I run "mvn pax:provision", I
encounter the following exception and I am not sure what the problem is.
External bundle dependencies are defined in each sub-bundle's  pom and I
believe pax should be able to resolve the dependencies without any problem.
yet, It doesn't even get to the point of resolving the dependencies and
starts complaining about the format of the bundle, so I am not sure what the
problem can be. I appreciate any help.

N.


     /  / Oops, there has been a problem!
      /  /
     /__/   org.ops4j.pax.runner.platform.PlatformException:
[mvn:ubc.magic.broker/osgibroker.subscriber.tcp/0.0.1] is not a valid bundle
    ___
   /__/

 -> Exception catched during execution:
java.lang.RuntimeException: org.ops4j.pax.runner.platform.PlatformException:
[mvn:ubc.magic.broker/osgibroker.subscriber.tcp/0.0.1] is not a valid bundle
    at org.ops4j.pax.runner.Run.startPlatform(Run.java:627)
    at org.ops4j.pax.runner.Run.start(Run.java:208)
    at org.ops4j.pax.runner.Run.main(Run.java:137)
    at org.ops4j.pax.runner.Run.main(Run.java:110)
    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.ops4j.pax.construct.lifecycle.ProvisionMojo.invokePaxRunner(ProvisionMojo.java:802)
    at
org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployRunnerNG(ProvisionMojo.java:780)
    at
org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployBundles(ProvisionMojo.java:477)
    at
org.ops4j.pax.construct.lifecycle.ProvisionMojo.execute(ProvisionMojo.java:270)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    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)


-- 
http://nima.magic.ubc.ca

Re: pax maven plugin problem

Posted by Alin Dreghiciu <ad...@gmail.com>.
You should post this message to general@ops4j.org mailing list instead of
Felix list as it is related to OPS4J Pax projects.HTH,

On Mon, Jun 8, 2009 at 7:44 AM, Nima Kaviani <ni...@gmail.com> wrote:

> Hi all,
>
> I have a problem when trying to use pax maven plugin. My parent POM has a
> set of modules as follows
>
> <modules>
>      <module>api</module>
>      <module>impl</module>
>      <module>servlet-subscriber</module>
>      <module>tcp-subscriber</module>
> </modules>
>
> I have used apache's bundle plugin to create bundles for all the above sub
> projects. I can install and start all the bundles generated from the above
> modules individually on Felix, however when I run "mvn pax:provision", I
> encounter the following exception and I am not sure what the problem is.
> External bundle dependencies are defined in each sub-bundle's  pom and I
> believe pax should be able to resolve the dependencies without any problem.
> yet, It doesn't even get to the point of resolving the dependencies and
> starts complaining about the format of the bundle, so I am not sure what
> the
> problem can be. I appreciate any help.
>
> N.
>
>
>     /  / Oops, there has been a problem!
>      /  /
>     /__/   org.ops4j.pax.runner.platform.PlatformException:
> [mvn:ubc.magic.broker/osgibroker.subscriber.tcp/0.0.1] is not a valid
> bundle
>    ___
>   /__/
>
>  -> Exception catched during execution:
> java.lang.RuntimeException:
> org.ops4j.pax.runner.platform.PlatformException:
> [mvn:ubc.magic.broker/osgibroker.subscriber.tcp/0.0.1] is not a valid
> bundle
>    at org.ops4j.pax.runner.Run.startPlatform(Run.java:627)
>    at org.ops4j.pax.runner.Run.start(Run.java:208)
>    at org.ops4j.pax.runner.Run.main(Run.java:137)
>    at org.ops4j.pax.runner.Run.main(Run.java:110)
>    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.ops4j.pax.construct.lifecycle.ProvisionMojo.invokePaxRunner(ProvisionMojo.java:802)
>    at
>
> org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployRunnerNG(ProvisionMojo.java:780)
>    at
>
> org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployBundles(ProvisionMojo.java:477)
>    at
>
> org.ops4j.pax.construct.lifecycle.ProvisionMojo.execute(ProvisionMojo.java:270)
>    at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>    at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>    at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
>    at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
>    at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>    at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>    at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>    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)
>
>
> --
> http://nima.magic.ubc.ca
>



-- 
Alin Dreghiciu
Software Developer - Looking for new projects!
My profile: http://www.linkedin.com/in/alindreghiciu
My blog: http://adreghiciu.blogspot.com
http://www.ops4j.org - New Energy for OSS Communities - Open Participation
Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.