META-INF.maven.org.glassfish.ha.ha-api.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0, which is available at http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU General Public License, version 2 with the GNU Classpath Exception, which is available at https://www.gnu.org/software/classpath/license.html. SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 --> <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.eclipse.ee4j</groupId> <artifactId>project</artifactId> <version>1.0.6</version> </parent> <groupId>org.glassfish.ha</groupId> <artifactId>ha-api</artifactId> <version>3.1.13</version> <name>GlassFish High Availability APIs and SPI</name> <scm> <connection>scm:git:ssh://[email protected]/eclipse-ee4j/glassfish-ha-api.git</connection> <developerConnection>scm:git:ssh://[email protected]/eclipse-ee4j/glassfish-ha-api.git</developerConnection> <url>https://github.com/eclipse-ee4j/glassfish-ha-api</url> <tag>HEAD</tag> </scm> <developers> <developer> <id>yaminikb</id> <name>Yamini K B</name> <organization>Oracle Corporation</organization> <organizationUrl>http://www.oracle.com/</organizationUrl> </developer> </developers> <contributors> <contributor> <name>Mahesh Kannan</name> <organization>Oracle Corporation</organization> <organizationUrl>http://www.oracle.com/</organizationUrl> </contributor> </contributors> <licenses> <license> <name>EPL 2.0</name> <url>http://www.eclipse.org/legal/epl-2.0</url> <distribution>repo</distribution> </license> <license> <name>GPL2 w/ CPE</name> <url>https://www.gnu.org/software/classpath/license.html</url> <distribution>repo</distribution> </license> </licenses> <issueManagement> <system>github</system> <url>https://github.com/eclipse-ee4j/glassfish/issues</url> </issueManagement> <properties> <hk2.version>3.0.2</hk2.version> <legal.doc.source>${maven.multiModuleProjectDirectory}</legal.doc.source> <base.java.level>8</base.java.level> <upper.java.level>9</upper.java.level> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M3</version> <executions> <execution> <id>enforce-versions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireJavaVersion> <version>[11,)</version> <message>JDK11+ is required</message> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <executions> <execution> <id>default-compile</id> <configuration> <release>${upper.java.level}</release> <compilerArgs> <arg>-Xlint:all</arg> <arg>--add-reads</arg> <arg>org.glassfish.ha.api=ALL-UNNAMED</arg> </compilerArgs> </configuration> </execution> <execution> <id>base-compile</id> <goals> <goal>compile</goal> </goals> <configuration> <release>${base.java.level}</release> <excludes> <exclude>module-info.java</exclude> </excludes> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>5.1.1</version> <configuration> <niceManifest>true</niceManifest> <_noextraheaders>true</_noextraheaders> <instructions> <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> <!--<DynamicImport-Package>org.glassfish.flashlight.provider</DynamicImport-Package>--> </instructions> </configuration> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.glassfish.hk2</groupId> <artifactId>osgiversion-maven-plugin</artifactId> <version>${hk2.version}</version> <executions> <!-- Since we don't want qualifier like b05 or SNAPSHOT to appear in package version attribute, we use the following goal to populate a project property with an OSGi version which is equivalent to maven version without qualifier and then use that property in osgi.bundle while exporting. --> <execution> <id>compute-osgi-version</id> <goals> <goal>compute-osgi-version</goal> </goals> <configuration> <dropVersionComponent>qualifier</dropVersionComponent> <versionPropertyName>project.osgi.version</versionPropertyName> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.glassfish.hk2</groupId> <artifactId>hk2-inhabitant-generator</artifactId> <version>${hk2.version}</version> <executions> <execution> <goals> <goal>generate-inhabitants</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>add-legal-resource</id> <phase>generate-resources</phase> <goals> <goal>add-resource</goal> </goals> <configuration> <resources> <resource> <directory>${legal.doc.source}</directory> <includes> <include>NOTICE.md</include> <include>LICENSE.md</include> </includes> <targetPath>META-INF</targetPath> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.2.0</version> <configuration> <archive> <manifest> <addDefaultEntries>false</addDefaultEntries> </manifest> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <Add-Reads>ALL-UNNAMED</Add-Reads> <Class-Path>hk2.jar hk2-core.jar class-model.jar config-api.jar tiger-types.jar bean-validator.jar jtype.jar auto-depends.jar jakarta.inject-api.jar asm-all-repackaged.jar hk2-api.jar osgi-resource-locator.jar</Class-Path> </manifestEntries> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.2.0</version> <configuration> <doclint>none</doclint> <release>11</release> <notimestamp>true</notimestamp> <additionalOptions> <additionalOption>--add-reads</additionalOption> <additionalOption>org.glassfish.ha.api=ALL-UNNAMED</additionalOption> </additionalOptions> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> <configuration> <archive> <manifest> <addDefaultEntries>false</addDefaultEntries> </manifest> <manifestEntries> <Implementation-Build-Id>${project.version} - ${buildNumber}</Implementation-Build-Id> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.glassfish.hk2</groupId> <artifactId>hk2</artifactId> <version>${hk2.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> <scope>test</scope> </dependency> </dependencies> </project>