Skip to content

Commit a0e2ab2

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

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
@@ -1115,7 +1115,7 @@
11151115
<id>src-test-compile-protoc-legacy</id>
11161116
<phase>generate-test-sources</phase>
11171117
<goals>
1118-
<goal>compile</goal>
1118+
<goal>test-compile</goal>
11191119
</goals>
11201120
<configuration>
11211121
<skip>false</skip>
@@ -1124,7 +1124,7 @@
11241124
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
11251125
</protocArtifact>
11261126
<includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
1127-
<protoSourceRoot>${basedir}/src/test/proto</protoSourceRoot>
1127+
<protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
11281128
<outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
11291129
<clearOutputDirectory>false</clearOutputDirectory>
11301130
<includes>

0 commit comments

Comments
 (0)