Commit 1fd6624e authored by 侯力峰's avatar 侯力峰
Browse files

修改pom文件,采用多profile配置以分别管理提交到公司私仓和maven中央仓库。

parent 360c10ae
......@@ -6,7 +6,7 @@
<parent>
<groupId>cn.spatiotemporal</groupId>
<artifactId>spatiotemporal-commons</artifactId>
<version>1.0.0-RELEASE</version>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>cn.spatiotemporal</groupId>
<artifactId>spatiotemporal-commons</artifactId>
<version>1.0.0-RELEASE</version>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>cn.spatiotemporal</groupId>
<artifactId>spatiotemporal-commons</artifactId>
<version>1.0.0-RELEASE</version>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -6,7 +6,7 @@
<groupId>cn.spatiotemporal</groupId>
<artifactId>spatiotemporal-commons</artifactId>
<version>1.0.0-RELEASE</version>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>spatiotemporal-commons</name>
<description>时空开放平台 公用套件</description>
......@@ -17,10 +17,6 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<gpg.passphrase>inzY@2021</gpg.passphrase>
<gpg.keyname>B8C1C0AE356B473E3C370EA40C4297A10DC28BE0</gpg.keyname>
<gpg.homedir>C:\\Users\\marquis\\AppData\\Roaming\\gnupg</gpg.homedir>
<!-- tools -->
<hutool.version>5.8.21</hutool.version>
......@@ -136,19 +132,6 @@
<tag>${project.version}</tag>
</scm>
<!-- 中央仓库OSSRH地址配置 -->
<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>
<build>
<plugins>
<plugin>
......@@ -159,60 +142,6 @@
<target>1.8</target>
</configuration>
</plugin>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<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.10.4</version>
<configuration>
<additionalJOptions>
<additionalJOption>-Xdoclint:none</additionalJOption>
</additionalJOptions>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- GPG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment