minor modify
diff --git a/dependencies/pom.xml b/dependencies/pom.xml
new file mode 100644
index 0000000..6709939
--- /dev/null
+++ b/dependencies/pom.xml
@@ -0,0 +1,45 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ 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>java-8-parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>com.supwisdom.leaveschool</groupId>
+ <artifactId>samples-dependencies</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <properties>
+ <infras.version>0.0.1-SNAPSHOT</infras.version>
+ </properties>
+
+ <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>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/samples/foo/pom.xml b/samples/foo/pom.xml
index 482e8d2..a3dfe85 100644
--- a/samples/foo/pom.xml
+++ b/samples/foo/pom.xml
@@ -13,9 +13,17 @@
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
- <properties>
- <infras.version>0.0.1-SNAPSHOT</infras.version>
- </properties>
+ <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>
@@ -37,15 +45,27 @@
<dependency>
<groupId>com.supwisdom.infras</groupId>
<artifactId>infras-lang</artifactId>
- <version>${infras.version}</version>
</dependency>
<dependency>
<groupId>com.supwisdom.infras</groupId>
<artifactId>infras-mvc</artifactId>
- <version>${infras.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.supwisdom.infras</groupId>
+ <artifactId>infras-object-mapper</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.supwisdom.infras</groupId>
+ <artifactId>infras-i18n</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.supwisdom.infras</groupId>
+ <artifactId>infras-pinyin</artifactId>
+ </dependency>
<!-- Test things -->
<dependency>
diff --git a/samples/foo/src/main/resources/application.yaml b/samples/foo/src/main/resources/application.yaml
index e70d463..4943342 100644
--- a/samples/foo/src/main/resources/application.yaml
+++ b/samples/foo/src/main/resources/application.yaml
@@ -4,6 +4,6 @@
infras:
mvc:
- error:
+ custom-error:
error-map:
com.supwisdom.leaveschool.foo.model.BarException: Bar Reason
diff --git a/samples/pom.xml b/samples/pom.xml
index f5697b4..b84b88f 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -15,6 +15,7 @@
<modules>
<module>foo</module>
<module>bar</module>
+ <module>../dependencies</module>
</modules>
</project>