Skip to content

Fix for missing classes in jar with bnd-produced manifest#528

Open
scottslewis wants to merge 2 commits intosmallrye:mainfrom
scottslewis:issue_521
Open

Fix for missing classes in jar with bnd-produced manifest#528
scottslewis wants to merge 2 commits intosmallrye:mainfrom
scottslewis:issue_521

Conversation

@scottslewis
Copy link
Contributor

@scottslewis scottslewis commented Mar 5, 2026

Fixes problem with previous pull request for issue_521.

Does this by removing includes section from annotation/pom.xml maven-jar-plugin configuration. On clean install, all classes plus correct manifest present in the snapshot jar.

The bnd-generated manifest from snapshot jar is:

Manifest-Version: 1.0
Created-By: 21.0.10 (Eclipse Adoptium)
Build-Jdk-Spec: 21
Specification-Title: SmallRye Common: Annotations
Specification-Version: 2.16
Implementation-Title: SmallRye Common: Annotations
Implementation-Version: 2.16.1-SNAPSHOT
Implementation-URL: http://smallrye.io
Java-Version: 21.0.10
Scm-Connection: scm:git:git@github.com:smallrye/smallrye-common.git/smal
 lrye-common-annotation
Scm-Revision: 
Scm-Url: https://github.com/smallrye/smallrye-common/smallrye-common-ann
 otation/
Bnd-LastModified: 1772743632889
Bundle-Description: Common utilities for SmallRye
Bundle-Developers: smallrye-common-team;name="SmallRye Common Team";orga
 nization=smallrye-common;organizationUrl="https://smallrye.io/"
Bundle-DocURL: http://smallrye.io
Bundle-License: "Apache License, Version 2.0";link="https://www.apache.o
 rg/licenses/LICENSE-2.0.txt"
Bundle-ManifestVersion: 2
Bundle-Name: Bundle io.smallrye.common : smallrye-common-annotation
Bundle-SCM: url="https://github.com/smallrye/smallrye-common/smallrye-co
 mmon-annotation/",connection="scm:git:git@github.com:smallrye/smallrye-
 common.git/smallrye-common-annotation",developer-connection="scm:git:gi
 t@github.com:smallrye/smallrye-common.git/smallrye-common-annotation",t
 ag=HEAD
Bundle-SymbolicName: io.smallrye.common.annotation
Bundle-Version: 2.16.1.SNAPSHOT
Export-Package: io.smallrye.common.annotation;version="2.16.1.SNAPSHOT"
Import-Package: jakarta.enterprise.util;version="[4.0,5)",jakarta.inject
 ;version="[2.0,3)"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=17))"
Tool: Bnd-7.1.0.202411251545

I've verified that this is a properly-formatted bundle via bndtools. Also verified that a compile of all smallrye-common projects completes with the newly built annotation jar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant