整理示例代码的pom文件
diff --git a/samples/bar/pom.xml b/samples/bar/pom.xml
index 064db1f..0104298 100644
--- a/samples/bar/pom.xml
+++ b/samples/bar/pom.xml
@@ -3,14 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>com.supwisdom.buildcommons</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.1.RELEASE-1.0-SNAPSHOT</version>
+ <groupId>com.supwisdom.leaveschool</groupId>
+ <artifactId>samples-parent</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.supwisdom.leaveschool</groupId>
<artifactId>sample-bar</artifactId>
- <version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
diff --git a/samples/foo/pom.xml b/samples/foo/pom.xml
index a3dfe85..3bd8bde 100644
--- a/samples/foo/pom.xml
+++ b/samples/foo/pom.xml
@@ -3,28 +3,15 @@
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>com.supwisdom.buildcommons</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.1.RELEASE-1.0-SNAPSHOT</version>
+ <groupId>com.supwisdom.leaveschool</groupId>
+ <artifactId>samples-parent</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.supwisdom.leaveschool</groupId>
<artifactId>sample-foo</artifactId>
- <version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.supwisdom.leaveschool</groupId>
- <artifactId>samples-dependencies</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
<dependencies>
<dependency>
diff --git a/samples/pom.xml b/samples/pom.xml
index b84b88f..c55d603 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -3,19 +3,56 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.supwisdom.buildcommons</groupId>
+ <artifactId>spring-boot-starter-parent</artifactId>
+ <version>2.0.1.RELEASE-1.0-SNAPSHOT</version>
+ </parent>
+
<groupId>com.supwisdom.leaveschool</groupId>
- <artifactId>samples-aggregator</artifactId>
+ <artifactId>samples-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
+
+ <infras.version>0.0.1-SNAPSHOT</infras.version>
</properties>
+
+ <repositories>
+ <repository>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <id>supwisdom</id>
+ <url>http://app.supwisdom.com/nexus/content/groups/public/</url>
+ </repository>
+ <repository>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <id>central</id>
+ <url>http://repo.maven.apache.org/maven2</url>
+ </repository>
+ </repositories>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>com.supwisdom.infras</groupId>
+ <artifactId>infras-bom</artifactId>
+ <version>${infras.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+
+ </dependencyManagement>
<modules>
<module>foo</module>
<module>bar</module>
- <module>../dependencies</module>
</modules>
</project>