Created
March 7, 2025 12:53
-
-
Save marcoguastalli/99086e0d83b8453e2acdf9873fc02634 to your computer and use it in GitHub Desktop.
AEMaaCS - pom.xml configured to create a third party bundle jar using Apache Felix Maven bundle plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<!-- ====================================================================== --> | |
<!-- P A R E N T P R O J E C T D E S C R I P T I O N --> | |
<!-- ====================================================================== --> | |
<parent> | |
<groupId>com.example</groupId> | |
<artifactId>third-party</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
</parent> | |
<!-- ====================================================================== --> | |
<!-- M O D U L E D E S C R I P T I O N --> | |
<!-- ====================================================================== --> | |
<artifactId>third-party-bundle</artifactId> | |
<packaging>bundle</packaging> | |
<name>AEMaaCS - third-part bundle</name> | |
<description>AEMaaCS - pom.xml configured to create a third party bundle jar using Apache Felix Maven bundle plugin</description> | |
<!-- ====================================================================== --> | |
<!-- P R O J E C T P R O P E R T I E S --> | |
<!-- ====================================================================== --> | |
<properties> | |
<library.groupId>com.microsoft.azure</library.groupId> | |
<library.artifactId>applicationinsights-core</library.artifactId> | |
<library.version>3.7.0</library.version> | |
</properties> | |
<!-- ====================================================================== --> | |
<!-- B U I L D D E F I N I T I O N --> | |
<!-- ====================================================================== --> | |
<build> | |
<plugins> | |
<!-- Apache Felix Maven Bundle Plugin https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html --> | |
<plugin> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>maven-bundle-plugin</artifactId> | |
<configuration> | |
<instructions> | |
<Bundle-SymbolicName>third-party_${project.artifactId}</Bundle-SymbolicName> | |
<Export-Package>*</Export-Package> | |
<Embed-Dependency>${library.artifactId}</Embed-Dependency> | |
<Embed-Transitive>true</Embed-Transitive> | |
</instructions> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>biz.aQute.bnd</groupId> | |
<artifactId>bnd-baseline-maven-plugin</artifactId> | |
<version>${bnd.version}</version> | |
</plugin> | |
</plugins> | |
</build> | |
<!-- ====================================================================== --> | |
<!-- D E P E N D E N C I E S --> | |
<!-- ====================================================================== --> | |
<dependencies> | |
<dependency> | |
<groupId>${library.groupId}</groupId> | |
<artifactId>${library.artifactId}</artifactId> | |
<version>${library.version}</version> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment