|
|
|
@ -324,32 +324,72 @@ |
|
|
|
<build> |
|
|
|
<finalName>${project.artifactId}</finalName> |
|
|
|
<plugins> |
|
|
|
<plugin> |
|
|
|
<groupId>org.springframework.boot</groupId> |
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId> |
|
|
|
<configuration> |
|
|
|
<excludes> |
|
|
|
<exclude> |
|
|
|
<groupId>org.projectlombok</groupId> |
|
|
|
<artifactId>lombok</artifactId> |
|
|
|
</exclude> |
|
|
|
</excludes> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
<version>3.3.0</version> |
|
|
|
<configuration> |
|
|
|
<excludes> |
|
|
|
<!-- 只排除application相关的配置文件 --> |
|
|
|
<exclude>**/application.yml</exclude> |
|
|
|
<exclude>**/application-dev.yml</exclude> |
|
|
|
<exclude>**/application-prod.yml</exclude> |
|
|
|
</excludes> |
|
|
|
<archive> |
|
|
|
<manifest> |
|
|
|
<classpathPrefix>lib/</classpathPrefix> |
|
|
|
<addClasspath>true</addClasspath> |
|
|
|
<mainClass>com.youlai.boot.YouLaiBootApplication</mainClass> |
|
|
|
</manifest> |
|
|
|
</archive> |
|
|
|
|
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
<!-- lib目录分离, 拷贝依赖到jar外面的lib目录 --> |
|
|
|
<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> |
|
|
|
<!-- 依赖包输出目录,将来不打进jar包里 --> |
|
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory> |
|
|
|
<excludeTransitive>false</excludeTransitive> |
|
|
|
<stripVersion>false</stripVersion> |
|
|
|
<includeScope>runtime</includeScope> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
<!-- resource插件 --> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-resources-plugin</artifactId> |
|
|
|
<configuration> |
|
|
|
<encoding>UTF-8</encoding> |
|
|
|
<useDefaultDelimiters>true</useDefaultDelimiters> |
|
|
|
<nonFilteredFileExtensions> |
|
|
|
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension> |
|
|
|
<nonFilteredFileExtension>xls</nonFilteredFileExtension> |
|
|
|
<nonFilteredFileExtension>zip</nonFilteredFileExtension> |
|
|
|
<nonFilteredFileExtension>xdb</nonFilteredFileExtension> |
|
|
|
</nonFilteredFileExtensions> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
</plugins> |
|
|
|
|
|
|
|
<resources> |
|
|
|
<resource> |
|
|
|
<directory>src/main/resources</directory> |
|
|
|
<includes> |
|
|
|
<include>**/*.*</include> |
|
|
|
</includes> |
|
|
|
<filtering>true</filtering> |
|
|
|
</resource> |
|
|
|
</resources> |
|
|
|
</build> |
|
|
|
|
|
|
|
</project> |
|
|
|
|