micronaut-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.micronaut.build</groupId> <artifactId>micronaut-maven-plugin</artifactId> <version>3.5.4</version> </dependency>
<?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> <groupId>io.micronaut.build</groupId> <artifactId>micronaut-maven-plugin</artifactId> <version>3.5.4</version> <packaging>maven-plugin</packaging> <name>Micronaut Maven Plugin</name> <description>Maven plugin to execute and package Micronaut applications</description> <url>https://github.com/micronaut-projects/micronaut-maven-plugin</url> <inceptionYear>2020</inceptionYear> <prerequisites> <maven>${maven.version}</maven> </prerequisites> <issueManagement> <system>GitHub</system> <url>https://github.com/micronaut-projects/micronaut-maven-plugin/issues</url> </issueManagement> <ciManagement> <system>GitHub Actions</system> <url>https://github.com/micronaut-projects/micronaut-maven-plugin/actions</url> </ciManagement> <distributionManagement> <repository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> <snapshotRepository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <scm> <url>https://github.com/micronaut-projects/micronaut-maven-plugin</url> <connection>scm:git:git@github.com:micronaut-projects/micronaut-maven-plugin.git</connection> <developerConnection>scm:git:git@github.com:micronaut-projects/micronaut-maven-plugin.git</developerConnection> <tag>v3.5.4</tag> </scm> <licenses> <license> <name>Apache License, Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <organization> <name>Micronaut</name> <url>https://micronaut.io/</url> </organization> <developers> <developer> <name>Álvaro Sánchez-Mariscal</name> <url>https://github.com/alvarosanchez</url> </developer> </developers> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.version>3.3.9</maven.version> <maven.resources-plugin.version>3.3.0</maven.resources-plugin.version> <maven.archiver-plugin.version>3.6.0</maven.archiver-plugin.version> <site.path>${project.artifactId}</site.path> <site.name>${project.name}</site.name> <site.description>${project.description}</site.description> <site.version>${project.version}</site.version> <project.build.outputTimestamp>2023-06-01T13:40:32Z</project.build.outputTimestamp> <native-maven-plugin.version>0.9.19</native-maven-plugin.version> <micronaut.version>3.8.4</micronaut.version> <micronaut.aot.version>1.1.1</micronaut.aot.version> <micronaut.test.resources.version>1.2.3</micronaut.test.resources.version> <it.micronaut.version>3.7.5-SNAPSHOT</it.micronaut.version> <sonar.host.url>https://sonarcloud.io</sonar.host.url> <sonar.organization>micronaut-projects</sonar.organization> <sonar.projectKey>micronaut-projects_micronaut-maven-plugin</sonar.projectKey> <sonar.java.source>8</sonar.java.source> <sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> <sonar.java.checkstyle.reportPaths>${project.build.directory}/checkstyle-result.xml</sonar.java.checkstyle.reportPaths> <jacoco.version>0.8.8</jacoco.version> <junit-jupiter.version>5.9.2</junit-jupiter.version> </properties> <repositories> <repository> <id>sonatype-snapshots</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>false</enabled> </releases> </repository> </repositories> <dependencies> <!-- Maven --> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${maven.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> <version>${maven.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-settings</artifactId> <version>${maven.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <version>${maven.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>${maven.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-compat</artifactId> <version>${maven.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.shared</groupId> <artifactId>maven-shared-utils</artifactId> <version>3.3.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven.shared</groupId> <artifactId>maven-invoker</artifactId> <version>3.2.0</version> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <version>3.7.1</version> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>${maven.resources-plugin.version}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-archiver</artifactId> <version>${maven.archiver-plugin.version}</version> </dependency> <dependency> <groupId>org.twdata.maven</groupId> <artifactId>mojo-executor</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>org.apache.maven.resolver</groupId> <artifactId>maven-resolver-util</artifactId> <version>1.9.4</version> </dependency> <dependency> <groupId>io.methvin</groupId> <artifactId>directory-watcher</artifactId> <version>0.18.0</version> </dependency> <!-- Jib --> <dependency> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>3.3.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin-extension-api</artifactId> <version>0.4.0</version> </dependency> <dependency> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-native-image-extension-maven</artifactId> <version>0.1.0</version> </dependency> <dependency> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-core</artifactId> <version>0.23.0</version> </dependency> <dependency> <groupId>com.github.docker-java</groupId> <artifactId>docker-java-core</artifactId> <version>3.2.14</version> </dependency> <dependency> <groupId>com.github.docker-java</groupId> <artifactId>docker-java-transport-zerodep</artifactId> <version>3.2.14</version> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers</artifactId> <version>1.17.6</version> </dependency> <dependency> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <version>${native-maven-plugin.version}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId> <version>1.22</version> </dependency> <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-inject</artifactId> <version>${micronaut.version}</version> </dependency> <dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>1.33</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> <version>2.14.2</version> </dependency> <!-- JUnit --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit-jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> <version>3.3.0</version> <scope>test</scope> </dependency> <!-- Micronaut AOT --> <dependency> <groupId>io.micronaut.aot</groupId> <artifactId>micronaut-aot-std-optimizers</artifactId> <version>${micronaut.aot.version}</version> </dependency> <dependency> <groupId>io.micronaut.testresources</groupId> <artifactId>micronaut-test-resources-build-tools</artifactId> <version>${micronaut.test.resources.version}</version> </dependency> </dependencies> <build> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.2.0</version> </plugin> <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_maven-plugin_packaging --> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.3.0</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.10.1</version> </plugin> <plugin> <artifactId>maven-plugin-plugin</artifactId> <version>3.7.1</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <version>3.3.0</version> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>3.1.0</version> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>3.1.0</version> </plugin> <plugin> <artifactId>maven-invoker-plugin</artifactId> <version>3.4.0</version> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>3.4.1</version> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.12.1</version> </plugin> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>3.4.2</version> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> </plugin> <plugin> <artifactId>maven-jxr-plugin</artifactId> <version>3.3.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.0.1</version> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>3.0.0-M7</version> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <version>3.2.1</version> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>8.33</version> </dependency> </dependencies> </plugin> <plugin> <groupId>com.diffplug.spotless</groupId> <artifactId>spotless-maven-plugin</artifactId> <version>2.30.0</version> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${jacoco.version}</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <configuration> <goalPrefix>mn</goalPrefix> <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> </configuration> <executions> <execution> <id>mojo-descriptor</id> <goals> <goal>descriptor</goal> </goals> </execution> <execution> <id>help-goal</id> <goals> <goal>helpmojo</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <configuration> <asciidoc> <attributes> <icons>font</icons> <source-highlighter>coderay</source-highlighter> <coderay-css>style</coderay-css> </attributes> </asciidoc> </configuration> <dependencies> <dependency><!-- add Asciidoctor Doxia Parser Module --> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <version>2.2.2</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> <detail>true</detail> <keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure> <stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <configuration> <retryFailedDeploymentCount>5</retryFailedDeploymentCount> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <configuration> <tagNameFormat>v@{project.version}</tagNameFormat> <releaseProfiles>release</releaseProfiles> <preparationGoals>clean verify site:site</preparationGoals> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <sourceDirectories> <sourceDirectory>src/main/java</sourceDirectory> </sourceDirectories> <configLocation>${project.basedir}/config/checkstyle/checkstyle.xml</configLocation> <propertyExpansion>config_loc=${project.basedir}/config/checkstyle</propertyExpansion> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> <failOnViolation>true</failOnViolation> <linkXRef>false</linkXRef> <maxAllowedViolations>1</maxAllowedViolations> </configuration> <executions> <execution> <id>checkstyle-check</id> <phase>compile</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>com.diffplug.spotless</groupId> <artifactId>spotless-maven-plugin</artifactId> <configuration> <formats> <format> <includes> <include>src/main/**/package-info.java</include> <include>src/main/**/module-info.java</include> </includes> <licenseHeader> <file>${project.basedir}/config/spotless.license.java</file> <delimiter>/\*\*</delimiter> </licenseHeader> </format> </formats> <java> <excludes> <exclude>src/test/java/**/*.java</exclude> </excludes> <licenseHeader> <file>${project.basedir}/config/spotless.license.java</file> </licenseHeader> </java> </configuration> <executions> <execution> <!-- Runs in compile phase to fail fast in case of formatting issues.--> <id>spotless-check</id> <phase>compile</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <minmemory>128m</minmemory> <maxmemory>512</maxmemory> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <reportSets> <reportSet> <reports> <report>ci-management</report> <report>dependencies</report> <report>dependency-info</report> <report>issue-management</report> <report>licenses</report> <report>plugin-management</report> <report>plugins</report> <report>scm</report> <report>summary</report> <report>team</report> </reports> </reportSet> </reportSets> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <reportSets> <reportSet> <reports> <report>checkstyle</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> <profiles> <profile> <id>run-its</id> <properties> <!-- Enable recording of coverage during execution of maven-invoker-plugin --> <jacoco.propertyName>invoker.mavenOpts</jacoco.propertyName> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-invoker-plugin</artifactId> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy</artifactId> <version>3.0.15</version> </dependency> </dependencies> <configuration> <streamLogs>true</streamLogs> <failIfNoProjects>true</failIfNoProjects> <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> <pomIncludes> <pomInclude>*/pom.xml</pomInclude> </pomIncludes> <postBuildHookScript>verify</postBuildHookScript> <selectorScript>selector</selectorScript> <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> <settingsFile>src/it/settings.xml</settingsFile> <scriptVariables> <nativeMavenPluginVersion>${native-maven-plugin.version}</nativeMavenPluginVersion> <pluginVersion>${project.version}</pluginVersion> </scriptVariables> <goals> <goal>clean</goal> <goal>test-compile</goal> </goals> <extraArtifacts> <extraArtifact>org.jacoco:org.jacoco.agent:${jacoco.version}:jar:runtime</extraArtifact> </extraArtifacts> <writeJunitReport>true</writeJunitReport> </configuration> <executions> <execution> <id>integration-test</id> <goals> <goal>install</goal> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>