You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Charles Moulliard <cm...@gmail.com> on 2011/02/01 16:55:16 UTC
Issue with servicemix-bundle
Hi,
I have created a servicemix-bundle for Struts2 project. Here is what I
put in the pom.xml of the project.
<properties>
<pkgGroupId>org.apache.struts</pkgGroupId>
<pkgArtifactId>struts2-core</pkgArtifactId>
<pkgVersion>2.2.1.1</pkgVersion>
<servicemix.osgi.export.pkg>
org.apache.struts*;version=${pkgVersion}
</servicemix.osgi.export.pkg>
<servicemix.osgi.import.pkg>
!org.apache.struts.*,
org.apache.commons.lang.xwork*;version=${pkgVersion},
*
</servicemix.osgi.import.pkg>
</properties>
What I don't understand is why the headers generated contains that line :
org.apache.commons.lang.xwork;resolution=optional,
and not
org.apache.commons.lang.xwork;version="2.2.1.1"
This dependency is resolved because I have also created a servicemix
bundle for xwork-core containing those packages.
Regards,
Charles Moulliard
Sr. Principal Solution Architect - FuseSource
Apache Committer
Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard
Re: Issue with servicemix-bundle
Posted by Charles Moulliard <cm...@gmail.com>.
I create this project in bundles directory but I hqve discovered that
I was using version 4 instead of 6-SNAPSHOT
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>bundles-pom</artifactId>
<version>6-SNAPSHOT</version>
<relativePath>../bundles-pom/pom.xml</relativePath>
</parent>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.struts.xwork</artifactId>
<version>2.2.1.1_1-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
<description>
This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
</description>
<properties>
<pkgGroupId>org.apache.struts.xwork</pkgGroupId>
<pkgArtifactId>xwork-core</pkgArtifactId>
<pkgVersion>2.2.1.1</pkgVersion>
<servicemix.osgi.export.pkg>
org.apache.commons.lang.xwork*;version=${pkgVersion},
com.opensymphony.xwork2*;version=${pkgVersion},
org.objectweb.asm.xwork*;version=${pkgVersion}
</servicemix.osgi.export.pkg>
<servicemix.osgi.import.pkg>
!org.apache.commons.lang.xwork*,
!com.opensymphony.xwork2*,
!org.objectweb.asm.xwork*,
*
</servicemix.osgi.import.pkg>
</properties>
On Tue, Feb 1, 2011 at 5:24 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> Hi Charles,
>
> Which bundles-pom version do you use ?
>
> Regards
> JB
>
> On 02/01/2011 04:55 PM, Charles Moulliard wrote:
>>
>> Hi,
>>
>> I have created a servicemix-bundle for Struts2 project. Here is what I
>> put in the pom.xml of the project.
>>
>> <properties>
>> <pkgGroupId>org.apache.struts</pkgGroupId>
>> <pkgArtifactId>struts2-core</pkgArtifactId>
>> <pkgVersion>2.2.1.1</pkgVersion>
>> <servicemix.osgi.export.pkg>
>> org.apache.struts*;version=${pkgVersion}
>> </servicemix.osgi.export.pkg>
>> <servicemix.osgi.import.pkg>
>> !org.apache.struts.*,
>> org.apache.commons.lang.xwork*;version=${pkgVersion},
>> *
>> </servicemix.osgi.import.pkg>
>> </properties>
>>
>> What I don't understand is why the headers generated contains that line :
>>
>> org.apache.commons.lang.xwork;resolution=optional,
>>
>> and not
>>
>> org.apache.commons.lang.xwork;version="2.2.1.1"
>>
>> This dependency is resolved because I have also created a servicemix
>> bundle for xwork-core containing those packages.
>>
>> Regards,
>>
>> Charles Moulliard
>>
>> Sr. Principal Solution Architect - FuseSource
>> Apache Committer
>>
>> Blog : http://cmoulliard.blogspot.com
>> Twitter : http://twitter.com/cmoulliard
>> Linkedin : http://www.linkedin.com/in/charlesmoulliard
>> Skype: cmoulliard
>
Re: Issue with servicemix-bundle
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Charles,
Which bundles-pom version do you use ?
Regards
JB
On 02/01/2011 04:55 PM, Charles Moulliard wrote:
> Hi,
>
> I have created a servicemix-bundle for Struts2 project. Here is what I
> put in the pom.xml of the project.
>
> <properties>
> <pkgGroupId>org.apache.struts</pkgGroupId>
> <pkgArtifactId>struts2-core</pkgArtifactId>
> <pkgVersion>2.2.1.1</pkgVersion>
> <servicemix.osgi.export.pkg>
> org.apache.struts*;version=${pkgVersion}
> </servicemix.osgi.export.pkg>
> <servicemix.osgi.import.pkg>
> !org.apache.struts.*,
> org.apache.commons.lang.xwork*;version=${pkgVersion},
> *
> </servicemix.osgi.import.pkg>
> </properties>
>
> What I don't understand is why the headers generated contains that line :
>
> org.apache.commons.lang.xwork;resolution=optional,
>
> and not
>
> org.apache.commons.lang.xwork;version="2.2.1.1"
>
> This dependency is resolved because I have also created a servicemix
> bundle for xwork-core containing those packages.
>
> Regards,
>
> Charles Moulliard
>
> Sr. Principal Solution Architect - FuseSource
> Apache Committer
>
> Blog : http://cmoulliard.blogspot.com
> Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> Skype: cmoulliard