Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358781

Summary: [mojo] com.google.protobuf.tools:maven-protoc-plugin:compile support
Product: z_Archived Reporter: Vincent Privat <vincent.privat>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Vincent Privat CLA 2011-09-23 17:45:53 EDT
Build Identifier: M20110909-1335

The maven-protoc-plugin (Google protobuf compiler) generates java sources based on .proto files.

Here's the plugin definition in a build.xml I'd like to run:

      <plugin>
        <groupId>com.google.protobuf.tools</groupId>
        <artifactId>maven-protoc-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-sources</id>
            <goals>
              <goal>compile</goal>
            </goals>
            <phase>generate-sources</phase>
            <configuration>
              <protoSourceRoot>${basedir}/src</protoSourceRoot>
              <includes>
                <param>**/*.proto</param>
              </includes>
            </configuration>
          </execution>
        </executions>
      </plugin>


Reproducible: Always
Comment 1 Igor Fedorenko CLA 2011-09-23 21:38:07 EDT
Please attach complete standalone project that demonstrates use of maven-protoc-plugin and describe expected/desired behaviour when the project is imported in eclipse workspace, i.e. what natures or builders need to be enabled, when should happen during incrimental and full workspace build, etc.

Also, m2e development team does not have immediate plans to work on maven-protoc-plugin support, so somebody will need to develop m2e extension for this plugin to be supported any time soon. If you are interested, [1] provides some pointers.

[1] http://wiki.eclipse.org/M2E_Extension_Development
Comment 2 Igor Fedorenko CLA 2013-09-29 09:18:39 EDT
closing old/stale bugreports
Comment 3 Denis Roy CLA 2021-04-19 13:23:56 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/