Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ZEPPELIN-2139] Interpreters based on scala_2.11 aren't installed cor…
…rectly ### What is this PR for? pom variables such as `${scala.version}` are not replaced to value when you do `mvn install`. This makes leaf poms to look for this value in parent pom, which is always `2.10.5` for `${scala.version}` and it causes scala library dependency conflict. For example, zeppelin-flink_2.11 will have scala 2.10.5 as dependency. This PR fixes this problem by using maven flatten plugin. ### What type of PR is it? Bug Fix ### What is the Jira issue? [ZEPPELIN-2139](https://issues.apache.org/jira/browse/ZEPPELIN-2139) ### How should this be tested? ``` $ ./dev/change_scala_version.sh 2.11 $ mvn clean install -pl 'zeppelin-server,zeppelin-zengine,zeppelin-interpreter,flink' -am -DskipRat -DskipTests -Pscala-2.11 ``` Open `~/.m2/repository/org/apache/zeppelin/zeppelin-flink_2.11/0.8.0-SNAPSHOT/zeppelin-flink_2.11-0.8.0-SNAPSHOT.pom` file and see if scala related libraries dependency version is set to 2.11.7 ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Mina Lee <[email protected]> Closes apache#2059 from minahlee/ZEPPELIN-2139 and squashes the following commits: 62d852a [Mina Lee] Change <scala.version> property in parent pom file 489c843 [Mina Lee] Use maven flatten plugin to make pom.xml variables to be replaced by value 783c014 [Mina Lee] Fix indentation and add default properties to be used in flattened-pom
- Loading branch information