Change pom.xml for central repository deploy

This commit is contained in:
ken.lj 2018-03-14 15:43:54 +08:00
parent 9262889549
commit 5dba3998c2
13 changed files with 127 additions and 34 deletions

View File

@ -340,6 +340,36 @@ limitations under the License.
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
</dependency>
<!-- Temporarily add this part to exclude transitive dependency -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit_version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock_version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jmockit</groupId>
<artifactId>jmockit</artifactId>
<version>${jmockit_version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${cglib_version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>

View File

@ -291,4 +291,26 @@
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@ -323,4 +323,26 @@
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@ -27,6 +27,6 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The demo module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
</project>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The demo consumer module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<dependencies>
<dependency>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The demo provider module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<dependencies>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The demo module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<modules>
<module>dubbo-demo-api</module>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The performance benchmark kit test module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<build>

View File

@ -30,7 +30,7 @@
<description>The technology compatibility kit(TCK) test module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<dependencyManagement>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The examples demo module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<build>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The showcase test module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<build>

View File

@ -27,7 +27,7 @@ limitations under the License.
<name>${project.artifactId}</name>
<description>The test module of dubbo project</description>
<properties>
<skip_maven_deploy>false</skip_maven_deploy>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
<modules>
<module>dubbo-test-benchmark</module>

69
pom.xml
View File

@ -181,6 +181,50 @@ limitations under the License.
</argline>
</properties>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven_javadoc_version}</version>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<doclint>none</doclint>
</configuration>
</execution>
</executions>
<configuration>
<show>public</show>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<excludePackageNames>com.alibaba.com.*</excludePackageNames>
<links>
<link>http://docs.oracle.com/javase/7/docs/api</link>
</links>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
@ -211,31 +255,6 @@ limitations under the License.
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven_javadoc_version}</version>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<doclint>none</doclint>
</configuration>
</execution>
</executions>
<configuration>
<show>public</show>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<excludePackageNames>com.alibaba.com.*</excludePackageNames>
<links>
<link>http://docs.oracle.com/javase/6/docs/api</link>
</links>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>