|
@ -157,19 +157,79 @@
|
|
|
<build>
|
|
|
<finalName>svr-door-service</finalName>
|
|
|
<plugins>
|
|
|
<!-- 分离lib -->
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
<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>
|
|
|
<!-- 依赖包输出目录,将来不打进jar包里 -->
|
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
<excludeTransitive>false</excludeTransitive>
|
|
|
<stripVersion>false</stripVersion>
|
|
|
<includeScope>runtime</includeScope>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<!-- copy资源文件 -->
|
|
|
<plugin>
|
|
|
<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>
|
|
|
<!-- 打jar包时忽略配置文件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<mainClass>com.yihu.SvrDoorServiceApplication</mainClass>
|
|
|
<excludes>
|
|
|
<exclude>**/*.yml</exclude>
|
|
|
<exclude>**/*.xml</exclude>
|
|
|
</excludes>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<!-- spring boot repackage -->
|
|
|
<plugin>
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
|
|
|
<layout>ZIP</layout>
|
|
|
<includes>
|
|
|
<include>
|
|
|
<groupId>non-exists</groupId>
|
|
|
<artifactId>non-exists</artifactId>
|
|
|
</include>
|
|
|
</includes>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<goals>
|
|
|
<goal>repackage</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|