2009/4/23 Stéphane Jeanjean <stephane.jeanj...@softeam.com> > > I would like to set an OBR Repository for Felix. > So I tried to put a file in args, but an error occured : > java.lang.RuntimeException: > org.ops4j.pax.runner.provision.MalformedSpecificationException: Invalid url > > Extract from my pom > <plugin> > <groupId>org.ops4j</groupId> > <artifactId>maven-pax-plugin</artifactId> > <version>1.4</version> > <configuration> > <runner>0.17.2</runner> > <profiles>war,obr</profiles> > <args>src/test/resources/paxrunner-params.txt</args> > </configuration> > </plugin> > > I tried to change the args value without success :( >
Pax-Runner expects a URL, so try: <args>file:src/test/resources/paxrunner-params.txt</args> that should work > Have you an idea to do that ? > > Thanks > > "Stéphane Jeanjean" <stephane.jeanj...@softeam.com> a écrit : > > "Stuart McCulloch" <mccu...@gmail.com> a écrit : >> >> 2009/4/23 Stéphane Jeanjean <stephane.jeanj...@softeam.com> >>> >>> >>>> "Stuart McCulloch" <mccu...@gmail.com> a écrit : >>>> >>>> 2009/4/23 Stéphane Jeanjean <stephane.jeanj...@softeam.com> >>>> >>>>> >>>>> Thanks for your help. >>>>> >>>>>> >>>>>> Now Felix is launched. I can do a 'ps' command. I can see the >>>>>> dependencies >>>>>> (OBR Service for instance), but my bundle wich is build with this pom >>>>>> is >>>>>> not >>>>>> there :( >>>>>> I have tried to install manually with install file:...jar, it's ok >>>>>> >>>>>> >>>>>> what is your pom packaging? could you post your pom? (or just email >>>>> it >>>>> direct to me) >>>>> >>>>> My Packaging is jar. With another project where the packaging is war, I >>>>> >>>> use the war profile and it works very well. >>>> >>> >>> >>> do you mean the war gets provisioned ok? >>> >>> Yes, it is provisioned and started >> >> btw, when you use "mvn clean install pax:provision" do you get a message >>> saying "No bundles found" ? >>> >> No, and now it's ok!! The bundle is deployed and started ! >> Thanks for your help. >> >> the plugin will generate a deployment pom called "runner/deploy-pom.xml" >>> which describes the bundles, >>> perhaps you could check to see if your bundle appears in the list >>> >>> [ you have to "mvn install" your bundle because the deployment pom uses >>> Maven ids, not actual paths ] >>> >>> This is my pom : >>> >>>> >>>> >>>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" >>>> http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>>> http://maven.apache.org/maven-v4_0_0.xsd"> >>>> <modelVersion>4.0.0</modelVersion> >>>> <groupId>com.klizejh.odsza.thirdp</groupId> >>>> <artifactId>ORTA3pmngtlib</artifactId> >>>> <packaging>jar</packaging> >>>> <version>1.0-SNAPSHOT</version> >>>> <name>odza3pmngtlib</name> >>>> <dependencies> >>>> <dependency> >>>> <groupId>org.osgi</groupId> >>>> <artifactId>osgi_R4_core</artifactId> >>>> <version>1.0</version> >>>> <scope>provided</scope> >>>> </dependency> >>>> >>>> <dependency> >>>> <groupId>org.osgi</groupId> >>>> <artifactId>osgi_R4_compendium</artifactId> >>>> <version>1.0</version> >>>> <scope>provided</scope> >>>> </dependency> >>>> >>>> <dependency> >>>> <groupId>org.apache.felix</groupId> >>>> <artifactId>org.osgi.service.obr</artifactId> >>>> <version>1.0.2</version> >>>> <scope>provided</scope> >>>> </dependency> >>>> >>>> >>>> <dependency> >>>> <groupId>junit</groupId> >>>> <artifactId>junit</artifactId> >>>> <version>3.8.1</version> >>>> <scope>test</scope> >>>> </dependency> >>>> </dependencies> >>>> >>>> <build> >>>> <plugins> >>>> >>>> <plugin> >>>> <groupId>org.apache.maven.plugins</groupId> >>>> <artifactId>maven-jar-plugin</artifactId> >>>> <configuration> >>>> <archive> >>>> >>>> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile> >>>> </archive> >>>> </configuration> >>>> </plugin> >>>> >>>> <plugin> >>>> <groupId>org.ops4j</groupId> >>>> <artifactId>maven-pax-plugin</artifactId> >>>> <version>1.4</version> >>>> <configuration> >>>> <runner>0.17.2</runner> >>>> </configuration> >>>> </plugin> >>>> >>>> >>>> </plugins> >>>> </build> >>>> >>>> >>>> </project> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Do you have an idea why my bundle is not there ? >>>> >>>>> >>>>> >>>>>> Thanks, >>>>>> >>>>>> Stéphane >>>>>> >>>>>> >>>>>> "Stuart McCulloch" <mccu...@gmail.com> a écrit : >>>>>> >>>>>> >>>>>> 2009/4/23 Stéphane Jeanjean <stephane.jeanj...@softeam.com> >>>>>> >>>>>> >>>>>>> >>>>>>> It seems that the issue is from pax-runner 0.18 with Windows ( >>>>>>> >>>>>>>> http://issues.ops4j.org/browse/PAXRUNNER-233 ) >>>>>>>> >>>>>>>> Is there any way to use maven-pax-plugin with another version of Pax >>>>>>>> Runner >>>>>>>> ? >>>>>>>> >>>>>>>> >>>>>>>> use "-Drunner=<version>" on the command-line, or set it in your pom >>>>>>>> >>>>>>> like >>>>>>> this: >>>>>>> >>>>>>> <plugin> >>>>>>> <groupId>org.ops4j</groupId> >>>>>>> <artifactId>maven-pax-plugin</artifactId> >>>>>>> <version>1.4</version> >>>>>>> <configuration> >>>>>>> <runner>0.17.2</runner> >>>>>>> </configuration> >>>>>>> </plugin> >>>>>>> >>>>>>> btw, we use the same approach Maven uses for their plugins for >>>>>>> downloading >>>>>>> Pax-Runner >>>>>>> which is download the latest if you don't have it in your local >>>>>>> repository >>>>>>> - >>>>>>> from then onward >>>>>>> we only re-check for a new version if you use "mvn -U ....." to force >>>>>>> the >>>>>>> update check >>>>>>> >>>>>>> this is so builds are relatively stable - if you need to lock down >>>>>>> the >>>>>>> version set it in the pom >>>>>>> >>>>>>> see: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/provision-mojo.html >>>>>>> >>>>>>> which is the standard Maven doc for the maven-pax-plugin >>>>>>> >>>>>>> HTH >>>>>>> >>>>>>> >>>>>>> "Stéphane Jeanjean" <stephane.jeanj...@softeam.com> a écrit : >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> Thanks Thomas. >>>>>>>> >>>>>>>> >>>>>>>> I have added this to my pom : >>>>>>>>> <plugin> >>>>>>>>> <groupId>org.ops4j</groupId> >>>>>>>>> <artifactId>maven-pax-plugin</artifactId> >>>>>>>>> <version>1.4</version> >>>>>>>>> </plugin> >>>>>>>>> >>>>>>>>> When I launch mvn pax:provision. Pax Runner is started, then Felix >>>>>>>>> is >>>>>>>>> downloaded, then Felix is started, then warning messages are >>>>>>>>> displayed >>>>>>>>> : >>>>>>>>> "Unable to cache bundle..." >>>>>>>>> I don't know if it's just a warning or an error. >>>>>>>>> >>>>>>>>> But then, it seems that Felix is blocked, there is no prompt >>>>>>>>> display, >>>>>>>>> and >>>>>>>>> when I try "ps" for instance : nothing :( >>>>>>>>> >>>>>>>>> Stéphane >>>>>>>>> >>>>>>>>> >>>>>>>>> -----Message d'origine----- >>>>>>>>> De : general-boun...@lists.ops4j.org [mailto: >>>>>>>>> general-boun...@lists.ops4j.org] De la part de Thomas Joseph >>>>>>>>> Envoyé : mercredi 22 avril 2009 18:23 >>>>>>>>> À : General OPS4J >>>>>>>>> Objet : Re: Maven-pax-plugin >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Apr 22, 2009 at 9:16 PM, Stéphane Jeanjean < >>>>>>>>> stephane.jeanj...@softeam.com> wrote: >>>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> How can I launch my bundle with Maven using maven-pax-plugin ? >>>>>>>>> Somebody can provide me a sample, please ? >>>>>>>>> >>>>>>>>> mvn pax:provision >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/index.html >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/provision-mojo.html >>>>>>>>> >>>>>>>>> using pax-construct: >>>>>>>>> http://www.jroller.com/habuma/entry/pax_construct_from_zero_to >>>>>>>>> >>>>>>>>> on construct: pax-provision >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Thank you, >>>>>>>>> >>>>>>>>> Stéphane >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> general mailing list >>>>>>>>> general@lists.ops4j.org >>>>>>>>> http://lists.ops4j.org/mailman/listinfo/generalwww.www. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> Thanks and Regards, >>>>>>>>> >>>>>>>>> Thomas Joseph >>>>>>>>> >>>>>>>>> LinkedIn: http://www.linkedin.com/in/ethomasjoseph >>>>>>>>> >>>>>>>>> Twitter: http://twitter.com/ethomasjoseph >>>>>>>>> ------------------------------------------------------------ >>>>>>>>> Promote Open Source - Promote Liberty of Ideas and Software. >>>>>>>>> ------------------------------------------------------------ >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> general mailing list >>>>>>>>> general@lists.ops4j.org >>>>>>>>> http://lists.ops4j.org/mailman/listinfo/general >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> general mailing list >>>>>>>> general@lists.ops4j.org >>>>>>>> http://lists.ops4j.org/mailman/listinfo/general >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> Cheers, Stuart >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> general mailing list >>>>>> general@lists.ops4j.org >>>>>> http://lists.ops4j.org/mailman/listinfo/general >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Cheers, Stuart >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> general mailing list >>>> general@lists.ops4j.org >>>> http://lists.ops4j.org/mailman/listinfo/general >>>> >>>> >>> >>> >>> -- >>> Cheers, Stuart >>> >>> >>> >>> >> >> >> >> >> _______________________________________________ >> general mailing list >> general@lists.ops4j.org >> http://lists.ops4j.org/mailman/listinfo/general >> >> > > > > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > -- Cheers, Stuart
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general