diff options
author | Thomas Vérin <thomas.verin@sonarsource.com> | 2015-10-13 11:41:05 +0200 |
---|---|---|
committer | Thomas Vérin <thomas.verin@sonarsource.com> | 2015-10-13 11:41:05 +0200 |
commit | cf7a6b574f067e3d0ef4a4253d4422093366ba0e (patch) | |
tree | 4ad1a046fd811640e5637f63bc1d1e163b4bc735 | |
parent | 448f166e5f38e5018d5bfddea8eb8e1b3624e573 (diff) | |
download | sonarqube-cf7a6b574f067e3d0ef4a4253d4422093366ba0e.tar.gz sonarqube-cf7a6b574f067e3d0ef4a4253d4422093366ba0e.zip |
Updated poms to generate empty javadoc and sources jars to comply with maven central
-rw-r--r-- | server/sonar-server-benchmarks/pom.xml | 34 | ||||
-rw-r--r-- | server/sonar-web/pom.xml | 22 | ||||
-rw-r--r-- | sonar-batch-shaded/pom.xml | 26 | ||||
-rw-r--r-- | sonar-plugin-api-deps/pom.xml | 27 |
4 files changed, 108 insertions, 1 deletions
diff --git a/server/sonar-server-benchmarks/pom.xml b/server/sonar-server-benchmarks/pom.xml index 47a150f4cd6..c148e190b78 100644 --- a/server/sonar-server-benchmarks/pom.xml +++ b/server/sonar-server-benchmarks/pom.xml @@ -97,5 +97,39 @@ <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> diff --git a/server/sonar-web/pom.xml b/server/sonar-web/pom.xml index eb7d79919e1..106cdbca1ef 100644 --- a/server/sonar-web/pom.xml +++ b/server/sonar-web/pom.xml @@ -180,6 +180,28 @@ </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> diff --git a/sonar-batch-shaded/pom.xml b/sonar-batch-shaded/pom.xml index 64a1a6d0d93..cd04fac4988 100644 --- a/sonar-batch-shaded/pom.xml +++ b/sonar-batch-shaded/pom.xml @@ -34,6 +34,32 @@ </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> diff --git a/sonar-plugin-api-deps/pom.xml b/sonar-plugin-api-deps/pom.xml index 5d34bbfa09d..b67fa593cc6 100644 --- a/sonar-plugin-api-deps/pom.xml +++ b/sonar-plugin-api-deps/pom.xml @@ -143,7 +143,32 @@ </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> |