You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2013/11/10 17:31:49 UTC
git commit: Add maven enforcer plugin to ensure:
Updated Branches:
refs/heads/master 59811f983 -> 14d59ad37
Add maven enforcer plugin to ensure:
JDK vendor is Sun or Oracle
JDK version is [1.6,1.8)
Maven version is [3.0,)
Signed-off-by: Imesh Gunaratne <im...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/14d59ad3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/14d59ad3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/14d59ad3
Branch: refs/heads/master
Commit: 14d59ad37e707f6f8407a780a7ca915ee289a709
Parents: 59811f9
Author: Chris Snow <ch...@gmail.com>
Authored: Sat Nov 9 19:45:14 2013 +0000
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Sun Nov 10 21:20:26 2013 +0530
----------------------------------------------------------------------
pom.xml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/14d59ad3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 690b146..1444b26 100644
--- a/pom.xml
+++ b/pom.xml
@@ -329,6 +329,42 @@
</extensions>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.3.1</version>
+ <executions>
+ <execution>
+ <id>enforce</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>[3.0,)</version>
+ </requireMavenVersion>
+ <requireJavaVersion>
+ <version>[1.6,1.8)</version>
+ </requireJavaVersion>
+ <requireProperty>
+ <property>java.vendor</property>
+ <message>JAVA_HOME does not point to a Sun JDK or Oracle JDK. Only Sun and Oracle JDKs are supported for building Stratos.</message>
+ <regex>(Sun Microsystems Inc\.|Oracle Corporation)</regex>
+ <regexMessage>JAVA_HOME does not point to a Sun JDK or Oracle JDK. Only Sun and Oracle JDKs are supported for building Stratos.</regexMessage>
+ </requireProperty>
+ <requireProperty>
+ <property>java.runtime.name</property>
+ <message>JAVA_HOME does not point to a Sun JDK or Oracle JDK. Only Sun and Oracle JDKs are supported for building Stratos.</message>
+ <regex>Java\(TM\) SE Runtime Environment</regex>
+ <regexMessage>JAVA_HOME does not point to a Sun JDK or Oracle JDK. Only Sun and Oracle JDKs are supported for building Stratos.</regexMessage>
+ </requireProperty>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.jvnet.maven.incrementalbuild</groupId>
<artifactId>incremental-build-plugin</artifactId>
<version>1.3</version>