Skip to content

Commit c0bbdca

Browse files
authored
HADOOP-18398. Prevent AvroRecord*.class from being included non-test jar (#4727)
Contributed by Yubi Lee.
1 parent 133e8aa commit c0bbdca

File tree

1 file changed

+2
-2
lines changed
  • hadoop-common-project/hadoop-common

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@
11511151
<id>src-test-compile-protoc-legacy</id>
11521152
<phase>generate-test-sources</phase>
11531153
<goals>
1154-
<goal>compile</goal>
1154+
<goal>test-compile</goal>
11551155
</goals>
11561156
<configuration>
11571157
<skip>false</skip>
@@ -1160,7 +1160,7 @@
11601160
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
11611161
</protocArtifact>
11621162
<includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
1163-
<protoSourceRoot>${basedir}/src/test/proto</protoSourceRoot>
1163+
<protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
11641164
<outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
11651165
<clearOutputDirectory>false</clearOutputDirectory>
11661166
<includes>

0 commit comments

Comments
 (0)