提交 f652bb5a 编写于 作者: R Robert Metzger 提交者: Chesnay Schepler

[FLINK-12447][build] Set minimum maven version to 3.1.1

上级 02a0cf3d
......@@ -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)
```
......@@ -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
......
......@@ -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**
......
......@@ -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**
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册