|
|
@@ -10,6 +10,13 @@
|
|
|
<version>0.1.0</version>
|
|
|
</parent>
|
|
|
|
|
|
+ <properties>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
+ <java.version>1.8</java.version>
|
|
|
+ <docker.image.prefix>litemall</docker.image.prefix>
|
|
|
+ </properties>
|
|
|
+
|
|
|
<dependencies>
|
|
|
|
|
|
<dependency>
|
|
|
@@ -35,6 +42,22 @@
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
+
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ </resource>
|
|
|
+
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/java</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.properties</include>
|
|
|
+ <include>**/*.xml</include>
|
|
|
+ </includes>
|
|
|
+ <filtering>false</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
@@ -53,6 +76,24 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
+ <version>0.4.13</version>
|
|
|
+ <configuration>
|
|
|
+ <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
|
+ <dockerDirectory>src/main/docker</dockerDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <targetPath>/</targetPath>
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
+ <include>${project.build.finalName}.jar</include>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|