fix jigsaw-rpc-example-client error
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<jackson.version>2.7.9</jackson.version>
|
||||
<proto.path>protoc</proto.path>
|
||||
<thrift.path>thrift</thrift.path>
|
||||
<idl.folder>${basedir}/src/main/resources</idl.folder>
|
||||
<idl.folder>${basedir}/src/test/resources</idl.folder>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@@ -53,24 +53,24 @@
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<echo>Delete folder : ${basedir}/src/main/gen</echo>
|
||||
<delete dir="${basedir}/src/main/gen" quiet="true" />
|
||||
<echo>Create folder : ${basedir}/src/main/gen</echo>
|
||||
<mkdir dir="${basedir}/src/main/gen" />
|
||||
<echo>Delete folder : ${basedir}/src/test/gen</echo>
|
||||
<delete dir="${basedir}/src/test/gen" quiet="true" />
|
||||
<echo>Create folder : ${basedir}/src/test/gen</echo>
|
||||
<mkdir dir="${basedir}/src/test/gen" />
|
||||
<!-- Compile thrift files in all locations -->
|
||||
<echo>Compiling **/*.thrift files...</echo>
|
||||
<apply executable="${thrift.path}">
|
||||
<arg value="--gen" />
|
||||
<arg value="java" />
|
||||
<arg value="-out" />
|
||||
<arg value="${basedir}/src/main/gen" />
|
||||
<arg value="${basedir}/src/test/gen" />
|
||||
<fileset dir="${idl.folder}" includes="**/*.thrift" />
|
||||
</apply>
|
||||
<!-- Compile proto files in all locations -->
|
||||
<echo>Compiling **/*.proto files...</echo>
|
||||
<apply executable="${proto.path}">
|
||||
<arg value="--proto_path=${idl.folder}" />
|
||||
<arg value="--java_out=${basedir}/src/main/gen" />
|
||||
<arg value="--java_out=${basedir}/src/test/gen" />
|
||||
<fileset dir="${idl.folder}" includes="**/*.proto"
|
||||
excludes="google/protobuf/descriptor.proto" />
|
||||
</apply>
|
||||
@@ -83,17 +83,16 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-source</id>
|
||||
<phase>generate-sources</phase>
|
||||
<id>add-test-source</id>
|
||||
<phase>generate-test-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
<goal>add-test-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>src/main/gen</source>
|
||||
<source>src/test/gen</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<artifactId>jigsaw-rpc-payment</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>支付账户和订单管理</name>
|
||||
<name>jigsaw-rpc-payment</name>
|
||||
<properties>
|
||||
<protobuf.version>3.3.1</protobuf.version>
|
||||
<protobuf-java-format.version>1.2</protobuf-java-format.version>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<artifactId>jigsaw-rpc-user</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>用户管理</name>
|
||||
<name>jigsaw-rpc-user</name>
|
||||
<properties>
|
||||
<protobuf.version>3.3.1</protobuf.version>
|
||||
<protobuf-java-format.version>1.2</protobuf-java-format.version>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
package org.jigsaw.payment.rpc;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-08-30")
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-09-14")
|
||||
public class BaseService {
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,7 +20,7 @@ package org.jigsaw.payment.rpc;
|
||||
* key: The value passed from the client in the identifier, which was not
|
||||
* found. For example, the GUID that was not found.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-08-30")
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-09-14")
|
||||
public class NotFoundException extends org.apache.thrift.TException implements org.apache.thrift.TBase<NotFoundException, NotFoundException._Fields>, java.io.Serializable, Cloneable, Comparable<NotFoundException> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotFoundException");
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ package org.jigsaw.payment.rpc;
|
||||
* API requests for the user until at least this many seconds have passed. Present only
|
||||
* when errorCode is RATE_LIMIT_REACHED,
|
||||
*/
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-08-30")
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-09-14")
|
||||
public class SystemException extends org.apache.thrift.TException implements org.apache.thrift.TBase<SystemException, SystemException._Fields>, java.io.Serializable, Cloneable, Comparable<SystemException> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SystemException");
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ package org.jigsaw.payment.rpc;
|
||||
*
|
||||
* message: This may contain additional information about the error.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-08-30")
|
||||
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-09-14")
|
||||
public class UserException extends org.apache.thrift.TException implements org.apache.thrift.TBase<UserException, UserException._Fields>, java.io.Serializable, Cloneable, Comparable<UserException> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserException");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user