JBoss Fuse: maven-bundle-plugin fails to correctly parse meta-persistence
Issue
Project build fails when a Meta-Persistence is defined in maven-bundle-plugin (3.4.0 and 3.5.0):
<Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>
The following error is observed:
[INFO] --- maven-bundle-plugin:3.4.0:manifest (bundle-manifest) @ example-fuse-hibernate-dao ---
Output: [Provide-Capability: osgi.service;effective:=active;objectClass=javax.persistence.EntityManagerFactory;osgi.unit.name="my-hibernate-jpa", Require-Capability: osgi.service;effective:=active;objectClass=javax.persistence.spi.PersistenceProvider;javax.persistence.provider=org.hibernate.ejb.HibernatePersistence, Provide-Capability: osgi.service;effective:=active;objectClass=org.apache.aries.jpa.supplier.EmSupplier;osgi.unit.name="my-hibernate-jpa", Require-Capability: osgi.service;effective:=active;objectClass=javax.sql.DataSource;filter:="(osgi.jndi.service.name=jdbc/derbydsxa)", Provide-Capability: osgi.service;effective:=active;objectClass=javax.persistence.EntityManager;osgi.unit.name="my-hibernate-jpa", Require-Capability: osgi.extender;osgi.extender=aries.jpa, Provide-Capability: osgi.service;effective:=active;objectClass=org.apache.aries.jpa.template.JpaTemplate;osgi.unit.name="my-hibernate-jpa", Require-Capability: osgi.service;effective:=active;objectClass=javax.transaction.TransactionManager;]
[ERROR] Manifest com.redhat.support.examples:example-fuse-hibernate-dao:bundle:1.0.0-SNAPSHOT : Header contains name field after attribute or directive: null from osgi.service;effective:=active;objectClass=javax.persistence.spi.PersistenceProvider;javax.persistence.provider=org.hibernate.ejb.HibernatePersistence,osgi.service;effective:=active;objectClass=javax.sql.DataSource;filter:="(osgi.jndi.service.name=jdbc/derbydsxa)",osgi.extender;osgi.extender=aries.jpa,osgi.service;effective:=active;objectClass=javax.transaction.TransactionManager;. Name fields must be consecutive, separated by a ';' like a;b;c;x=3;y=4
[ERROR] Error(s) found in manifest configuration
Environment
- Red Hat JBoss Fuse 6.3.x
- maven-bundle-plugin 3.4.0 and 3.5.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
