Skip to content

The glassfish-grizzly-extra-all produces invalid manifest headers #26004

Description

@dmatej

OSGi doesn't like maven snapshots and uses them as classifiers.
However I am not sure if they are ever used, I just noticed the Felix plugin reported it:

mvn clean install -pl :glassfish-grizzly-extra-all -Dgrizzly.version=5.0.3-SNAPSHOT
# Note: Without the grizzly snapshot it still prints one warning.
...
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.comet is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.comet.concurrent is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.websockets is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.websockets.frametypes is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.websockets.glassfish is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.websockets.rfc6455 is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.http.ajp is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.grizzly.servlet is set to different values in the source (5.0.2-SNAPSHOT) and in the manifest (5.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project
[WARNING] Bundle org.glassfish.main.grizzly:glassfish-grizzly-extra-all:jar:8.0.2-SNAPSHOT : Version for package org.glassfish.extras.grizzly is set to different values in the source (8.0.2-SNAPSHOT) and in the manifest (8.0.2). The version in the manifest is not picked up by an other sibling bundles in this project or projects that directly depend on this project

                        <Export-Package>
                            org.glassfish.grizzly.comet.*;version=${grizzly.version},
                            org.glassfish.grizzly.websockets.*;version=${grizzly.version},
                            org.glassfish.grizzly.http.ajp.*;version=${grizzly.version},
                            org.glassfish.grizzly.servlet.*;version=${grizzly.version},
                            org.glassfish.grizzly.extras.*;version=${project.version},
                            org.glassfish.extras.grizzly.*;version=${project.version}
                        </Export-Package>

There are two options:

  • Delete it, then this artifact would be used just as some "transport box dependency" for other modules
  • Fix it, generate proper osgi version property.

Recommendation: try first without any instructions and compare results.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions