update: 打包优化,去掉 libs 目录,将本地jdbc驱动jar打包进去;

This commit is contained in:
zhouhongfa 2019-08-05 15:48:04 +08:00
parent dbc2b1681b
commit d3e602ecba
2 changed files with 18 additions and 7 deletions

View File

@ -114,6 +114,9 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<!--增加自定义打包目录-->
<plugin>

View File

@ -23,14 +23,22 @@
</includes>
<outputDirectory>plugin/web</outputDirectory>
</fileSet>
<!--<fileSet>-->
<!--<directory>src/main/lib</directory>-->
<!--<includes>-->
<!--<include>ojdbc6-11.2.0.3.jar</include>-->
<!--<include>sqljdbc4-4.0.jar</include>-->
<!--</includes>-->
<!--<outputDirectory>plugin/writer/oraclewriter/libs</outputDirectory>-->
<!--</fileSet>-->
</fileSets>
<!--该模块的依赖和实体datax-web-0.0.1-SNAPSHOT.jar分开存放-->
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>plugin/web/libs</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
<!--<dependencySets>-->
<!--<dependencySet>-->
<!--<useProjectArtifact>false</useProjectArtifact>-->
<!--<outputDirectory>plugin/web/libs</outputDirectory>-->
<!--<scope>runtime</scope>-->
<!--</dependencySet>-->
<!--</dependencySets>-->
</assembly>