欧阳劲驰 vor 1 Monat
Ursprung
Commit
01414f7050
3 geänderte Dateien mit 17 neuen und 9 gelöschten Zeilen
  1. 16 8
      custom-gateway-app/pom.xml
  2. 1 1
      custom-gateway-core/pom.xml
  3. 0 0
      libs/gbase.1.0.5.jar

+ 16 - 8
custom-gateway-app/pom.xml

@@ -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>

+ 1 - 1
custom-gateway-core/pom.xml

@@ -27,7 +27,7 @@
             <artifactId>gbase</artifactId>
             <version>${gbase.version}</version>
             <scope>system</scope>
-            <systemPath>${project.basedir}/libs/gbase.${gbase.version}.jar</systemPath>
+            <systemPath>${project.basedir}/../libs/gbase.${gbase.version}.jar</systemPath>
         </dependency>
         <!--spring-security-->
         <dependency>

custom-gateway-core/libs/gbase.1.0.5.jar → libs/gbase.1.0.5.jar