fix protobuffer compilation

This commit is contained in:
Mike Rosseel 2017-03-23 08:29:31 +01:00
parent 9e085102c8
commit 53f9860bfc
3 changed files with 1 additions and 43 deletions

43
pom.xml
View file

@ -238,47 +238,4 @@
<scope>test</scope>
</dependency>
</dependencies>
<!-- <profiles>
<profile>
<id>update-protobuf</id>
<activation>
<property>
<name>updateProtobuf</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-protoc</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<path id="proto.path">
<fileset dir="wire/src/main/proto">
<include name="**/*.proto"/>
</fileset>
</path>
<pathconvert pathsep=" " property="proto.files" refid="proto.path"/>
<exec executable="protoc" failonerror="true">
<arg value="&#45;&#45;java_out=./wire/src/main/java"/>
<arg value="-Iwire/src/main/proto"/>
<arg line="${proto.files}"/>
</exec>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>-->
</project>

View file

@ -13,6 +13,7 @@
<build>
<plugins>
<!-- https://www.xolstice.org/protobuf-maven-plugin/usage.html -->
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>