Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jan 23, 2021

What changes were proposed in this pull request?

This PR aims to replace mvn with mvnw in java.CMakeLists.txt.

Why are the changes needed?

Some old OSes like CentOS7 may have the old Maven installation. Maven Wrapper will prevent build and test failures.

How was this patch tested?

Pass the CIs and manually do the following.

$ cd docker
$ ./run-one.sh local ORC-739 centos7
...
exec: curl --silent --show-error -L https://www.apache.org/dyn/closer.lua?action=download&filename=/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn
...
Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn
[INFO] Scanning for projects...
...
Test project /root/build
    Start 1: orc-test
1/3 Test #1: orc-test .........................   Passed    6.72 sec
    Start 2: java-test
2/3 Test #2: java-test ........................   Passed  103.21 sec
    Start 3: tool-test
3/3 Test #3: tool-test ........................   Passed   19.69 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) = 129.62 sec
Built target test-out
Finished centos7 at Fri Jan 22 06:33:19 PM PST 2021

@dongjoon-hyun
Copy link
Member Author

cc @omalley and @pgaref

@dongjoon-hyun dongjoon-hyun merged commit f0c5f00 into apache:master Jan 24, 2021
@dongjoon-hyun dongjoon-hyun deleted the ORC-739 branch January 24, 2021 18:01
dongjoon-hyun added a commit that referenced this pull request Jan 24, 2021
### What changes were proposed in this pull request?

This PR aims to replace `mvn` with `mvnw` in `java.CMakeLists.txt`.

### Why are the changes needed?

Some old OSes like CentOS7 may have the old Maven installation. Maven Wrapper will prevent build and test failures.

### How was this patch tested?

Pass the CIs and manually do the following.

```
$ cd docker
$ ./run-one.sh local ORC-739 centos7
...
exec: curl --silent --show-error -L https://www.apache.org/dyn/closer.lua?action=download&filename=/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn
...
Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn
[INFO] Scanning for projects...
...
Test project /root/build
    Start 1: orc-test
1/3 Test #1: orc-test .........................   Passed    6.72 sec
    Start 2: java-test
2/3 Test #2: java-test ........................   Passed  103.21 sec
    Start 3: tool-test
3/3 Test #3: tool-test ........................   Passed   19.69 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) = 129.62 sec
Built target test-out
Finished centos7 at Fri Jan 22 06:33:19 PM PST 2021
```

(cherry picked from commit f0c5f00)
Signed-off-by: Dongjoon Hyun <[email protected]>
@pgaref
Copy link
Contributor

pgaref commented Jan 24, 2021

cc @omalley and @pgaref

Late +1 on this -- thanks @dongjoon-hyun ! Tested the local Centos7 docker build as well and is fine :)

@williamhyun
Copy link
Member

Hi, I made a PR, #633 . Could you review it?

@dongjoon-hyun
Copy link
Member Author

Thank you, @pgaref and @williamhyun !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants