|
|
@@ -18,10 +18,77 @@
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.reghao.tnb</groupId>
|
|
|
+ <artifactId>common</artifactId>
|
|
|
+ <version>1.0.0-SNAPSHOT</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
<version>4.10.0</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
+
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>dev</id>
|
|
|
+ <properties>
|
|
|
+ <profile.active>dev</profile.active>
|
|
|
+ </properties>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>test</id>
|
|
|
+ <properties>
|
|
|
+ <profile.active>test</profile.active>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>cluster</id>
|
|
|
+ <properties>
|
|
|
+ <profile.active>cluster</profile.active>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <finalName>tnb-log</finalName>
|
|
|
+ <extensions>
|
|
|
+ <extension>
|
|
|
+ <groupId>kr.motd.maven</groupId>
|
|
|
+ <artifactId>os-maven-plugin</artifactId>
|
|
|
+ <version>1.5.0.Final</version>
|
|
|
+ </extension>
|
|
|
+ </extensions>
|
|
|
+
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ <includes>
|
|
|
+ <include>application.yml</include>
|
|
|
+ <include>application-${profile.active}.yml</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>${springboot.version}</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
</project>
|