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,31 +127,6 @@
<reuseForks>false</reuseForks> <reuseForks>false</reuseForks>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId> <artifactId>flatten-maven-plugin</artifactId>
@ -172,4 +154,65 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<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>
<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>
</plugins>
</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