Skip to content

Commit

Permalink
发布正式版本到MAVEN中央仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
dukun committed Nov 15, 2017
1 parent 0db9382 commit e780ce2
Show file tree
Hide file tree
Showing 13 changed files with 84 additions and 17 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.iml
## for IDEA
.idea
*.iml

## for maven
target
*/*.iml
*/target
pom.xml.versionsBackup
7 changes: 7 additions & 0 deletions bin/sandbox-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

## define the GPG_TTY for input password
export GPG_TTY=$(tty)

## maven clean & deploy to maven repo
mvn -f ../pom.xml clean deploy
66 changes: 62 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<packaging>pom</packaging>

<name>sandbox</name>
<name>sandbox ${project.version}</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -54,6 +54,34 @@
</execution>
</executions>
</plugin>

<!-- 为了发布到MAVEN中央仓库而用的插件 -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>luanjia-ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down Expand Up @@ -82,12 +110,12 @@
<dependency>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox-util</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox-spy</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -204,5 +232,35 @@
</repository>
</distributionManagement>

<description>Alibaba JVM-Sandbox OpenSource Project</description>
<url>https://github.com/alibaba/JVM-Sandbox</url>

<licenses>
<license>
<name>GPLv3</name>
<url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<name>luanjia</name>
<email>dongchenxu_seu@163.com</email>
<organization>Alibaba Open Source</organization>
<organizationUrl>https://github.com/alibaba</organizationUrl>
</developer>
<developer>
<name>vlinux</name>
<email>oldmanpushcart@gmail.com</email>
</developer>
</developers>

<scm>
<connection>scm:git:https://github.com/alibaba/JVM-Sandbox.git</connection>
<developerConnection>scm:git:https://github.com/alibaba/JVM-Sandbox.git</developerConnection>
<url>https://github.com/alibaba/JVM-Sandbox</url>
</scm>



</project>
2 changes: 1 addition & 1 deletion sandbox-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-agent</artifactId>
<name>sandbox-agent ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-api</artifactId>
<version>${sandbox.api.version}</version>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-common-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-common-api</artifactId>
<version>${sandbox.common.api.version}</version>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-core</artifactId>
<name>sandbox-core ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-debug-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-debug-module</artifactId>
<name>sandbox-debug-module ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-mgr-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-mgr-module</artifactId>
<name>sandbox-mgr-module ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-mgr-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-mgr-provider</artifactId>
<name>sandbox-mgr-provider ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-provider-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-provider-api</artifactId>
<version>${sandbox.provider.api.version}</version>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-spy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-spy</artifactId>
<name>sandbox-spy ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>sandbox-util</artifactId>
<name>sandbox-util ${project.version}</name>
Expand Down

0 comments on commit e780ce2

Please sign in to comment.