monad-protocol
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.ganshane.monad</groupId> <artifactId>monad-protocol</artifactId> <version>5.1.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2014,2015,2016 the original author or authors. All rights reserved. site: http://www.ganshane.com --> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <groupId>com.ganshane.monad</groupId> <artifactId>monad-project</artifactId> <version>5.1.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>monad-protocol</artifactId> <name>Monad Protocol</name> <description>接口定义类</description> <dependencies> <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> </dependency> <dependency> <groupId>com.ganshane.stark</groupId> <artifactId>stark-rpc_2.11</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>compile-protoc</id> <phase>generate-sources</phase> <configuration> <tasks> <mkdir dir="target/generated-sources"/> <path id="proto.path"> <fileset dir="src/main/proto"> <include name="**/*.proto"/> </fileset> </path> <pathconvert pathsep=" " property="proto.files" refid="proto.path"/> <exec executable="protoc"> <arg value="--java_out=target/generated-sources"/> <arg value="-I${project.basedir}/src/main/proto"/> <arg value="-I${project.basedir}/src/main/proto-base"/> <arg line="${proto.files}"/> </exec> </tasks> <sourceRoot>target/generated-sources</sourceRoot> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>