浏览代码

HADOOP-18398. Prevent AvroRecord*.class from being included non-test jar (#4727)

Contributed by Yubi Lee.
Yubi Lee 2 年之前
父节点
当前提交
c0bbdca97e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hadoop-common-project/hadoop-common/pom.xml

+ 2 - 2
hadoop-common-project/hadoop-common/pom.xml

@@ -1151,7 +1151,7 @@
                 <id>src-test-compile-protoc-legacy</id>
                 <phase>generate-test-sources</phase>
                 <goals>
-                  <goal>compile</goal>
+                  <goal>test-compile</goal>
                 </goals>
                 <configuration>
                   <skip>false</skip>
@@ -1160,7 +1160,7 @@
                     com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
                   </protocArtifact>
                   <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
-                  <protoSourceRoot>${basedir}/src/test/proto</protoSourceRoot>
+                  <protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
                   <outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
                   <clearOutputDirectory>false</clearOutputDirectory>
                   <includes>