Hello, everyone.
Im trying to integrate protobuf automatically compiled in intellij IDE
2016.2.1 in mac edition.
I've installed two plug-in to let editor understand .proto extension files.
- Google Protocol Buffers support
- Protobuf Support
It seems fine in maven build time. but I want to make it auto-compiled when
I change something in *.proto files and save.
It is successfully done in eclipse like following:
1. maven pom.xml configuration
## pom.xml
<plugin>
<groupId>com.google.protobuf.tools</groupId>
<artifactId>maven-protoc-plugin</artifactId>
<version>0.3.2</version>
<configuration>
<protocExecutable>protoc</protocExecutable>
<protoSourceRoot>${project.basedir}/src/main/protobuf/</protoSourceRoot>
<outputDirectory>target/generated-sources/protobuf/java/</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
2. eclipse configuration
1) turn on "build automatically"
2) set build_path of "protoc"
Is there any equivalent in intellij? I've been shared the same pom.xml file
in project but It didnt compile .proto files automatically even though I
turn on those settings:
1. preferences -> build -> compiler -> set "make project automatically"
2. preferences -> build -> compiler -> protocol buffers compiler -> set
build_path of "protoc"
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.