Skip to content

Commit

Permalink
新增sandbox-module-starter模块
Browse files Browse the repository at this point in the history
  • Loading branch information
luanjia committed Feb 25, 2018
1 parent da70324 commit b980e0c
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 60 deletions.
60 changes: 40 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>versions-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -87,6 +95,19 @@
</plugins>
</build>

<modules>
<module>sandbox-agent</module>
<module>sandbox-core</module>
<module>sandbox-api</module>
<module>sandbox-spy</module>
<module>sandbox-mgr-module</module>
<module>sandbox-provider-api</module>
<module>sandbox-common-api</module>
<module>sandbox-mgr-provider</module>
<module>sandbox-module-starter</module>
<module>sandbox-debug-module</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down Expand Up @@ -200,23 +221,17 @@
<version>1.2</version>
</dependency>

<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
<version>1.7</version>
<scope>compile</scope>
</dependency>

</dependencies>
</dependencyManagement>


<modules>
<module>sandbox-agent</module>
<module>sandbox-core</module>
<module>sandbox-api</module>
<module>sandbox-spy</module>
<module>sandbox-debug-module</module>
<module>sandbox-mgr-module</module>
<module>sandbox-provider-api</module>
<module>sandbox-common-api</module>
<module>sandbox-mgr-provider</module>
</modules>


<!-- 这里是为了发布到MAVEN中央仓库所做的配置 -->
<distributionManagement>
<snapshotRepository>
Expand All @@ -229,8 +244,8 @@
</repository>
</distributionManagement>

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

<licenses>
<license>
Expand All @@ -239,6 +254,11 @@
</license>
</licenses>

<organization>
<name>Alibaba Open Source</name>
<url>https://github.com/alibaba</url>
</organization>

<developers>
<developer>
<name>luanjia</name>
Expand Down
1 change: 0 additions & 1 deletion sandbox-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
1 change: 0 additions & 1 deletion sandbox-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
37 changes: 2 additions & 35 deletions sandbox-debug-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,18 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<artifactId>sandbox-module-starter</artifactId>
<version>1.0.11-SNAPSHOT</version>
<relativePath>../sandbox-module-starter/pom.xml</relativePath>
</parent>
<artifactId>sandbox-debug-module</artifactId>
<name>sandbox-debug-module ${project.version}</name>

<build>
<finalName>sandbox-debug-module-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>attached</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
Expand All @@ -44,21 +26,6 @@

<dependencies>

<!-- 引入sandbox-api -->
<dependency>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox-api</artifactId>
<scope>provided</scope>
</dependency>

<!-- 引入META-INFO/services自动生成 -->
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
<version>1.7</version>
<scope>compile</scope>
</dependency>

<!-- DEBUG工程公共依赖模块,SANDBOX父工程托管 -->
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
1 change: 0 additions & 1 deletion sandbox-mgr-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
1 change: 0 additions & 1 deletion sandbox-mgr-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
51 changes: 51 additions & 0 deletions sandbox-module-starter/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.11-SNAPSHOT</version>
</parent>
<artifactId>sandbox-module-starter</artifactId>
<name>sandbox-module-starter ${project.version}</name>
<packaging>pom</packaging>

<build>
<finalName>sandbox-debug-module-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>attached</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>

</project>
1 change: 0 additions & 1 deletion sandbox-spy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down

0 comments on commit b980e0c

Please sign in to comment.