Prechádzať zdrojové kódy

HADOOP-8500. Fix javadoc jars to not contain entire target directory.

Andrew Wang 8 rokov pred
rodič
commit
7ba74befcf
2 zmenil súbory, kde vykonal 45 pridanie a 3 odobranie
  1. 45 0
      hadoop-dist/pom.xml
  2. 0 3
      hadoop-project/pom.xml

+ 45 - 0
hadoop-dist/pom.xml

@@ -68,6 +68,51 @@
         <configuration>
         </configuration>
       </plugin>
+
+      <!--
+           The "dist" profile automatically attaches many artifacts
+           to the module.
+
+           Disable these, since we are only concerned with assembling
+           the dist layout.
+      -->
+      <plugin>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>default-jar</id>
+            <phase>never</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>hadoop-java-sources</id>
+            <phase>never</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>module-javadocs</id>
+            <phase>never</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- Disable install plugin too, since we disabled all the artifacts -->
+      <plugin>
+        <artifactId>maven-install-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>default-install</id>
+            <phase>never</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 

+ 0 - 3
hadoop-project/pom.xml

@@ -1568,9 +1568,6 @@
                 <goals>
                   <goal>jar</goal>
                 </goals>
-                <configuration>
-                  <destDir>${project.build.directory}</destDir>
-                </configuration>
               </execution>
             </executions>
           </plugin>