Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
728aac65
Commit
728aac65
authored
Dec 13, 2017
by
Nigel Jones
Committed by
David Radley
Dec 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2245 Add maven-enforce plugin to validate maven, java versions
Signed-off-by:
David Radley
<
david_radley@uk.ibm.com
>
parent
a40f3c2c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
24 deletions
+38
-24
pom.xml
graphdb/janus/pom.xml
+0
-24
pom.xml
pom.xml
+38
-0
No files found.
graphdb/janus/pom.xml
View file @
728aac65
...
...
@@ -176,30 +176,6 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-enforcer-plugin
</artifactId>
<version>
1.4.1
</version>
<executions>
<execution>
<id>
enforce-java-8
</id>
<goals>
<goal>
enforce
</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>
1.8.0
</version>
</requireJavaVersion>
<requireMavenVersion>
<version>
3.1.0
</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
${surefire.version}
</version>
<configuration>
...
...
pom.xml
View file @
728aac65
...
...
@@ -1616,6 +1616,13 @@
<pluginManagement>
<plugins>
<!-- support for enforcement of maven & Java versions -->
<plugin>
<inherited>
true
</inherited>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-enforcer-plugin
</artifactId>
<version>
3.0.0-M1
</version>
</plugin>
<plugin>
<groupId>
org.antlr
</groupId>
<artifactId>
antlr4-maven-plugin
</artifactId>
...
...
@@ -1767,6 +1774,37 @@
</pluginManagement>
<plugins>
<!-- enforcement of maven version 3.5.0 or above & Java 8 (151) or above -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-enforcer-plugin
</artifactId>
<executions>
<execution>
<id>
enforce-versions
</id>
<goals>
<goal>
enforce
</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>
[3.5.0,)
</version>
<message>
** MAVEN VERSION ERROR ** Maven 3.5.0 or above is required. See https://maven.apache.org/install.html
</message>
</requireMavenVersion>
<requireJavaVersion>
<level>
ERROR
</level>
<version>
[1.8.0-151,)
</version>
<message>
** JAVA VERSION ERROR ** Java 8 (Update 151) or above is required.
</message>
</requireJavaVersion>
<requireJavaVersion>
<level>
WARN
</level>
<version>
(,1.9]
</version>
<message>
** JAVA VERSION WARNING ** Java 9 and above has not been tested with Atlas.
</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-source-plugin
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment