Skip to content

Commit

Permalink
Add basic OSGi metadata to the uber-jar
Browse files Browse the repository at this point in the history
Currently the uber-jar is a plain jar and therefore needs to be either
wrapped or embedded when using inside OSGi.

This now adds very basic OSGi meta-data so it can be used inside OSGi,
possible use-cases are:

- fetch it bundle location and start lemminx as a CLI process
- create fragments of the host that export packages, import additional
packages or provide extensions
- create a fragment that provides a Declarative-Service-Component to
provide services to other parts of the system
- ...
  • Loading branch information
laeubi authored and mickaelistria committed Nov 24, 2024
1 parent 3c30e71 commit eb03701
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion org.eclipse.lemminx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -113,6 +112,15 @@
<manifest>
<mainClass>org.eclipse.lemminx.XMLServerLauncher</mainClass>
</manifest>
<manifestEntries>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-SymbolicName>org.eclipse.lemminx.uber-jar</Bundle-SymbolicName>
<Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
<Bundle-Version>${parsedVersion.osgiVersion}</Bundle-Version>
<Bundle-Vendor>Eclipse.org</Bundle-Vendor>
<Bundle-Name>lemminx uber jar bundle</Bundle-Name>
<Service-Component>OSGI-INF/*.xml</Service-Component>
</manifestEntries>
</archive>
</configuration>
<executions>
Expand Down

0 comments on commit eb03701

Please sign in to comment.