|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
version of exported packagesHi, I'm exporting all the packages in a bundle that contains other non osgi jars.
In my pom.xml I have dependencies like this <dependency> <groupId>javax.jws</groupId> <artifactId>jsr181-api</artifactId> <version>1.0</version> </dependency> My export config looks like this <Export-Package>*;-split-package:=merge-first</Export-Package> How can I configure it to obtain something like this Export-Package:javax.jws;version=1.0 Now I get the package exported with version 0.0.0 Tahnk you! |
|
|
Re: version of exported packages<Export-Package>*;version=1.0;-split-package:=merge-first</Export-Package>
On Sat, Oct 17, 2009 at 11:06 AM, Gogu Nae <nae.gogu@...> wrote: > Hi, I'm exporting all the packages in a bundle that contains other non osgi > jars. > In my pom.xml I have dependencies like this > > <dependency> > <groupId>javax.jws</groupId> > <artifactId>jsr181-api</artifactId> > <version>1.0</version> > </dependency> > > My export config looks like this > > <Export-Package>*;-split-package:=merge-first</Export-Package> > > How can I configure it to obtain something like this > > Export-Package:javax.jws;version=1.0 > > Now I get the package exported with version 0.0.0 > > Tahnk you! > > > > -- Alin Dreghiciu Software Developer 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. |
|
|
Re: version of exported packagesThanks for the qucik reply, but the thing is I have multiple dependencies in my pom!
Must a do x poms for each of the dependencies I have? :( --- On Sat, 10/17/09, Alin Dreghiciu <adreghiciu@...> wrote: From: Alin Dreghiciu <adreghiciu@...> Subject: Re: version of exported packages To: users@... Date: Saturday, October 17, 2009, 8:34 AM <Export-Package>*;version=1.0;-split-package:=merge-first</Export-Package> On Sat, Oct 17, 2009 at 11:06 AM, Gogu Nae <nae.gogu@...> wrote: > Hi, I'm exporting all the packages in a bundle that contains other non osgi > jars. > In my pom.xml I have dependencies like this > > <dependency> > <groupId>javax.jws</groupId> > <artifactId>jsr181-api</artifactId> > <version>1.0</version> > </dependency> > > My export config looks like this > > <Export-Package>*;-split-package:=merge-first</Export-Package> > > How can I configure it to obtain something like this > > Export-Package:javax.jws;version=1.0 > > Now I get the package exported with version 0.0.0 > > Tahnk you! > > > > -- Alin Dreghiciu Software Developer 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. |
|
|
Re: version of exported packagesI guess that you will have first to give us more details about what you want
to do.But basically you should not define a pom for each dependency. On Sat, Oct 17, 2009 at 11:48 AM, Gogu Nae <nae.gogu@...> wrote: > Thanks for the qucik reply, but the thing is I have multiple dependencies > in my pom! > Must a do x poms for each of the dependencies I have? :( > > --- On Sat, 10/17/09, Alin Dreghiciu <adreghiciu@...> wrote: > > From: Alin Dreghiciu <adreghiciu@...> > Subject: Re: version of exported packages > To: users@... > Date: Saturday, October 17, 2009, 8:34 AM > > <Export-Package>*;version=1.0;-split-package:=merge-first</Export-Package> > > On Sat, Oct 17, 2009 at 11:06 AM, Gogu Nae <nae.gogu@...> wrote: > > > Hi, I'm exporting all the packages in a bundle that contains other non > osgi > > jars. > > In my pom.xml I have dependencies like this > > > > <dependency> > > <groupId>javax.jws</groupId> > > <artifactId>jsr181-api</artifactId> > > <version>1.0</version> > > </dependency> > > > > My export config looks like this > > > > <Export-Package>*;-split-package:=merge-first</Export-Package> > > > > How can I configure it to obtain something like this > > > > Export-Package:javax.jws;version=1.0 > > > > Now I get the package exported with version 0.0.0 > > > > Tahnk you! > > > > > > > > > > > > > -- > Alin Dreghiciu > Software Developer > 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. > > > > > -- Alin Dreghiciu Software Developer 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. |
|
|
Re: version of exported packagesYou are right... so I have a simple Spring app that is a client to some web services. It worked just wonderful and I decided to changed it to use OSGi..
I have the Spring and CXF bundles. But they depend on many other things and also in my original poms I have a lost of other dependencies and I'm not sure what I have to do with them. --- On Sat, 10/17/09, Alin Dreghiciu <adreghiciu@...> wrote: From: Alin Dreghiciu <adreghiciu@...> Subject: Re: version of exported packages To: users@... Date: Saturday, October 17, 2009, 9:29 AM I guess that you will have first to give us more details about what you want to do.But basically you should not define a pom for each dependency. On Sat, Oct 17, 2009 at 11:48 AM, Gogu Nae <nae.gogu@...> wrote: > Thanks for the qucik reply, but the thing is I have multiple dependencies > in my pom! > Must a do x poms for each of the dependencies I have? :( > > --- On Sat, 10/17/09, Alin Dreghiciu <adreghiciu@...> wrote: > > From: Alin Dreghiciu <adreghiciu@...> > Subject: Re: version of exported packages > To: users@... > Date: Saturday, October 17, 2009, 8:34 AM > > <Export-Package>*;version=1.0;-split-package:=merge-first</Export-Package> > > On Sat, Oct 17, 2009 at 11:06 AM, Gogu Nae <nae.gogu@...> wrote: > > > Hi, I'm exporting all the packages in a bundle that contains other non > osgi > > jars. > > In my pom.xml I have dependencies like this > > > > <dependency> > > <groupId>javax.jws</groupId> > > <artifactId>jsr181-api</artifactId> > > <version>1.0</version> > > </dependency> > > > > My export config looks like this > > > > <Export-Package>*;-split-package:=merge-first</Export-Package> > > > > How can I configure it to obtain something like this > > > > Export-Package:javax.jws;version=1.0 > > > > Now I get the package exported with version 0.0.0 > > > > Tahnk you! > > > > > > > > > > > > > -- > Alin Dreghiciu > Software Developer > 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. > > > > > -- Alin Dreghiciu Software Developer 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. |
|
|
Re: version of exported packagesFor spring and cxf bundles most probably that you will find the osgi version
of the jars you need in spring bundle repository and from cxf or servicemix. For you other deps you should again look around as if the deps are "known" most probably you will find an osgi version of it somewhere. To get started really quick with spring / cxf I suggest that you use Pax Runner and the profiles already prepared for spring and cxf. It may well be that servicemix already has features for the same thing, I do not know for sure. On Sat, Oct 17, 2009 at 2:13 PM, Gogu Nae <nae.gogu@...> wrote: > You are right... so I have a simple Spring app that is a client to some web > services. It worked just wonderful and I decided to changed it to use OSGi.. > I have the Spring and CXF bundles. But they depend on many other things and > also in my original poms I have a lost of other dependencies and I'm not > sure what I have to do with them. > > --- On Sat, 10/17/09, Alin Dreghiciu <adreghiciu@...> wrote: > > From: Alin Dreghiciu <adreghiciu@...> > Subject: Re: version of exported packages > To: users@... > Date: Saturday, October 17, 2009, 9:29 AM > > I guess that you will have first to give us more details about what you > want > to do.But basically you should not define a pom for each dependency. > > On Sat, Oct 17, 2009 at 11:48 AM, Gogu Nae <nae.gogu@...> wrote: > > > Thanks for the qucik reply, but the thing is I have multiple dependencies > > in my pom! > > Must a do x poms for each of the dependencies I have? :( > > > > --- On Sat, 10/17/09, Alin Dreghiciu <adreghiciu@...> wrote: > > > > From: Alin Dreghiciu <adreghiciu@...> > > Subject: Re: version of exported packages > > To: users@... > > Date: Saturday, October 17, 2009, 8:34 AM > > > > > <Export-Package>*;version=1.0;-split-package:=merge-first</Export-Package> > > > > On Sat, Oct 17, 2009 at 11:06 AM, Gogu Nae <nae.gogu@...> wrote: > > > > > Hi, I'm exporting all the packages in a bundle that contains other non > > osgi > > > jars. > > > In my pom.xml I have dependencies like this > > > > > > <dependency> > > > <groupId>javax.jws</groupId> > > > <artifactId>jsr181-api</artifactId> > > > <version>1.0</version> > > > </dependency> > > > > > > My export config looks like this > > > > > > <Export-Package>*;-split-package:=merge-first</Export-Package> > > > > > > How can I configure it to obtain something like this > > > > > > Export-Package:javax.jws;version=1.0 > > > > > > Now I get the package exported with version 0.0.0 > > > > > > Tahnk you! > > > > > > > > > > > > > > > > > > > > > > -- > > Alin Dreghiciu > > Software Developer > > 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. > > > > > > > > > > > > > > -- > Alin Dreghiciu > Software Developer > 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. > > > > > -- Alin Dreghiciu Software Developer 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. |
| Free embeddable forum powered by Nabble | Forum Help |