Skip to content

Commit

Permalink
update: 打包优化,去掉 libs 目录,将本地jdbc驱动jar打包进去;
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhongfa committed Aug 5, 2019
1 parent dbc2b16 commit d3e602e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
3 changes: 3 additions & 0 deletions datax-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<!--增加自定义打包目录-->
<plugin>
Expand Down
22 changes: 15 additions & 7 deletions datax-web/src/main/assembly/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit d3e602e

Please sign in to comment.