Browse Source

HADOOP-13961. Fix compilation failure from missing hadoop-kms test jar. Contributed by Sangjin Lee and John Zhuge.

Andrew Wang 8 years ago
parent
commit
5f336512d0

+ 15 - 1
hadoop-common-project/hadoop-kms/pom.xml

@@ -228,7 +228,21 @@
             </configuration>
           </execution>
         </executions>
-      </plugin>      <plugin>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>prepare-test-jar</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>findbugs-maven-plugin</artifactId>
         <configuration>

+ 0 - 2
hadoop-hdfs-project/hadoop-hdfs/pom.xml

@@ -195,8 +195,6 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <dependency>
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-kms</artifactId>
-      <classifier>classes</classifier>
-      <type>jar</type>
       <scope>test</scope>
     </dependency>
     <dependency>

+ 0 - 2
hadoop-project/pom.xml

@@ -492,8 +492,6 @@
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-kms</artifactId>
         <version>${project.version}</version>
-        <classifier>classes</classifier>
-        <type>jar</type>
       </dependency>
       <dependency>
         <groupId>org.apache.hadoop</groupId>