Christian Hösel (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6332ca7...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMTI4MGJhZGJj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15571?atlOrigin=eyJpIjoiMTI4MG...
) HHH-15571 (
https://hibernate.atlassian.net/browse/HHH-15571?atlOrigin=eyJpIjoiMTI4MG...
) Bundle-Manifest has no 'Bundle-Version' (
https://hibernate.atlassian.net/browse/HHH-15571?atlOrigin=eyJpIjoiMTI4MG...
)
Issue Type: Bug Affects Versions: 6.1.3 Assignee: Unassigned Components: build Created:
03/Oct/2022 06:41 AM Environment: JDK-11, OSGI, Eclipse Tycho Priority: Major Reporter:
Christian Hösel (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6332ca7...
)
I am trying to use Hibernate in an Eclipse RCP/RAP environment with Eclipse Tycho and
Maven. So I added all the Hibernate depencies to my target platform and Tycho is trying to
find out, if these are OSGI bundles or not. Because the Manifest contains several OSGI
attributes like 'Bundle-Name' Tycho thinks the Hibernate bundles are already OSGI
bundles.
But when I’m trying to build the whole project I get an error that the
'Bundle-Version' is missing:
[ERROR Internal error: org.eclipse.tycho.core.osgitools.InvalidOSGiManifestException:
Exception parsing OSGi MANIFEST
C:\Users\Christian\.m2\repository\org\hibernate\orm\hibernate-core\6.1.3.Final\hibernate-core-6.1.3.Final.jar!/META-INF/MANIFEST.MF:
MANIFEST header 'Bundle-Version' not found -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
org.eclipse.tycho.core.osgitools.InvalidOSGiManifestException: Exception parsing OSGi
MANIFEST
C:\Users\Christian\.m2\repository\org\hibernate\orm\hibernate-core\6.1.3.Final\hibernate-core-6.1.3.Final.jar!/META-INF/MANIFEST.MF:
MANIFEST header 'Bundle-Version' not found
org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)
org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke (Method.java:566)
In this context it could be an idea to think about using the gradle bnd plugin (
https://plugins.gradle.org/plugin/biz.aQute.bnd (
https://plugins.gradle.org/plugin/biz.aQute.bnd ) ) for the build - this will generate the
necessary Manifest file.
(
https://hibernate.atlassian.net/browse/HHH-15571#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15571#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:bddf6e1 )