maven-hello-world
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.chensoul</groupId> <artifactId>maven-hello-world</artifactId> <version>0.0.1</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>com.chensoul</groupId> <artifactId>maven-hello-world</artifactId> <packaging>jar</packaging> <version>0.0.1</version> <name>${project.artifactId}</name> <description>A lightweight Maven hello world</description> <inceptionYear>2023</inceptionYear> <url>https://github.com/chensoul/${project.artifactId}</url> <scm> <url>https://github.com/chensoul/${project.artifactId}.git</url> <connection>scm:git:https://github.com/chensoul/${project.artifactId}.git</connection> <developerConnection>scm:git:https://github.com/chensoul/${project.artifactId}.git</developerConnection> <tag>maven-hello-world-0.0.1</tag> </scm> <organization> <name>ChenSoul™</name> <url>https://blog.chensoul.com/</url> </organization> <developers> <developer> <id>chensoul</id> <name>chensoul</name> <email>chensoul.eth@gmail.com</email> <url>https://blog.chensoul.com</url> <roles> <role>architect</role> <role>developer</role> </roles> <timezone>+8</timezone> </developer> </developers> <licenses> <license> <comments>The Apache License, Version 2.0</comments> <distribution>repo</distribution> <name>Apache License 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <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> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.0</version> <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> <version>3.6.0</version> <configuration> <additionalJOptions combine.children="append"> <additionalJOption>-J-Dhttp.agent=maven-javadoc-plugin</additionalJOption> </additionalJOptions> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>3.0.1</version> <configuration> <tagNameFormat>${project.artifactId}-@{project.version}</tagNameFormat> </configuration> <executions> <execution> <id>default</id> <goals> <goal>perform</goal> </goals> </execution> </executions> </plugin> </plugins> </pluginManagement> </build> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <profiles> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://s01.oss.sonatype.org</nexusUrl> <autoReleaseAfterClose>${env.AUTO_RELEASE_AFTER_CLOSE}</autoReleaseAfterClose> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.1.0</version> <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> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> </plugins> </build> </profile> </profiles> </project>