<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
  <pluginExecutions>
    <pluginExecution>
      <pluginExecutionFilter>
        <groupId>com.google.protobuf.tools</groupId>
        <artifactId>maven-protoc-plugin</artifactId>
        <versionRange>[0.1.8,)</versionRange>
        <goals>
          <goal>compile</goal>
        </goals>
      </pluginExecutionFilter>
      <action>
        <configurator>
          <id>m2e-protoc-connector.configurator</id>
        </configurator>
      </action>
    </pluginExecution>
  </pluginExecutions>
</lifecycleMappingMetadata>
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
  <pluginExecutions>
    <pluginExecution>
      <pluginExecutionFilter>
        <groupId>com.google.protobuf.tools</groupId>
        <artifactId>maven-protoc-plugin</artifactId>
        <versionRange>[0.1.8,)</versionRange>
        <goals>
          <goal>compile</goal>
          <goal>test-compile</goal>
        </goals>
      </pluginExecutionFilter>
      <action>
        <configurator>
          <id>m2e-protoc-connector.configurator</id>
        </configurator>
      </action>
    </pluginExecution>
  </pluginExecutions>
</lifecycleMappingMetadata>
Make sure the connector triggers also for the test-compile goal
Make sure the connector triggers also for the test-compile goal
