Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8212

maven-bundle-plugin fails to parse meta-persistence

XMLWordPrintable

    • % %

      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
      

      Upstream issue: https://issues.apache.org/jira/browse/FELIX-5794

              ggrzybek Grzegorz Grzybek
              rhn-support-shiggs Stephen Higgs
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: