提交 ff6ed32e 编写于 作者: 武汉红喜's avatar 武汉红喜

pom optimise

上级 6bccb605
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- @ConfigurationProperties annotation processing (metadata for IDEs) -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId> <artifactId>spring-boot-configuration-processor</artifactId>
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
<artifactId>dubbo-spring-boot-autoconfigure</artifactId> <artifactId>dubbo-spring-boot-autoconfigure</artifactId>
<dependencies> <dependencies>
<!-- Spring Boot dependencies -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId> <artifactId>spring-boot-autoconfigure</artifactId>
...@@ -23,21 +22,16 @@ ...@@ -23,21 +22,16 @@
<artifactId>spring-boot-starter-logging</artifactId> <artifactId>spring-boot-starter-logging</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- @ConfigurationProperties annotation processing (metadata for IDEs) -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId> <artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- Dubbo -->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId> <artifactId>dubbo</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.netty</groupId> <groupId>io.netty</groupId>
<artifactId>netty-all</artifactId> <artifactId>netty-all</artifactId>
...@@ -45,5 +39,4 @@ ...@@ -45,5 +39,4 @@
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
...@@ -12,31 +12,22 @@ ...@@ -12,31 +12,22 @@
<artifactId>dubbo-spring-boot-starter</artifactId> <artifactId>dubbo-spring-boot-starter</artifactId>
<dependencies> <dependencies>
<!-- Spring Boot dependencies -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId> <artifactId>spring-boot-starter</artifactId>
<scope>true</scope> <scope>true</scope>
</dependency> </dependency>
<!-- Dubbo -->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId> <artifactId>dubbo</artifactId>
</dependency> </dependency>
<!-- Netty -->
<dependency> <dependency>
<groupId>io.netty</groupId> <groupId>io.netty</groupId>
<artifactId>netty-all</artifactId> <artifactId>netty-all</artifactId>
</dependency> </dependency>
<!-- ZK -->
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.101tec</groupId> <groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId> <artifactId>zkclient</artifactId>
......
...@@ -30,23 +30,12 @@ ...@@ -30,23 +30,12 @@
<properties> <properties>
<dubbo.version>2.6.4</dubbo.version> <dubbo.version>2.6.4</dubbo.version>
<zookeeper.version>3.4.13</zookeeper.version>
<fst.version>2.48-jdk-6</fst.version> <fst.version>2.48-jdk-6</fst.version>
<sentinel.version>1.3.0-GA</sentinel.version> <sentinel.version>1.3.0-GA</sentinel.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<!-- Spring Boot, extends from parent pom -->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-dependencies</artifactId>-->
<!--<version>${spring-boot.version}</version>-->
<!--<type>pom</type>-->
<!--<scope>import</scope>-->
<!--</dependency>-->
<!-- Dubbo -->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId> <artifactId>dubbo</artifactId>
...@@ -63,19 +52,6 @@ ...@@ -63,19 +52,6 @@
</exclusions> </exclusions>
</dependency> </dependency>
<!-- ZK -->
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zookeeper.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<groupId>de.ruedigermoeller</groupId> <groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId> <artifactId>fst</artifactId>
...@@ -92,7 +68,6 @@ ...@@ -92,7 +68,6 @@
<artifactId>sentinel-transport-simple-http</artifactId> <artifactId>sentinel-transport-simple-http</artifactId>
<version>${sentinel.version}</version> <version>${sentinel.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
package org.hongxi.whatsmars.dubbo.demo.consumer; package org.hongxi.whatsmars.dubbo.demo.consumer;
import com.alibaba.dubbo.rpc.RpcContext; import com.alibaba.dubbo.rpc.RpcContext;
import com.alibaba.dubbo.rpc.service.EchoService;
import org.hongxi.whatsmars.dubbo.demo.api.BarService; import org.hongxi.whatsmars.dubbo.demo.api.BarService;
import org.hongxi.whatsmars.dubbo.demo.api.DemoService; import org.hongxi.whatsmars.dubbo.demo.api.DemoService;
import org.hongxi.whatsmars.dubbo.demo.api.vo.Bar; import org.hongxi.whatsmars.dubbo.demo.api.vo.Bar;
......
...@@ -4,9 +4,7 @@ ...@@ -4,9 +4,7 @@
package org.hongxi.whatsmars.dubbo.demo.consumer; package org.hongxi.whatsmars.dubbo.demo.consumer;
import com.alibaba.dubbo.rpc.RpcContext; import com.alibaba.dubbo.rpc.RpcContext;
import org.hongxi.whatsmars.dubbo.demo.api.BarService;
import org.hongxi.whatsmars.dubbo.demo.api.DemoService; import org.hongxi.whatsmars.dubbo.demo.api.DemoService;
import org.hongxi.whatsmars.dubbo.demo.api.vo.Bar;
import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
......
...@@ -3,15 +3,10 @@ ...@@ -3,15 +3,10 @@
*/ */
package org.hongxi.whatsmars.dubbo.demo.consumer; package org.hongxi.whatsmars.dubbo.demo.consumer;
import com.alibaba.dubbo.rpc.RpcContext;
import com.alibaba.dubbo.rpc.service.EchoService; import com.alibaba.dubbo.rpc.service.EchoService;
import org.hongxi.whatsmars.dubbo.demo.api.BarService;
import org.hongxi.whatsmars.dubbo.demo.api.DemoService; import org.hongxi.whatsmars.dubbo.demo.api.DemoService;
import org.hongxi.whatsmars.dubbo.demo.api.vo.Bar;
import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.concurrent.Future;
public class DemoConsumer { public class DemoConsumer {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
......
...@@ -11,18 +11,15 @@ ...@@ -11,18 +11,15 @@
<artifactId>whatsmars-zk</artifactId> <artifactId>whatsmars-zk</artifactId>
<properties>
<zookeeper.version>3.4.13</zookeeper.version>
</properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.apache.zookeeper</groupId> <groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId> <artifactId>zookeeper</artifactId>
</dependency> <version>${zookeeper.version}</version>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.curator</groupId> <groupId>org.apache.curator</groupId>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册