You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2018/07/20 11:19:42 UTC
[10/10] james-project git commit: JAMES-2477 Add maven enforcer rule
for partial builds
JAMES-2477 Add maven enforcer rule for partial builds
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/22050c47
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/22050c47
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/22050c47
Branch: refs/heads/master
Commit: 22050c47906acde2786f27c1f678740092cf62e2
Parents: 8da87f3
Author: benwa <bt...@linagora.com>
Authored: Fri Jul 20 10:10:04 2018 +0700
Committer: benwa <bt...@linagora.com>
Committed: Fri Jul 20 18:18:43 2018 +0700
----------------------------------------------------------------------
pom.xml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/22050c47/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index daa3b8f..7347ff9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3329,6 +3329,27 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-environment-variable-is-set</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireEnvironmentVariable>
+ <variableName>JAMES_PARTIAL_BUILD_BASE_BRANCH</variableName>
+ <message>When using 'partial-build' profile, you need to define the 'JAMES_PARTIAL_BUILD_BASE_BRANCH'
+ environment variable defining which branch should be taken as a reference to detect changes.</message>
+ </requireEnvironmentVariable>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>com.lesfurets</groupId>
<artifactId>partial-build-plugin</artifactId>
<version>2.6</version>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org