From a52f8cd6a307d3933d1602f1f233baf92dc9ad6b Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 2 Jun 2011 09:59:54 -0700 Subject: [PATCH] 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 --- gerrit-common/pom.xml | 11 +++++++++++ gerrit-patch-jgit/pom.xml | 16 ++++++++++++++++ gerrit-prettify/pom.xml | 16 ++++++++++++++++ gerrit-reviewdb/pom.xml | 16 ++++++++++++++++ pom.xml | 19 ++++++------------- 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. + + org.apache.maven.plugins + maven-source-plugin + + + + jar + + + + 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. provided + + + + + org.apache.maven.plugins + maven-source-plugin + + + + jar + + + + + + 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. provided + + + + + org.apache.maven.plugins + maven-source-plugin + + + + jar + + + + + + 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. gwtorm + + + + + org.apache.maven.plugins + maven-source-plugin + + + + jar + + + + + + diff --git a/pom.xml b/pom.xml index 83b0479410..d2f854103e 100644 --- a/pom.xml +++ b/pom.xml @@ -322,6 +322,12 @@ limitations under the License. 2.3.2 + + org.apache.maven.plugins + maven-source-plugin + 2.1.2 + + org.apache.maven.plugins maven-shade-plugin @@ -376,19 +382,6 @@ limitations under the License. UTF-8 - - - org.apache.maven.plugins - maven-source-plugin - 2.1.2 - - - - jar - - - -