Commit 2382f6c5bc0b5184bc628cfc157023deac4dc7e2
1 parent
440ab2e4
Exists in
master
and in
1 other branch
打包问题解决
Showing
11 changed files
with
36 additions
and
37 deletions
Show diff stats
cloud/common/pom.xml
... | ... | @@ -9,8 +9,10 @@ |
9 | 9 | </parent> |
10 | 10 | <groupId>com.sincere</groupId> |
11 | 11 | <artifactId>common</artifactId> |
12 | - <version>0.0.1-SNAPSHOT</version> | |
12 | + <version>1.0.0</version> | |
13 | 13 | <name>common</name> |
14 | + | |
15 | + <packaging>jar</packaging> | |
14 | 16 | <description>Demo project for Spring Boot</description> |
15 | 17 | |
16 | 18 | <properties> |
... | ... | @@ -88,6 +90,9 @@ |
88 | 90 | <plugin> |
89 | 91 | <groupId>org.springframework.boot</groupId> |
90 | 92 | <artifactId>spring-boot-maven-plugin</artifactId> |
93 | + <configuration> | |
94 | + <classifier>exec</classifier> | |
95 | + </configuration> | |
91 | 96 | </plugin> |
92 | 97 | </plugins> |
93 | 98 | </build> | ... | ... |
cloud/common/src/main/java/com/sincere/common/util/RedisUtils.java
cloud/common/src/test/java/com/sincere/common/CommonApplicationTests.java
... | ... | @@ -1,16 +0,0 @@ |
1 | -package com.sincere.common; | |
2 | - | |
3 | -import org.junit.Test; | |
4 | -import org.junit.runner.RunWith; | |
5 | -import org.springframework.boot.test.context.SpringBootTest; | |
6 | -import org.springframework.test.context.junit4.SpringRunner; | |
7 | - | |
8 | -@RunWith(SpringRunner.class) | |
9 | -@SpringBootTest | |
10 | -public class CommonApplicationTests { | |
11 | - | |
12 | - @Test | |
13 | - public void contextLoads() { | |
14 | - } | |
15 | - | |
16 | -} |
cloud/independence/pom.xml
cloud/pom.xml
... | ... | @@ -17,19 +17,20 @@ |
17 | 17 | <modules> |
18 | 18 | <module>server1</module> |
19 | 19 | <module>server2</module> |
20 | - <module>autho</module> | |
20 | +<!-- <module>autho</module>--> | |
21 | 21 | <module>common</module> |
22 | - <module>geteway</module> | |
23 | - <module>haikang</module> | |
24 | - <module>dahua</module> | |
25 | - <module>consumer</module> | |
26 | - <module>haikangface</module> | |
22 | +<!-- <module>geteway</module>--> | |
23 | +<!-- <module>haikang</module>--> | |
24 | +<!-- <module>dahua</module>--> | |
25 | +<!-- <module>consumer</module>--> | |
26 | +<!-- <module>haikangface</module>--> | |
27 | 27 | <module>search_independence</module> |
28 | 28 | <module>search_smartCampus</module> |
29 | 29 | <module>search_xiaoan</module> |
30 | - <module>mypulsar</module> | |
30 | +<!-- <module>mypulsar</module>--> | |
31 | 31 | <module>weigeng</module> |
32 | 32 | <module>independence</module> |
33 | +<!-- <module>test</module>--> | |
33 | 34 | </modules> |
34 | 35 | |
35 | 36 | <properties> |
... | ... | @@ -79,4 +80,21 @@ |
79 | 80 | </dependency> |
80 | 81 | </dependencies> |
81 | 82 | </dependencyManagement> |
83 | + | |
84 | + <build> | |
85 | + <plugins> | |
86 | + <plugin> | |
87 | + <groupId>org.springframework.boot</groupId> | |
88 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
89 | + <executions> | |
90 | + <execution> | |
91 | + <goals> | |
92 | + <goal>repackage</goal> | |
93 | + </goals> | |
94 | + </execution> | |
95 | + </executions> | |
96 | + </plugin> | |
97 | + </plugins> | |
98 | + </build> | |
99 | + | |
82 | 100 | </project> | ... | ... |
cloud/search_independence/pom.xml
cloud/search_independence/src/main/java/com/sincere/independence/controller/LearnController.java
cloud/search_smartCampus/pom.xml
cloud/search_xiaoan/pom.xml
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | <dependency> |
15 | 15 | <groupId>com.sincere</groupId> |
16 | 16 | <artifactId>common</artifactId> |
17 | - <version>0.0.1-SNAPSHOT</version> | |
17 | + <version>1.0.0</version> | |
18 | 18 | </dependency> |
19 | 19 | <!-- https://mvnrepository.com/artifact/io.netty/netty-all --> |
20 | 20 | <dependency> | ... | ... |
cloud/weigeng/pom.xml
cloud/weigeng/src/main/java/com/sincere/weigeng/WeigengApplication.java
... | ... | @@ -10,12 +10,8 @@ import org.springframework.cloud.openfeign.EnableFeignClients; |
10 | 10 | @SpringBootApplication |
11 | 11 | public class WeigengApplication { |
12 | 12 | |
13 | - private static String ip = "172.16.3.175"; | |
14 | - private static int port = 1200; | |
15 | - | |
16 | 13 | public static void main(String[] args) { |
17 | 14 | SpringApplication.run(WeigengApplication.class, args); |
18 | - //WatchServer.WatchingServerRunning(ip,port); | |
19 | 15 | } |
20 | 16 | |
21 | 17 | } | ... | ... |