docs:update pom.xml for deploying to Maven Central

pull/2/head
SkyeBeFreeman 3 years ago
parent b6e0673d41
commit eb7cdf56b2

@ -19,18 +19,25 @@
<licenses> <licenses>
<license> <license>
<name>Apache License, Version 2.0</name> <name>The BSD 3-Clause License (BSD3)</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> <url>https://raw.githubusercontent.com/Tencent/spring-cloud-tencent/main/LICENSE</url>
<distribution>repo</distribution> <distribution>repo</distribution>
</license> </license>
</licenses> </licenses>
<scm>
<url>https://github.com/Tencent/spring-cloud-tencent</url>
<connection>scm:git:git@github.com:Tencent/spring-cloud-tencent.git</connection>
<developerConnection>scm:git:git@github.com:Tencent/spring-cloud-tencent.git</developerConnection>
</scm>
<modules> <modules>
<module>spring-cloud-tencent-dependencies</module> <module>spring-cloud-tencent-dependencies</module>
<module>spring-cloud-tencent-starters</module> <module>spring-cloud-tencent-starters</module>
<module>spring-cloud-tencent-examples</module> <module>spring-cloud-tencent-examples</module>
<module>spring-cloud-tencent-docs</module> <module>spring-cloud-tencent-docs</module>
<module>spring-cloud-tencent-converage</module> <module>spring-cloud-tencent-coverage</module>
</modules> </modules>
<developers> <developers>
@ -120,6 +127,39 @@
<reuseForks>false</reuseForks> <reuseForks>false</reuseForks>
</configuration> </configuration>
</plugin> </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>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
@ -132,44 +172,47 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<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>${maven-source-plugin.version}</version> <version>${maven-source-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <phase>package</phase>
<goals> <goals>
<goal>jar</goal> <goal>jar-no-fork</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>flatten-maven-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version> <version>${maven-gpg-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions> <executions>
<execution> <execution>
<id>flatten</id> <phase>verify</phase>
<phase>process-resources</phase>
<goals> <goals>
<goal>flatten</goal> <goal>sign</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<distributionManagement>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>nexus-releases</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project> </project>

@ -10,8 +10,12 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>spring-cloud-tencent-converage</artifactId> <artifactId>spring-cloud-tencent-coverage</artifactId>
<name>Spring Cloud Tencent Converage</name> <name>Spring Cloud Tencent Coverage</name>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies> <dependencies>
<dependency> <dependency>

@ -12,13 +12,13 @@
<groupId>com.tencent.cloud</groupId> <groupId>com.tencent.cloud</groupId>
<artifactId>spring-cloud-tencent-dependencies</artifactId> <artifactId>spring-cloud-tencent-dependencies</artifactId>
<version>0.1.0.Hoxton.BETA</version> <version>${revision}</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Spring Cloud Tencent Dependencies</name> <name>Spring Cloud Tencent Dependencies</name>
<description>Spring Cloud Tencent Dependencies</description> <description>Spring Cloud Tencent Dependencies</description>
<properties> <properties>
<revision>0.0.1-SNAPSHOT</revision> <revision>1.0.0.Hoxton.SR9</revision>
<polaris.version>0.8.0-SNAPSHOT</polaris.version> <polaris.version>0.8.0-SNAPSHOT</polaris.version>
<tomcat.version>10.0.0-M6</tomcat.version> <tomcat.version>10.0.0-M6</tomcat.version>
<powermock.version>2.0.0</powermock.version> <powermock.version>2.0.0</powermock.version>

@ -14,4 +14,8 @@
<name>Spring Cloud Tencent Documentation</name> <name>Spring Cloud Tencent Documentation</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project> </project>

@ -21,4 +21,8 @@
<module>polaris-circuitbreaker-example</module> <module>polaris-circuitbreaker-example</module>
</modules> </modules>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project> </project>
Loading…
Cancel
Save