Hi,
I try to deploy a bundle under ServiceMix 4.2 running Felix 2.0.4 and
get an unresolved constraint. The bundle is created using Felix
maven-bundle-plugin 2.0.1
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${felix-version}</version>
<extensions>true</extensions>
<configuration>
<excludeDependencies>${project.osgi.exclude.dependencies}</excludeDependencies>
<instructions>
<Bundle-Name>Test</Bundle-Name>
<Bundle-SymbolicName>Test</Bundle-SymbolicName>
<Export-Package>com.goodyear.emea.gicl.esb.persistence</Export-Package>
<Import-Package>
com.goodyear.emea.gicl.esb.model,
org.eclipse.persistence.jpa,
javax.persistence,
*
</Import-Package>
<Private-Package>
com.goodyear.emea.gicl.esb.entities,
com.goodyear.emea.gicl.esb.persistence.impl</Private-Package>
<Implementation-Title>SAP
Manual Upload</Implementation-Title>
<Implementation-Version>1.0.0-SNAPSHOT</Implementation-Version>
</instructions>
</configuration>
</plugin>
Here is the manifest. Surprisingly, I don t see any Private-Package in
the MANIFEST file and the package com.goodyear.emea.gicl.esb.entities
is well present in the jar
Manifest-Version: 1.0
Export-Package: com.goodyear.emea.gicl.esb.persistence;uses:="com.good
year.emea.gicl.esb.model"
Implementation-Title: SAP Manual Upload
Implementation-Version: 1.0.0-SNAPSHOT
Built-By: ngib962
Tool: Bnd-0.0.357
Bundle-Name: sap-prodspec-persistence
Created-By: Apache Maven Bundle Plugin
Build-Jdk: 1.6.0_14
Bundle-Version: 1.0.0.SNAPSHOT
Bnd-LastModified: 1273062847410
Bundle-ManifestVersion: 2
Bundle-SymbolicName: com.goodyear.emea.gicl.esb.sap-prodspec-persisten
ce
Import-Package: com.goodyear.emea.gicl.esb.model,com.goodyear.emea.gic
l.esb.persistence,javax.persistence;version="1.1",org.eclipse.persist
ence.jpa;version="2.0",org.springframework.orm.jpa;version="2.5",org.
springframework.orm.jpa.support;version="2.5",org.springframework.orm
.jpa.vendor;version="2.5",org.springframework.transaction.support;ver
sion="2.5"
Any idea is welcome ?
Charles Moulliard
Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel Committer
*******************************************************************
- Blog : http://cmoulliard.blogspot.com
- Twitter : http://twitter.com/cmoulliard
- Linkedlin : http://www.linkedin.com/in/charlesmoulliard