maven-demo
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.github.houxinlin</groupId>
<artifactId>maven-demo</artifactId>
<version>1.0</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.github.houxinlin</groupId>
<artifactId>maven-demo</artifactId>
<version>1.0</version>
<name>test</name>
<description>tee</description>
<url>com.houxinin</url>
<!--打包方式-->
<packaging>jar</packaging>
<!--maven工程配置-->
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
<!--许可证信息,根据自己的情况修改-->
<licenses>
<license>
<name>The Apache Software License, Version2.0</name>
<url>http://www.apache.org/licenses/</url>
<distribution>repo</distribution>
</license>
</licenses>
<!--托管仓库信息,根据自己的应用情况修改-->
<scm>
<url>项目地址</url>
<connection>项目git地址</connection>
<developerConnection>项目地址</developerConnection>
</scm>
<!--开发者信息-->
<developers>
<developer>
<name>姓名</name>
<email>邮箱</email>
<url>主页</url>
</developer>
</developers>
<!--仓库地址配置信息-->
<distributionManagement>
<snapshotRepository>
<!--id 要与setting.xml server id一致 -->
<id>snapshot</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<!--id 要与setting.xml server id一致 -->
<id>release</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>
<!--发布到oss.sonatype.org需要的组件,已经配置好,无需修改-->
<build>
<plugins>
<!--java source生成插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!--java doc生成插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--gpg签名插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>