注释生成代码插件,以便CIbuild成功

This commit is contained in:
ascrutae 2016-07-17 16:52:21 +08:00
parent 5efa059a90
commit dec67ae0e4
1 changed files with 30 additions and 30 deletions

View File

@ -76,37 +76,37 @@
</executions>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-protoc</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<mkdir dir="src/main/gen-java" />
<path id="proto.path">
<fileset dir="src/main/proto">
<include name="*.proto" />
</fileset>
</path>
<pathconvert pathsep=" " property="proto.files"
refid="proto.path" />
<!--<plugin>-->
<!--<artifactId>maven-antrun-plugin</artifactId>-->
<!--<executions>-->
<!--<execution>-->
<!--<id>compile-protoc</id>-->
<!--<phase>generate-sources</phase>-->
<!--<configuration>-->
<!--<tasks>-->
<!--<mkdir dir="src/main/gen-java" />-->
<!--<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=src/main/gen-java" />
<arg value="-I${project.basedir}/src/main/proto" />
<arg line="${proto.files}" />
</exec>
</tasks>
<sourceRoot>src/main/gen-java</sourceRoot>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!--<exec executable="protoc">-->
<!--<arg value="&#45;&#45;java_out=src/main/gen-java" />-->
<!--<arg value="-I${project.basedir}/src/main/proto" />-->
<!--<arg line="${proto.files}" />-->
<!--</exec>-->
<!--</tasks>-->
<!--<sourceRoot>src/main/gen-java</sourceRoot>-->
<!--</configuration>-->
<!--<goals>-->
<!--<goal>run</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->
</plugins>
</build>