]> source.dussan.org Git - sonarqube.git/commitdiff
Updated poms to generate empty javadoc and sources jars to comply with maven central
authorThomas Vérin <thomas.verin@sonarsource.com>
Tue, 13 Oct 2015 09:41:05 +0000 (11:41 +0200)
committerThomas Vérin <thomas.verin@sonarsource.com>
Tue, 13 Oct 2015 09:41:05 +0000 (11:41 +0200)
server/sonar-server-benchmarks/pom.xml
server/sonar-web/pom.xml
sonar-batch-shaded/pom.xml
sonar-plugin-api-deps/pom.xml

index 47a150f4cd686afab3237eaaaa927c6759bc14fc..c148e190b78ff5effec5dbfce0679a7478c4821d 100644 (file)
         <skipBenchmarks>false</skipBenchmarks>
       </properties>
     </profile>
+    <profile>
+      <id>release</id>
+      <activation><activeByDefault>false</activeByDefault></activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>empty-javadoc-jar</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+                <configuration>
+                  <classifier>javadoc</classifier>
+                </configuration>
+              </execution>
+              <execution>
+                <id>empty-sources-jar</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+                <configuration>
+                  <classifier>sources</classifier>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>
index eb7d79919e1d45f001f06883470951475a4f8052..106cdbca1ef46495becf7687d93be3224fe0bba0 100644 (file)
                 </overlay>
               </overlays>
             </configuration>
+            <executions>
+              <execution>
+                <id>empty-javadoc-jar</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+                <configuration>
+                  <classifier>javadoc</classifier>
+                </configuration>
+              </execution>
+              <execution>
+                <id>empty-sources-jar</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+                <configuration>
+                  <classifier>sources</classifier>
+                </configuration>
+              </execution>
+            </executions>
           </plugin>
         </plugins>
       </build>
index 64a1a6d0d93a415a7797d1ce058781e073550c0e..cd04fac4988d0d031e7de110ee7194618e84b26b 100644 (file)
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>empty-javadoc-jar</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+            <configuration>
+              <classifier>javadoc</classifier>
+            </configuration>
+          </execution>
+          <execution>
+            <id>empty-sources-jar</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+            <configuration>
+              <classifier>sources</classifier>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 
index 5d34bbfa09d4c374f280d00350d3a5f5178606da..b67fa593cc609fc2ec43746d049637261adb98d0 100644 (file)
             </goals>
             <configuration>
               <minimizeJar>false</minimizeJar>
-
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>empty-javadoc-jar</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+            <configuration>
+              <classifier>javadoc</classifier>
+            </configuration>
+          </execution>
+          <execution>
+            <id>empty-sources-jar</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+            <configuration>
+              <classifier>sources</classifier>
             </configuration>
           </execution>
         </executions>