----
This commit is contained in:
98
pom.xml
98
pom.xml
@ -31,11 +31,16 @@
|
|||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
|
|
||||||
<docker-registry>http://127.0.0.1:2375</docker-registry>
|
<docker-registry>http://127.0.0.1:2375</docker-registry>
|
||||||
<maven.build.timestamp.format>yyyy-MM-dd-HHmm</maven.build.timestamp.format>
|
<maven.build.timestamp.format>yyyy-MM-dd-HHmm</maven.build.timestamp.format>
|
||||||
<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,89 @@
|
|||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<source>8</source>
|
||||||
|
<target>8</target>
|
||||||
|
</configuration>
|
||||||
|
</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>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@ -95,14 +183,6 @@
|
|||||||
<skip>true</skip>
|
<skip>true</skip>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>8</source>
|
|
||||||
<target>8</target>
|
|
||||||
</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