|
|
@@ -32,14 +32,9 @@
|
|
|
<!--构建脚本-->
|
|
|
<build>
|
|
|
<!-- 打成jar包的名称 -->
|
|
|
- <finalName>custom-gateway-${project.version}</finalName>
|
|
|
+ <finalName>${parent.artifactId}-${project.version}</finalName>
|
|
|
<!--插件项-->
|
|
|
<plugins>
|
|
|
- <!--maven-compiler-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- </plugin>
|
|
|
<!--maven-resources-->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
@@ -54,6 +49,19 @@
|
|
|
</nonFilteredFileExtensions>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
+ <!--maven-compiler-->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <source>${maven.compiler.source}</source>
|
|
|
+ <target>${maven.compiler.target}</target>
|
|
|
+ <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
+ <compilerArguments>
|
|
|
+ <extdirs>${project.basedir}/../libs</extdirs>
|
|
|
+ </compilerArguments>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
<!--spring-boot-->
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
@@ -67,7 +75,7 @@
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<goals>
|
|
|
- <goal>build-info</goal>
|
|
|
+ <goal>repackage</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
@@ -77,7 +85,7 @@
|
|
|
<resources>
|
|
|
<!--lib-->
|
|
|
<resource>
|
|
|
- <directory>${project.basedir}/libs</directory>
|
|
|
+ <directory>${project.basedir}/../libs</directory>
|
|
|
<targetPath>BOOT-INF/lib/</targetPath>
|
|
|
<includes>
|
|
|
<include>**/*.jar</include>
|