Skip to content

Commit f0450de

Browse files
author
TheSnoozer
authored
Merge pull request #322 from TheSnoozer/master
Support Maven 3.X
2 parents dd061f1 + 9b36bef commit f0450de

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,37 @@ jdk:
55
- oraclejdk9
66
- oraclejdk8
77
- openjdk7
8+
9+
matrix:
10+
include:
11+
- jdk: openjdk7
12+
env: CUSTOM_MVN_VERION="3.0"
13+
- jdk: openjdk7
14+
env: CUSTOM_MVN_VERION="3.0.5"
15+
- jdk: openjdk7
16+
env: CUSTOM_MVN_VERION="3.1.1"
17+
- jdk: openjdk7
18+
env: CUSTOM_MVN_VERION="3.2.5"
19+
- jdk: openjdk7
20+
env: CUSTOM_MVN_VERION="3.3.9"
21+
- jdk: oraclejdk9
22+
env: CUSTOM_MVN_VERION="3.5.0"
23+
24+
install:
25+
- if [[ -n "${CUSTOM_MVN_VERION}" ]]; then
26+
echo "Download Maven ${CUSTOM_MVN_VERION}....";
27+
if [[ "${CUSTOM_MVN_VERION}" == "3.0" ]]; then
28+
wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
29+
else
30+
wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
31+
fi;
32+
unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
33+
export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION};
34+
export PATH=$M2_HOME/bin:$PATH;
35+
mvn -version;
36+
fi
37+
38+
script:
39+
- mvn clean test install -B
40+
- mvn clean initialize -Pdemo -Dmaven.test.skip=true -B
41+
- /bin/bash -c '[[ -f target/testing.properties ]] && cat target/testing.properties || travis_terminate 1;'

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,13 @@ Plugin compatibility with maven
120120
-----------------------------
121121
Even though this plugin tries to be compatible with every Maven version there are some known limitations with specific versions. Here is a list that tries to outline the current state of the art:
122122

123-
| Maven Version | Plugin Version | Notes |
124-
| --------------------------- | ---------------:|:----------------------------------:|
125-
| Maven 3.1.0 (and below) | up to 2.1.13 | |
126-
| Maven 3.1.1 (and onwards) | any | |
127-
| Maven 3.3.1 | any | plugin version 2.1.14 doesn't work |
128-
| Maven 3.3.3 | any | plugin version 2.1.14 doesn't work |
123+
| Maven Version | Plugin Version | Notes |
124+
| --------------------------- | ---------------:|:-------------------------------------------------------------------------------:|
125+
| Maven 3.1.0 (and below) | up to 2.1.13 | |
126+
| Maven 3.1.1 (and onwards) | any | |
127+
| Maven 3.0 (and onwards) | from 2.2.4 | With Maven 3.0.X SLF4J fails to load class "org.slf4j.impl.StaticLoggerBinder". |
128+
| Maven 3.3.1 | any | plugin version 2.1.14 doesn't work |
129+
| Maven 3.3.3 | any | plugin version 2.1.14 doesn't work |
129130

130131

131132
Starting with Maven 3.1.1 any plugin version is currently compatible. Only known exception is for Maven 3.3.1 and Maven 3.3.3 where the plugin version 2.1.14 is not working properly.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454

5555
<java.target>1.7</java.target>
5656

57-
<maven-plugin-api.version>3.1.1</maven-plugin-api.version>
58-
<maven-plugin-plugin.version>3.4</maven-plugin-plugin.version>
57+
<maven-plugin-api.version>3.0</maven-plugin-api.version>
58+
<maven-plugin-plugin.version>3.5</maven-plugin-plugin.version>
5959

6060
<jgit.version>4.5.2.201704071617-r</jgit.version>
6161
<junit.version>4.12</junit.version>

0 commit comments

Comments
 (0)