添加中央仓库打包配置

This commit is contained in:
smallchill 2018-12-29 00:34:39 +08:00
parent cba8cf3417
commit 777b991bb3

62
pom.xml
View File

@ -30,9 +30,9 @@
</license> </license>
</licenses> </licenses>
<scm> <scm>
<connection>scm:git@github.com:chillzhuang/blade-tool.git</connection> <connection>https://github.com/chillzhuang/blade-tool.git</connection>
<developerConnection>scm:git@github.com:chillzhuang/blade-tool.git</developerConnection> <developerConnection>https://github.com/chillzhuang</developerConnection>
<url>git@github.com:chillzhuang/blade-tool.git</url> <url>https://github.com/chillzhuang/blade-tool.git</url>
</scm> </scm>
<properties> <properties>
@ -161,42 +161,48 @@
</resource> </resource>
</resources> </resources>
<plugins> <plugins>
<plugin> <!-- Source -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<!-- 打jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- 打source包 -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version> <version>2.2.1</version>
<configuration>
<attach>true</attach>
</configuration>
<executions> <executions>
<execution> <execution>
<phase>compile</phase> <phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>package</phase>
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- GPG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>