Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jessyZu authored and jessyZu committed Sep 28, 2016
1 parent a7a83c6 commit d39cbed
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 6 deletions.
157 changes: 157 additions & 0 deletions pom.xml.releaseBackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.jessyZu</groupId>
<artifactId>dubbo-zipkin-spring-starter</artifactId>
<version>1.0.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>dubbo-zipkin-spring-starter</name>


<!-- oss -->
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:jessyZu/dubbo-zipkin-spring-starter.git</connection>
<developerConnection>scm:git:https://github.com/jessyZu/dubbo-zipkin-spring-starter.git</developerConnection>
<url>https://github.com/jessyZu/dubbo-zipkin-spring-starter</url>
<tag>HEAD</tag>
</scm>

<developers>
<developer>
<id>lz</id>
<name>lz</name>
<email>hhlai1990@163.com</email>
</developer>
</developers>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/jessyZu/dubbo-zipkin-spring-starter/issues</url>
</issueManagement>


<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.7</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.5.3</version>
<exclusions>
<exclusion>
<artifactId>spring</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency>

</dependencies>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.4.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<pushChanges>false</pushChanges>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>


</project>
16 changes: 16 additions & 0 deletions release.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#release configuration
#Wed Sep 28 22:42:19 CST 2016
scm.tag=dubbo-zipkin-spring-starter-1.0.2
scm.url=scm\:git\:https\://github.com/jessyZu/dubbo-zipkin-spring-starter.git
pushChanges=true
preparationGoals=clean verify
project.scm.com.github.jessyZu\:dubbo-zipkin-spring-starter.developerConnection=scm\:git\:https\://github.com/jessyZu/dubbo-zipkin-spring-starter.git
project.rel.com.github.jessyZu\:dubbo-zipkin-spring-starter=1.0.2
project.scm.com.github.jessyZu\:dubbo-zipkin-spring-starter.tag=HEAD
remoteTagging=true
scm.commentPrefix=[maven-release-plugin]
project.scm.com.github.jessyZu\:dubbo-zipkin-spring-starter.url=https\://github.com/jessyZu/dubbo-zipkin-spring-starter
project.scm.com.github.jessyZu\:dubbo-zipkin-spring-starter.connection=scm\:git\:git@github.com\:jessyZu/dubbo-zipkin-spring-starter.git
project.dev.com.github.jessyZu\:dubbo-zipkin-spring-starter=1.0.3-SNAPSHOT
exec.additionalArguments=-Psonatype-oss-release
completedPhase=generate-release-poms
12 changes: 9 additions & 3 deletions src/test/java/com/github/jessyZu/dz/TestService1Consumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ public class TestService1Consumer {
Service1 service1;

@Test
public void test() throws IOException {
service1.hi();
System.in.read();
public void test() {
try {
service1.hi();
System.in.read();

} catch (Exception e) {
e.printStackTrace();
}

}

}

Expand Down
8 changes: 6 additions & 2 deletions src/test/java/com/github/jessyZu/dz/TestService1Provider.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ public class TestService1Provider {


@Test
public void test() throws Exception {
System.in.read();
public void test() {
try {
System.in.read();
} catch (Exception e) {
e.printStackTrace();
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ public class TestService2Provider {

@Test
public void test() throws Exception {
System.in.read();
try {
System.in.read();
} catch (Exception e) {
e.printStackTrace();
}
}

}

0 comments on commit d39cbed

Please sign in to comment.