| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright (c) 2022, 2026 Contributors to Eclipse Foundation. | |
| Copyright (c) 2020, 2021 Payara Services Ltd. | |
| Copyright (c) 2010, 2020 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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.glassfish.hk2</groupId> | |
| <artifactId>hk2-project</artifactId> | |
| <version>4.0.3-SNAPSHOT</version> | |
| <relativePath>./project</relativePath> | |
| </parent> | |
| <artifactId>hk2-parent</artifactId> | |
| <packaging>pom</packaging> | |
| <name>GlassFish HK2</name> | |
| <description>Dependency Injection Kernel</description> | |
| <modules> | |
| <module>project</module> | |
| <module>bom</module> | |
| <module>maven-plugins</module> | |
| <module>hk2-metadata-generator</module> | |
| <module>hk2-runlevel</module> | |
| <module>hk2-locator</module> | |
| <module>class-model</module> | |
| <module>hk2-core</module> | |
| <module>osgi</module> | |
| <module>examples</module> | |
| <module>hk2-testing</module> | |
| <module>guice-bridge</module> | |
| <module>spring-bridge</module> | |
| <module>hk2-jmx</module> | |
| <module>hk2</module> | |
| <module>external</module> | |
| <module>hk2-utils</module> | |
| <module>hk2-api</module> | |
| <module>hk2-configuration</module> | |
| <module>hk2-extras</module> | |
| </modules> | |
| <properties> | |
| <jdk.version>17</jdk.version> | |
| <mvn.version>3.9.0</mvn.version> | |
| <jakarta.activation.version>2.1.4</jakarta.activation.version> | |
| <jakarta.annotation.version>3.0.0</jakarta.annotation.version> | |
| <jakarta.enterprise.cdi-api.version>4.1.0</jakarta.enterprise.cdi-api.version> | |
| <jakarta.servlet.version>6.1.0</jakarta.servlet.version> | |
| <jakarta.json.version>2.1.3</jakarta.json.version> | |
| <jakarta.validation.version>3.1.1</jakarta.validation.version> | |
| <jakarta.ws.rs.version>4.0.0</jakarta.ws.rs.version> | |
| <jakarta.el.version>6.0.0</jakarta.el.version> | |
| <parsson.version>1.1.7</parsson.version> | |
| <jaxb-api.version>4.0.5</jaxb-api.version> | |
| <jaxb-runtime.version>4.0.7</jaxb-runtime.version> | |
| <hibernate-validator.version>9.1.0.Final</hibernate-validator.version> | |
| <glassfish.jakarta.el.version>4.0.2</glassfish.jakarta.el.version> | |
| <jtype.version>0.1.3</jtype.version> | |
| <javassist.version>3.30.2-GA</javassist.version> | |
| <junit.version>4.13.2</junit.version> | |
| <asm.version>9.9.1</asm.version> | |
| <woodstox.version>4.1.2</woodstox.version> | |
| <stax-api.version>1.0-2</stax-api.version> | |
| <aopalliance.version>1.0</aopalliance.version> | |
| <testng.version>7.12.0</testng.version> | |
| <assertj.version>3.27.7</assertj.version> | |
| <pax-exam-version>4.14.0</pax-exam-version> | |
| <jakarta-inject.version>2.0.1</jakarta-inject.version> | |
| <org.jboss.logging.version>3.6.3.Final</org.jboss.logging.version> | |
| <jersey.version>4.0.2</jersey.version> | |
| <grizzly.version>4.0.2</grizzly.version> | |
| <hamcrest.version>3.0</hamcrest.version> | |
| <classmate.version>1.7.3</classmate.version> | |
| <springcontext.version>6.2.17</springcontext.version> | |
| <guice.version>7.0.0</guice.version> | |
| <protobuf.version>3.25.9</protobuf.version> | |
| <legal.doc.source>${maven.multiModuleProjectDirectory}/</legal.doc.source> | |
| <findbugs.exclude /> | |
| <findbugs.threshold>High</findbugs.threshold> | |
| <surefireArgLineExtra /> | |
| <release.arguments /> | |
| <manifest.location>target/classes/META-INF/MANIFEST.MF</manifest.location> | |
| <activate.securitymanager /> | |
| </properties> | |
| <dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <groupId>jakarta.activation</groupId> | |
| <artifactId>jakarta.activation-api</artifactId> | |
| <version>${jakarta.activation.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.annotation</groupId> | |
| <artifactId>jakarta.annotation-api</artifactId> | |
| <version>${jakarta.annotation.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.json</groupId> | |
| <artifactId>jakarta.json-api</artifactId> | |
| <version>${jakarta.json.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.xml.bind</groupId> | |
| <artifactId>jakarta.xml.bind-api</artifactId> | |
| <version>${jaxb-api.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jaxb</groupId> | |
| <artifactId>jaxb-runtime</artifactId> | |
| <version>${jaxb-runtime.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.parsson</groupId> | |
| <artifactId>parsson</artifactId> | |
| <version>${parsson.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>woodstox</groupId> | |
| <artifactId>wstx-asl</artifactId> | |
| <version>${woodstox.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.xml.stream</groupId> | |
| <artifactId>stax-api</artifactId> | |
| <version>${stax-api.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-plugin-api</artifactId> | |
| <version>3.9.14</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-core</artifactId> | |
| <version>3.9.14</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.sun.codemodel</groupId> | |
| <artifactId>codemodel</artifactId> | |
| <version>2.6</version> | |
| </dependency> | |
| <!-- FIXME: This dependency is obsoleted and abandoned!!! --> | |
| <dependency> | |
| <groupId>org.apache.maven.shared</groupId> | |
| <artifactId>maven-osgi</artifactId> | |
| <version>0.2.0</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>*</groupId> | |
| <artifactId>*</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>args4j</groupId> | |
| <artifactId>args4j</artifactId> | |
| <version>2.37</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.inject</groupId> | |
| <artifactId>jakarta.inject-api</artifactId> | |
| <version>${jakarta-inject.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.inject</groupId> | |
| <artifactId>guice</artifactId> | |
| <version>${guice.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.hk2</groupId> | |
| <artifactId>osgi-resource-locator</artifactId> | |
| <version>3.0.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.ant</groupId> | |
| <artifactId>ant</artifactId> | |
| <version>1.10.17</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-artifact</artifactId> | |
| <version>3.9.14</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-archiver</artifactId> | |
| <version>3.6.6</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.testng</groupId> | |
| <artifactId>testng</artifactId> | |
| <version>${testng.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.assertj</groupId> | |
| <artifactId>assertj-core</artifactId> | |
| <version>${assertj.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.osgi</groupId> | |
| <artifactId>osgi.core</artifactId> | |
| <version>8.0.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.osgi</groupId> | |
| <artifactId>osgi.cmpn</artifactId> | |
| <version>7.0.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.osgi</groupId> | |
| <artifactId>osgi.annotation</artifactId> | |
| <version>8.1.0</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.enterprise</groupId> | |
| <artifactId>jakarta.enterprise.cdi-api</artifactId> | |
| <version>${jakarta.enterprise.cdi-api.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.osgi</groupId> | |
| <artifactId>osgi.enterprise</artifactId> | |
| <version>7.0.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>org.apache.felix.bundlerepository</artifactId> | |
| <version>2.0.10</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-spi</artifactId> | |
| <version>${pax-exam-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-junit4</artifactId> | |
| <version>${pax-exam-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-link-mvn</artifactId> | |
| <version>${pax-exam-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-inject</artifactId> | |
| <version>${pax-exam-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-invoker-junit</artifactId> | |
| <version>${pax-exam-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-extender-service</artifactId> | |
| <version>${pax-exam-version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>*</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-container-native</artifactId> | |
| <version>${pax-exam-version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>*</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.exam</groupId> | |
| <artifactId>pax-exam-link-assembly</artifactId> | |
| <version>${pax-exam-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.url</groupId> | |
| <artifactId>pax-url-aether</artifactId> | |
| <version>3.0.2</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>*</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>org.apache.felix.framework</artifactId> | |
| <version>7.0.5</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>org.apache.felix.configadmin</artifactId> | |
| <version>1.9.26</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ops4j.pax.logging</groupId> | |
| <artifactId>pax-logging-api</artifactId> | |
| <version>2.3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-context</artifactId> | |
| <version>${springcontext.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate.validator</groupId> | |
| <artifactId>hibernate-validator-cdi</artifactId> | |
| <version>${hibernate-validator.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.googlecode.jtype</groupId> | |
| <artifactId>jtype</artifactId> | |
| <version>${jtype.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.logging</groupId> | |
| <artifactId>jboss-logging</artifactId> | |
| <version>${org.jboss.logging.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.fasterxml</groupId> | |
| <artifactId>classmate</artifactId> | |
| <version>${classmate.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm</artifactId> | |
| <version>${asm.version}</version> | |
| <optional>true</optional> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm-analysis</artifactId> | |
| <version>${asm.version}</version> | |
| <optional>true</optional> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm-commons</artifactId> | |
| <version>${asm.version}</version> | |
| <optional>true</optional> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm-tree</artifactId> | |
| <version>${asm.version}</version> | |
| <optional>true</optional> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm-util</artifactId> | |
| <version>${asm.version}</version> | |
| <optional>true</optional> | |
| </dependency> | |
| <dependency> | |
| <groupId>aopalliance</groupId> | |
| <artifactId>aopalliance</artifactId> | |
| <version>${aopalliance.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.validation</groupId> | |
| <artifactId>jakarta.validation-api</artifactId> | |
| <version>${jakarta.validation.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.el</groupId> | |
| <artifactId>jakarta.el-api</artifactId> | |
| <version>${jakarta.el.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.javassist</groupId> | |
| <artifactId>javassist</artifactId> | |
| <version>${javassist.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate.validator</groupId> | |
| <artifactId>hibernate-validator</artifactId> | |
| <version>${hibernate-validator.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-lang3</artifactId> | |
| <version>3.20.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.containers</groupId> | |
| <artifactId>jersey-container-servlet</artifactId> | |
| <version>${jersey.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.containers</groupId> | |
| <artifactId>jersey-container-grizzly2-http</artifactId> | |
| <version>${jersey.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.inject</groupId> | |
| <artifactId>jersey-hk2</artifactId> | |
| <version>${jersey.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.media</groupId> | |
| <artifactId>jersey-media-json-jackson</artifactId> | |
| <version>${jersey.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.grizzly</groupId> | |
| <artifactId>grizzly-http-servlet</artifactId> | |
| <version>${grizzly.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.servlet</groupId> | |
| <artifactId>jakarta.servlet-api</artifactId> | |
| <version>${jakarta.servlet.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.ws.rs</groupId> | |
| <artifactId>jakarta.ws.rs-api</artifactId> | |
| <version>${jakarta.ws.rs.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.protobuf</groupId> | |
| <artifactId>protobuf-java</artifactId> | |
| <version>${protobuf.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>${junit.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.hamcrest</groupId> | |
| <artifactId>*</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hamcrest</groupId> | |
| <artifactId>hamcrest</artifactId> | |
| <version>${hamcrest.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.easymock</groupId> | |
| <artifactId>easymock</artifactId> | |
| <version>5.6.0</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| </dependencyManagement> | |
| <build> | |
| <finalName>${project.artifactId}</finalName> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-javadoc-plugin</artifactId> | |
| <version>3.12.0</version> | |
| <configuration> | |
| <doclint>none</doclint> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <version>3.6.2</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>com.googlecode.maven-download-plugin</groupId> | |
| <artifactId>maven-download-plugin</artifactId> | |
| <version>1.1.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>findbugs-maven-plugin</artifactId> | |
| <version>3.0.5</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>3.5.5</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-eclipse-plugin</artifactId> | |
| <version>2.10</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.15.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>3.5.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>maven-bundle-plugin</artifactId> | |
| <version>6.0.2</version> | |
| <configuration> | |
| <instructions> | |
| <niceManifest>true</niceManifest> | |
| <_noimportjava>true</_noimportjava> | |
| </instructions> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-plugin-plugin</artifactId> | |
| <version>3.15.2</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>build-helper-maven-plugin</artifactId> | |
| <version>3.6.1</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.glassfish.hk2</groupId> | |
| <artifactId>hk2-inhabitant-generator</artifactId> | |
| <version>${project.version}</version> | |
| <configuration> | |
| <includeDate>false</includeDate> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>3.2.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <version>3.10.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.glassfish.hk2</groupId> | |
| <artifactId>osgiversion-maven-plugin</artifactId> | |
| <version>${project.version}</version> | |
| <executions> | |
| <execution> | |
| <id>compute-osgi-version</id> | |
| <phase>validate</phase> | |
| <goals> | |
| <goal>compute-osgi-version</goal> | |
| </goals> | |
| <configuration> | |
| <dropVersionComponent>qualifier</dropVersionComponent> | |
| <versionPropertyName>project.osgi.version</versionPropertyName> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <version>3.6.2</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-deploy-plugin</artifactId> | |
| <version>3.1.4</version> | |
| <configuration> | |
| <retryFailedDeploymentCount>10</retryFailedDeploymentCount> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-source-plugin</artifactId> | |
| <version>3.4.0</version> | |
| <configuration> | |
| <includePom>true</includePom> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-site-plugin</artifactId> | |
| <version>3.21.0</version> | |
| <configuration> | |
| <skip>true</skip> | |
| <skipDeploy>true</skipDeploy> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-release-plugin</artifactId> | |
| <version>3.3.1</version> | |
| <configuration> | |
| <tagNameFormat>@{project.version}</tagNameFormat> | |
| <arguments>${release.arguments}</arguments> | |
| <!-- PAX searches for dependencies in local maven repository --> | |
| <preparationGoals>clean install</preparationGoals> | |
| </configuration> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.maven.scm</groupId> | |
| <artifactId>maven-scm-provider-gitexe</artifactId> | |
| <version>2.2.1</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.glassfish.copyright</groupId> | |
| <artifactId>glassfish-copyright-maven-plugin</artifactId> | |
| <version>2.4</version> | |
| <configuration> | |
| <scm>git</scm> | |
| <scmOnly>true</scmOnly> | |
| <exclude> | |
| <exclude>LICENSE.md</exclude> | |
| <exclude>MANIFEST.MF</exclude> | |
| <exclude>README</exclude> | |
| <exclude>hk2-locator/</exclude> | |
| <exclude>META-INF/services/</exclude> | |
| <exclude>META-INF/inhabitants/</exclude> | |
| <exclude>resources/gendir</exclude> | |
| <exclude>.png</exclude> | |
| <exclude>.class</exclude> | |
| <exclude>.json</exclude> | |
| <exclude>.txt</exclude> | |
| <exclude>.pbuf</exclude> | |
| </exclude> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-scm-publish-plugin</artifactId> | |
| <version>3.3.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.servicemix.tooling</groupId> | |
| <artifactId>depends-maven-plugin</artifactId> | |
| <version>1.5.0</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-install-plugin</artifactId> | |
| <version>3.1.4</version> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-eclipse-plugin</artifactId> | |
| <configuration> | |
| <downloadSources>true</downloadSources> | |
| <downloadJavadocs>true</downloadJavadocs> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <configuration> | |
| <release>${jdk.version}</release> | |
| <compilerArgument>-proc:full</compilerArgument> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <systemPropertyVariables> | |
| <java.util.logging.config.file>logging.properties</java.util.logging.config.file> | |
| <net.bytebuddy.experimental>true</net.bytebuddy.experimental> | |
| </systemPropertyVariables> | |
| <rerunFailingTestsCount>3</rerunFailingTestsCount> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>findbugs-maven-plugin</artifactId> | |
| <configuration> | |
| <skip>${findbugs.skip}</skip> | |
| <threshold>${findbugs.threshold}</threshold> | |
| <findbugsXmlWithMessages>true</findbugsXmlWithMessages> | |
| <excludeFilterFile> | |
| exclude-common.xml,${findbugs.exclude} | |
| </excludeFilterFile> | |
| </configuration> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.glassfish.findbugs</groupId> | |
| <artifactId>findbugs</artifactId> | |
| <version>1.7</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>maven-bundle-plugin</artifactId> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <configuration> | |
| <archive> | |
| <manifestFile>${manifest.location}</manifestFile> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>enforce-versions</id> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| <configuration> | |
| <rules> | |
| <requireJavaVersion> | |
| <version>[${jdk.version},)</version> | |
| <message>You need JDK ${jdk.version} and above!</message> | |
| </requireJavaVersion> | |
| <requireMavenVersion> | |
| <version>[${mvn.version},)</version> | |
| <message>You need Maven ${mvn.version} or above!</message> | |
| </requireMavenVersion> | |
| </rules> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>build-helper-maven-plugin</artifactId> | |
| <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> | |
| </plugins> | |
| </build> | |
| <profiles> | |
| <profile> | |
| <id>securitymanager</id> | |
| <activation> | |
| <jdk>(,23]</jdk> | |
| </activation> | |
| <properties> | |
| <activate.securitymanager>-Djava.security.manager</activate.securitymanager> | |
| </properties> | |
| </profile> | |
| <profile> | |
| <id>jacoco</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <!-- <argLine>-enableassertions</argLine> --> | |
| <argLine>@{surefireArgLineExtra}</argLine> | |
| <systemProperties> | |
| <property> | |
| <name>java.util.logging.config.file</name> | |
| <value>logging.properties</value> | |
| </property> | |
| </systemProperties> | |
| </configuration> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jacoco</groupId> | |
| <artifactId>jacoco-maven-plugin</artifactId> | |
| <version>0.8.14</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.jacoco</groupId> | |
| <artifactId>jacoco-maven-plugin</artifactId> | |
| <version>0.8.14</version> | |
| <executions> | |
| <!-- Prepares the property pointing to the JaCoCo runtime agent which | |
| is passed as VM argument when Maven the Surefire plugin is executed. --> | |
| <execution> | |
| <id>agent-jacoco-property</id> | |
| <goals> | |
| <goal>prepare-agent</goal> | |
| </goals> | |
| <configuration> | |
| <!-- Sets the path to the file which contains the execution data. --> | |
| <destFile>${project.build.directory}/jacoco.exec</destFile> | |
| <!-- Sets the name of the property containing the settings for JaCoCo | |
| runtime agent. --> | |
| <propertyName>surefireArgLineExtra</propertyName> | |
| </configuration> | |
| </execution> | |
| <!-- Ensures that the code coverage report for unit tests is created | |
| after unit tests have been run. --> | |
| <execution> | |
| <id>post-unit-test</id> | |
| <goals> | |
| <goal>report</goal> | |
| </goals> | |
| <configuration> | |
| <!-- Sets the path to the file which contains the execution data. --> | |
| <dataFile>${project.build.directory}/jacoco.exec</dataFile> | |
| <!-- Sets the output directory for the code coverage report. --> | |
| <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| </project> |