This commit is contained in:
nkorange 2018-09-21 16:19:25 +08:00
commit ba84fda664
18 changed files with 46 additions and 25 deletions

View File

@ -3,7 +3,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -3,7 +3,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -128,6 +128,19 @@
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<excludes>
<exclude>application.properties</exclude>
<exclude>banner.txt</exclude>
<exclude>nacos-config-logback.xml</exclude>
<exclude>schema.sql</exclude>
<exclude>nacos-db.sql</exclude>
</excludes>
</resource>
</resources>
</build>
<profiles>
<profile>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<artifactId>nacos-console</artifactId>
<!--<packaging>war</packaging>-->
@ -67,5 +67,17 @@
</executions>
</plugin>
</plugins>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<excludes>
<exclude>application.properties</exclude>
<exclude>banner.txt</exclude>
<exclude>diamond-server-logback.xml</exclude>
<exclude>schema.sql</exclude>
</excludes>
</resource>
</resources>
</build>
</project>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -37,6 +37,7 @@ JAVA_OPT="${JAVA_OPT} -Xdebug -Xrunjdwp:transport=dt_socket,address=9555,server=
JAVA_OPT="${JAVA_OPT} -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:-UseParNewGC"
JAVA_OPT="${JAVA_OPT} -verbose:gc -Xloggc:${BASE_DIR}/logs/nacos_gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintAdaptiveSizePolicy"
JAVA_OPT="${JAVA_OPT} -Dnacos.home=${BASE_DIR}"
JAVA_OPT="${JAVA_OPT} -Dspring.config.location=${BASE_DIR}/conf/application.properties"
if [[ "${MODE}" == "standalone" ]]; then
JAVA_OPT="${JAVA_OPT} -Dnacos.standalone=true"
fi

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -80,7 +80,7 @@ public class InstanceControllerTest extends BaseTest {
IpAddress ipAddress = new IpAddress();
ipAddress.setIp("1.1.1.1");
ipAddress.setPort(9999);
List<IpAddress> ipList = new ArrayList<>();
List<IpAddress> ipList = new ArrayList<IpAddress>();
ipList.add(ipAddress);
domain.updateIPs(ipList, false);
@ -127,7 +127,7 @@ public class InstanceControllerTest extends BaseTest {
ipAddress.setIp("10.10.10.10");
ipAddress.setPort(8888);
ipAddress.setWeight(2.0);
List<IpAddress> ipList = new ArrayList<>();
List<IpAddress> ipList = new ArrayList<IpAddress>();
ipList.add(ipAddress);
domain.updateIPs(ipList, false);

View File

@ -83,7 +83,7 @@ public class ClusterTest {
ipAddress2.setIp("1.1.1.1");
ipAddress2.setPort(2345);
List<IpAddress> list = new ArrayList<>();
List<IpAddress> list = new ArrayList<IpAddress>();
list.add(ipAddress1);
list.add(ipAddress2);

View File

@ -81,7 +81,7 @@ public class DomainTest {
IpAddress ipAddress = new IpAddress();
ipAddress.setIp("1.1.1.1");
ipAddress.setPort(1234);
List<IpAddress> list = new ArrayList<>();
List<IpAddress> list = new ArrayList<IpAddress>();
list.add(ipAddress);
domain.onChange("iplist", JSON.toJSONString(list));

View File

@ -59,7 +59,7 @@ public class DomainsManagerTest extends BaseTest {
IpAddress ipAddress = new IpAddress();
ipAddress.setIp("1.1.1.1");
List<IpAddress> ipList = new ArrayList<>();
List<IpAddress> ipList = new ArrayList<IpAddress>();
ipList.add(ipAddress);
domainsManager.addLock("nacos.test.1");
domainsManager.easyRemvIP4Dom("nacos.test.1", ipList);

View File

@ -108,7 +108,7 @@ public class APICommandsTest {
IpAddress ipAddress = new IpAddress();
ipAddress.setIp("1.1.1.1");
ipAddress.setPort(1234);
List<IpAddress> list = new ArrayList<>();
List<IpAddress> list = new ArrayList<IpAddress>();
list.add(ipAddress);
domain.onChange("iplist", JSON.toJSONString(list));

11
pom.xml
View File

@ -2,20 +2,15 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--<parent>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-parent</artifactId>-->
<!--<version>2.0.1.RELEASE</version>-->
<!--</parent>-->
<modelVersion>4.0.0</modelVersion>
<inceptionYear>2018</inceptionYear>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
<packaging>pom</packaging>
<name>Alibaba NACOS ${project.version}</name>
<description>Top Nacos project pom.xml file</description>
<url>http://nacos.io</url>
<prerequisites>
<maven>3.2.5</maven>
@ -26,7 +21,7 @@
<url>git@github.com:alibaba/nacos.git</url>
<connection>scm:git@github.com:alibaba/nacos.git</connection>
<developerConnection>scm:git@github.com:alibaba/nacos.git</developerConnection>
<tag>nacos-all-0.2.1-SNAPSHOT</tag>
<tag>nacos-all-0.2.1-RC1</tag>
</scm>
<mailingLists>

View File

@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -625,7 +625,7 @@ public class RestAPI_ITCase {
HttpHeaders headers = new HttpHeaders();
HttpEntity<?> entity = new HttpEntity(headers);
HttpEntity<?> entity = new HttpEntity<T>(headers);
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(this.base.toString() + path)
.queryParams(params);