----
This commit is contained in:
80
pom.xml
80
pom.xml
@ -36,6 +36,11 @@
|
|||||||
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
||||||
<docker-jar-name>${project.build.finalName}.jar</docker-jar-name>
|
<docker-jar-name>${project.build.finalName}.jar</docker-jar-name>
|
||||||
|
|
||||||
|
<libServerUrl>http://10.10.2.102:9500</libServerUrl>
|
||||||
|
<libServerUser>pcitc</libServerUser>
|
||||||
|
<libServerPwd>K9pQ3!zX7@rT2w</libServerPwd>
|
||||||
|
<ignoreUpload>false</ignoreUpload>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
@ -87,6 +92,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@ -103,6 +109,80 @@
|
|||||||
<target>8</target>
|
<target>8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.geg</groupId>
|
||||||
|
<artifactId>tanuki-compiler-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<source>${java.version}</source>
|
||||||
|
<target>${java.version}</target>
|
||||||
|
<libServerUrl>${libServerUrl}</libServerUrl>
|
||||||
|
<libServerUser>${libServerUser}</libServerUser>
|
||||||
|
<libServerPwd>${libServerPwd}</libServerPwd>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>jarupload</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.geg</groupId>
|
||||||
|
<artifactId>tanuki-boot-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<libServerUrl>${libServerUrl}</libServerUrl>
|
||||||
|
<ignoreUpload>${ignoreUpload}</ignoreUpload>
|
||||||
|
<libServerUser>${libServerUser}</libServerUser>
|
||||||
|
<libServerPwd>${libServerPwd}</libServerPwd>
|
||||||
|
<appName>${appName}</appName>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.spotify</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<dockerHost>${docker-registry}</dockerHost>
|
||||||
|
<timeout>600000</timeout>
|
||||||
|
<imageName>${docker-image-name}:${maven.build.timestamp}</imageName>
|
||||||
|
<baseImage>java</baseImage>
|
||||||
|
<dockerDirectory>${dockerDirectory}</dockerDirectory>
|
||||||
|
<pushImage>${docker-image-name}:${maven.build.timestamp}</pushImage>
|
||||||
|
<skipDockerBuild>false</skipDockerBuild>
|
||||||
|
<buildArgs>
|
||||||
|
<SOURCE_NAME>${docker-jar-name}</SOURCE_NAME>
|
||||||
|
<PLATFORM>linux/arm64</PLATFORM>
|
||||||
|
</buildArgs>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<targetPath>/</targetPath>
|
||||||
|
<directory>${project.build.directory}</directory>
|
||||||
|
<include>${docker-jar-name}</include>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>flatten-maven-plugin</artifactId>
|
<artifactId>flatten-maven-plugin</artifactId>
|
||||||
|
|||||||
Reference in New Issue
Block a user