summaryrefslogtreecommitdiff
path: root/galaxy-business-api/pom.xml
diff options
context:
space:
mode:
authorliuyongqiang <[email protected]>2020-12-04 16:51:00 +0800
committerliuyongqiang <[email protected]>2020-12-04 16:51:00 +0800
commit2f40d4ae07acd13b6498df3289c2d6eb9f98df6e (patch)
tree2516eaa7f0f857841e13f7a2b077c1b946bf3340 /galaxy-business-api/pom.xml
parent1463514eee60b5eb549d3391a8d0837d83aeb29c (diff)
微服务架构基础结构完善
Diffstat (limited to 'galaxy-business-api/pom.xml')
-rw-r--r--galaxy-business-api/pom.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/galaxy-business-api/pom.xml b/galaxy-business-api/pom.xml
index 81bc169..e9d88d3 100644
--- a/galaxy-business-api/pom.xml
+++ b/galaxy-business-api/pom.xml
@@ -66,6 +66,55 @@
<build>
<finalName>galaxy-business-api</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <version>${maven.plugin.version}</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <includeSystemScope>true</includeSystemScope>
+ <mainClass>com.mesalab.api.GalaxyBusinessApi</mainClass>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>com.spotify</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <serverId>153-docker-repo</serverId>
+ <registryUrl>${docker.registry}:${docker.registry.port}</registryUrl>
+ <pushImage>true</pushImage>
+ <imageName>${docker.registry}:${docker.registry.port}/${docker.image.prefix}/${project.artifactId}
+ </imageName>
+ <forceTags>true</forceTags>
+ <dockerHost>http://192.168.40.153:2375</dockerHost>
+ <dockerDirectory>docker</dockerDirectory>
+ <buildArgs>
+ <JDK_IMAGE>192.168.40.153:9080/common/jdk:1.8.0_73</JDK_IMAGE>
+ <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
+ </buildArgs>
+ <resources>
+ <resource>
+ <targetPath>/</targetPath>
+ <directory>${project.build.directory}</directory>
+ <include>${project.build.finalName}.jar</include>
+ </resource>
+ <resource>
+ <targetPath>/config</targetPath>
+ <directory>config</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project> \ No newline at end of file