summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2011-06-02 09:59:54 -0700
committerShawn O. Pearce <sop@google.com>2011-06-02 10:01:53 -0700
commita52f8cd6a307d3933d1602f1f233baf92dc9ad6b (patch)
tree35acec84487eace25e351da5467ad8dd8db9222f
parent55e902558210f6c12013a50570577b382e5ca134 (diff)
Only create source archives for packages that need one
We don't push our code to a Maven repository, so there only reason to construct source archives is to feed source files into the GWT compiler. Move the source plugin onto only the packages that we feed into the GWT code, allowing the others to skip this step. This fixes a "bug" in a later change that adds the Prolog Cafe translater to the build process. Without this change first, the Prolog Cafe translator is firing twice for every Prolog source file that is part of our standard build. Change-Id: Iba38aa371ce7c8950ac30dc3cf06e01b465afb5a Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--gerrit-common/pom.xml11
-rw-r--r--gerrit-patch-jgit/pom.xml16
-rw-r--r--gerrit-prettify/pom.xml16
-rw-r--r--gerrit-reviewdb/pom.xml16
-rw-r--r--pom.xml19
5 files changed, 65 insertions, 13 deletions
diff --git a/gerrit-common/pom.xml b/gerrit-common/pom.xml
index 6299d06967..814afad1c0 100644
--- a/gerrit-common/pom.xml
+++ b/gerrit-common/pom.xml
@@ -90,6 +90,17 @@ limitations under the License.
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/gerrit-patch-jgit/pom.xml b/gerrit-patch-jgit/pom.xml
index 1fc0819914..f2d1cfdd93 100644
--- a/gerrit-patch-jgit/pom.xml
+++ b/gerrit-patch-jgit/pom.xml
@@ -49,4 +49,20 @@ limitations under the License.
<scope>provided</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/gerrit-prettify/pom.xml b/gerrit-prettify/pom.xml
index 686888482a..3ac4deb9c9 100644
--- a/gerrit-prettify/pom.xml
+++ b/gerrit-prettify/pom.xml
@@ -56,4 +56,20 @@ limitations under the License.
<scope>provided</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/gerrit-reviewdb/pom.xml b/gerrit-reviewdb/pom.xml
index c9a7912a74..8c43204f2d 100644
--- a/gerrit-reviewdb/pom.xml
+++ b/gerrit-reviewdb/pom.xml
@@ -38,4 +38,20 @@ limitations under the License.
<artifactId>gwtorm</artifactId>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/pom.xml b/pom.xml
index 83b0479410..d2f854103e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -324,6 +324,12 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.4</version>
</plugin>
@@ -376,19 +382,6 @@ limitations under the License.
<encoding>UTF-8</encoding>
</configuration>
</plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.2</version>
- <executions>
- <execution>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>