Skip to content

Commit

Permalink
[FLINK-12447][build] Set minimum maven version to 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger authored and zentol committed May 22, 2019
1 parent 02a0cf3 commit f652bb5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Prerequisites for building Flink:

* Unix-like environment (we use Linux, Mac OS X, Cygwin)
* git
* Maven (we recommend version 3.2.5)
* Maven (we recommend version 3.2.5 and require at least 3.1.1)
* Java 8 (Java 9 and 10 are not yet supported)

```
Expand All @@ -80,7 +80,7 @@ mvn clean package -DskipTests # this will take up to 10 minutes

Flink is now installed in `build-target`

*NOTE: Maven 3.3.x can build Flink, but will not properly shade away certain dependencies. Maven 3.0.3 creates the libraries properly.
*NOTE: Maven 3.3.x can build Flink, but will not properly shade away certain dependencies. Maven 3.1.1 creates the libraries properly.
To build unit tests with Java 8, use Java 8u51 or above to prevent failures in unit tests that use the PowerMock runner.*

## Developing Flink
Expand Down
2 changes: 1 addition & 1 deletion docs/flinkDev/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Flink [shades away](https://maven.apache.org/plugins/maven-shade-plugin/) some o

The dependency shading mechanism was recently changed in Maven and requires users to build Flink slightly differently, depending on their Maven version:

**Maven 3.0.x, 3.1.x, and 3.2.x**
**Maven 3.1.x and 3.2.x**
It is sufficient to call `mvn clean install -DskipTests` in the root directory of Flink code base.

**Maven 3.3.x**
Expand Down
2 changes: 1 addition & 1 deletion docs/flinkDev/building.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Flink [shades away](https://maven.apache.org/plugins/maven-shade-plugin/) some o

The dependency shading mechanism was recently changed in Maven and requires users to build Flink slightly differently, depending on their Maven version:

**Maven 3.0.x, 3.1.x, and 3.2.x**
**Maven 3.1.x and 3.2.x**
It is sufficient to call `mvn clean install -DskipTests` in the root directory of Flink code base.

**Maven 3.3.x**
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1502,8 +1502,8 @@ under the License.
<configuration>
<rules>
<requireMavenVersion>
<!-- enforce at least mvn version 3.0.3 -->
<version>[3.0.3,)</version>
<!-- enforce at least mvn version 3.1.1 (see FLINK-12447) -->
<version>[3.1.1,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>${java.version}</version>
Expand Down

0 comments on commit f652bb5

Please sign in to comment.