Update pom.xml

pull/1326/head
mercyblitz 5 years ago
parent a198133852
commit f2c7ecaafc

@ -101,6 +101,7 @@
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version> <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version> <flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
@ -358,6 +359,19 @@
<id>release</id> <id>release</id>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>

@ -25,6 +25,12 @@
<nacos.client.version>1.2.1</nacos.client.version> <nacos.client.version>1.2.1</nacos.client.version>
<nacos.config.version>0.8.0</nacos.config.version> <nacos.config.version>0.8.0</nacos.config.version>
<spring.context.support.version>1.0.6</spring.context.support.version> <spring.context.support.version>1.0.6</spring.context.support.version>
<!-- Maven Plugin Versions -->
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -253,67 +259,91 @@
</dependencyManagement> </dependencyManagement>
<profiles> <profiles>
<profile> <profile>
<id>spring</id> <id>release</id>
<repositories> <build>
<repository> <plugins>
<id>spring-snapshots</id> <plugin>
<name>Spring Snapshots</name> <groupId>org.apache.maven.plugins</groupId>
<url>https://repo.spring.io/libs-snapshot-local</url> <artifactId>maven-source-plugin</artifactId>
<snapshots> <version>${maven-source-plugin.version}</version>
<enabled>true</enabled> <executions>
</snapshots> <execution>
<releases> <phase>package</phase>
<enabled>false</enabled> <goals>
</releases> <goal>jar-no-fork</goal>
</repository> </goals>
<repository> </execution>
<id>spring-milestones</id> </executions>
<name>Spring Milestones</name> </plugin>
<url>https://repo.spring.io/libs-milestone-local</url> <plugin>
<snapshots> <groupId>org.apache.maven.plugins</groupId>
<enabled>false</enabled> <artifactId>maven-javadoc-plugin</artifactId>
</snapshots> <version>${maven-javadoc-plugin.version}</version>
</repository> <executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository> <repository>
<id>spring-releases</id> <id>sonatype-nexus-staging</id>
<name>Spring Releases</name> <name>Nexus Release Repository</name>
<url>https://repo.spring.io/release</url> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository> </repository>
</repositories> </distributionManagement>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>https://repo.spring.io/libs-release-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile> </profile>
</profiles> </profiles>

Loading…
Cancel
Save