Skip to content

Instantly share code, notes, and snippets.

@ivankelly
Created June 1, 2011 09:13
Show Gist options
  • Save ivankelly/1002016 to your computer and use it in GitHub Desktop.
Save ivankelly/1002016 to your computer and use it in GitHub Desktop.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generate-proto-sources</id>
<!-- <phase>generate-sources</phase> //-->
<configuration>
<tasks>
<mkdir dir="target/generated-sources/java" />
<mkdir dir="target/generated-sources/cpp" />
<exec executable="prodtoc" failonerror="true">
<arg value="--java_out=target/generated-sources/java" />
<arg value="--cpp_out=target/generated-sources/cpp" />
<arg value="src/main/protobuf/PubSubProtocol.proto" />
</exec>
</tasks>
<sourceRoot>target/generated-sources/java</sourceRoot>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<output>
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hedwig-protocol 3.4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (default-cli) @ hedwig-protocol ---
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.684s
[INFO] Finished at: Wed Jun 01 11:11:57 CEST 2011
[INFO] Final Memory: 4M/81M
[INFO] ------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment