|
@@ -10,7 +10,7 @@
|
|
|
<version>2.8.2.RELEASE</version>
|
|
<version>2.8.2.RELEASE</version>
|
|
|
|
|
|
|
|
<properties>
|
|
<properties>
|
|
|
- <bladex.project.id>blade-api</bladex.project.id>
|
|
|
|
|
|
|
+ <bladex.project.id>vote</bladex.project.id>
|
|
|
<bladex.project.version>2.8.2.RELEASE</bladex.project.version>
|
|
<bladex.project.version>2.8.2.RELEASE</bladex.project.version>
|
|
|
|
|
|
|
|
<java.version>1.8</java.version>
|
|
<java.version>1.8</java.version>
|
|
@@ -238,51 +238,30 @@
|
|
|
</includes>
|
|
</includes>
|
|
|
</resource>
|
|
</resource>
|
|
|
</resources>
|
|
</resources>
|
|
|
- <pluginManagement>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
- <version>${spring.boot.version}</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <finalName>${project.build.finalName}</finalName>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>repackage</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>com.spotify</groupId>
|
|
|
|
|
- <artifactId>dockerfile-maven-plugin</artifactId>
|
|
|
|
|
- <version>${docker.plugin.version}</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <username>${docker.username}</username>
|
|
|
|
|
- <password>${docker.password}</password>
|
|
|
|
|
- <repository>${docker.registry.url}/${docker.namespace}/${project.build.finalName}</repository>
|
|
|
|
|
- <tag>${project.version}</tag>
|
|
|
|
|
- <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
|
|
|
|
|
- <buildArgs>
|
|
|
|
|
- <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
|
|
|
|
|
- </buildArgs>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- <!--添加如下配置,运行 mvn deploy 命令便会自动打包镜像-->
|
|
|
|
|
- <!--<executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <id>default</id>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>build</goal>
|
|
|
|
|
- <goal>push</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>-->
|
|
|
|
|
- </plugin>
|
|
|
|
|
- </plugins>
|
|
|
|
|
- </pluginManagement>
|
|
|
|
|
<plugins>
|
|
<plugins>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ <version>${spring.boot.version}</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <finalName>${project.build.finalName}</finalName>
|
|
|
|
|
+ <layout>ZIP</layout>
|
|
|
|
|
+ <includes>
|
|
|
|
|
+ <include>
|
|
|
|
|
+ <groupId>nothing</groupId>
|
|
|
|
|
+ <artifactId>nothing</artifactId>
|
|
|
|
|
+ </include>
|
|
|
|
|
+ </includes>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>repackage</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
@@ -299,9 +278,71 @@
|
|
|
</compilerArgs>
|
|
</compilerArgs>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <testFailureIgnore>true</testFailureIgnore>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-dependencies</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
|
|
|
|
|
+ <outputDirectory>target/lib</outputDirectory>
|
|
|
|
|
+ <excludeTransitive>false</excludeTransitive>
|
|
|
|
|
+ <stripVersion>false</stripVersion>
|
|
|
|
|
+ <includeScope>runtime</includeScope>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-resources</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-resources</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <excludes>
|
|
|
|
|
+ <exclude>*.yml</exclude>
|
|
|
|
|
+ <exclude>*.properties</exclude>
|
|
|
|
|
+ <exclude>*.xml</exclude>
|
|
|
|
|
+ <exclude>*.txt</exclude>
|
|
|
|
|
+ <exclude>log/**</exclude>
|
|
|
|
|
+ <exclude>META-INF/**</exclude>
|
|
|
|
|
+ </excludes>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</build>
|
|
</build>
|
|
|
-
|
|
|
|
|
<repositories>
|
|
<repositories>
|
|
|
<repository>
|
|
<repository>
|
|
|
<id>aliyun-repos</id>
|
|
<id>aliyun-repos</id>
|