修复springboot的maven编译插件编译后的jar格式问题
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!--最终打成jar的时候一定要去掉此插件,不然依赖他的项目会找不到这个依赖-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!--最终打成jar的时候一定要去掉此插件,不然依赖他的项目会找不到这个依赖-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!--最终打成jar的时候一定要去掉此插件,不然依赖他的项目会找不到这个依赖-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!--最终打成jar的时候一定要去掉此插件,不然依赖他的项目会找不到这个依赖-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!--最终打成jar的时候一定要去掉此插件,不然依赖他的项目会找不到这个依赖-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
||||
@@ -98,19 +98,20 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!--对于被依赖的springboot项目一定要去掉此插件不然maven编译的时候结构会有问题-->
|
||||
<!--<plugin>-->
|
||||
<!--<groupId>org.springframework.boot</groupId>-->
|
||||
<!--<artifactId>spring-boot-maven-plugin</artifactId>-->
|
||||
<!--</plugin>-->
|
||||
<!--将lib目录下的文件编译时打包-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
</plugin>
|
||||
<!--<plugin>-->
|
||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
||||
<!--<artifactId>maven-javadoc-plugin</artifactId>-->
|
||||
<!--</plugin>-->
|
||||
</plugins>
|
||||
<finalName>boot-starter-ssm</finalName>
|
||||
</build>
|
||||
|
||||
+3
-1
@@ -12,5 +12,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
@Configuration
|
||||
@ComponentScan(basePackages = {"com.micro.fast.common.config"})
|
||||
public class CommonApplication {
|
||||
|
||||
// public static void main(String[] args) {
|
||||
// SpringApplication.run(CommonApplication.class, args);
|
||||
// }
|
||||
}
|
||||
@@ -59,10 +59,10 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
</plugin>
|
||||
<!--<plugin>-->
|
||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
||||
<!--<artifactId>maven-javadoc-plugin</artifactId>-->
|
||||
<!--</plugin>-->
|
||||
</plugins>
|
||||
<finalName>boot-starter-util</finalName>
|
||||
</build>
|
||||
|
||||
@@ -19,4 +19,5 @@ eureka:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@${register.server.ip}:10002/eureka/,http://micro:fast@${register.server.ip}:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
prefer-ip-address: true
|
||||
ip-address: 172.17.0.1
|
||||
@@ -20,3 +20,4 @@ eureka:
|
||||
defaultZone: http://micro:fast@${register.server.ip}:10002/eureka/,http://micro:fast@${register.server.ip}:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
ip-address: 172.17.0.1
|
||||
|
||||
@@ -18,4 +18,5 @@ eureka:
|
||||
service-url:
|
||||
defaultZone: http://micro:fast@${register.server.ip}:10004/eureka #和其他注册中心连接
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
prefer-ip-address: true
|
||||
ip-address: 172.17.0.1
|
||||
@@ -17,4 +17,5 @@ eureka:
|
||||
service-url:
|
||||
defaultZone: http://micro:fast@${register.server.ip}:10002/eureka #和其他注册中心连接
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
prefer-ip-address: true
|
||||
ip-address: 172.17.0.1
|
||||
@@ -19,4 +19,5 @@ eureka:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@${register.server.ip}:10002/eureka/,http://micro:fast@${register.server.ip}:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
prefer-ip-address: true
|
||||
ip-address: 172.17.0.1
|
||||
@@ -19,4 +19,5 @@ eureka:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@${register.server.ip}:10002/eureka/,http://micro:fast@${register.server.ip}:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
prefer-ip-address: true
|
||||
ip-address: 172.17.0.1
|
||||
@@ -47,7 +47,7 @@
|
||||
<mybatis-paginator.version>1.2.17</mybatis-paginator.version>
|
||||
<jsqlparser.version>0.9.4</jsqlparser.version>
|
||||
<mybatis-spring-boot-starter.version>1.3.0</mybatis-spring-boot-starter.version>
|
||||
<mysql-connector-java.version>5.1.43</mysql-connector-java.version>
|
||||
<mysql-connector-java.version>5.1.44</mysql-connector-java.version>
|
||||
<druid.version>1.0.27</druid.version>
|
||||
<hibernate-validator.version>5.3.5.Final</hibernate-validator.version>
|
||||
<tomcat-embed-el.version>8.5.16</tomcat-embed-el.version>
|
||||
|
||||
Reference in New Issue
Block a user