ARROW-3481: [Java] Fix java building failure with Maven 3.5.4
ARROW-3481: [Java] Fix java building failure with Maven 3.5.4

This problem happens in some rare case.
When there are arrow lib build by old maven, but now current maven is updated to 3.5.4. This problem could happen and raise a building failure.

Author: Yuhong Guo <yuhong.gyh@antfin.com>

Closes #2738 from guoyuhong/fixJavaBuild and squashes the following commits:

74665109 <Yuhong Guo> Fix java build with Maven 3.5.4

wesm/arrow,apache/arrow,xhochy/arrow,itaiin/arrow,cpcloud/arrow,apache/arrow,majetideepak/arrow,laurentgo/arrow,renesugar/arrow,laurentgo/arrow,renesugar/arrow,laurentgo/arrow,cpcloud/arrow,majetideepak/arrow,cpcloud/arrow,itaiin/arrow,apache/arrow,wesm/arrow,apache/arrow,xhochy/arrow,kou/arrow,renesugar/arrow,wesm/arrow,cpcloud/arrow,icexelloss/arrow,xhochy/arrow,wesm/arrow,icexelloss/arrow,majetideepak/arrow,kou/arrow,majetideepak/arrow,xhochy/arrow,majetideepak/arrow,itaiin/arrow,renesugar/arrow,xhochy/arrow,majetideepak/arrow,majetideepak/arrow,laurentgo/arrow,majetideepak/arrow,laurentgo/arrow,apache/arrow,xhochy/arrow,kou/arrow,itaiin/arrow,kou/arrow,itaiin/arrow,tebeka/arrow,icexelloss/arrow,majetideepak/arrow,icexelloss/arrow,xhochy/arrow,apache/arrow,itaiin/arrow,kou/arrow,itaiin/arrow,cpcloud/arrow,laurentgo/arrow,laurentgo/arrow,apache/arrow,tebeka/arrow,renesugar/arrow,laurentgo/arrow,apache/arrow,laurentgo/arrow,laurentgo/arrow,kou/arrow,renesugar/arrow,itaiin/arrow,xhochy/arrow,tebeka/arrow,apache/arrow,laurentgo/arrow,xhochy/arrow,xhochy/arrow,renesugar/arrow,tebeka/arrow,renesugar/arrow,apache/arrow,wesm/arrow,laurentgo/arrow,kou/arrow,kou/arrow,itaiin/arrow,cpcloud/arrow,icexelloss/arrow,xhochy/arrow,majetideepak/arrow,wesm/arrow,itaiin/arrow,renesugar/arrow,apache/arrow,tebeka/arrow,cpcloud/arrow,apache/arrow,renesugar/arrow,majetideepak/arrow,cpcloud/arrow,tebeka/arrow,cpcloud/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,wesm/arrow,xhochy/arrow,icexelloss/arrow,laurentgo/arrow,kou/arrow,majetideepak/arrow,itaiin/arrow,kou/arrow,tebeka/arrow,icexelloss/arrow,xhochy/arrow,wesm/arrow,wesm/arrow,apache/arrow,tebeka/arrow,icexelloss/arrow,cpcloud/arrow,renesugar/arrow,tebeka/arrow,renesugar/arrow,icexelloss/arrow,itaiin/arrow,icexelloss/arrow,icexelloss/arrow,renesugar/arrow,majetideepak/arrow,cpcloud/arrow,apache/arrow,renesugar/arrow,xhochy/arrow,majetideepak/arrow,itaiin/arrow,icexelloss/arrow,cpcloud/arrow,wesm/arrow,itaiin/arrow,tebeka/arrow,itaiin/arrow,wesm/arrow,renesugar/arrow,cpcloud/arrow,icexelloss/arrow,laurentgo/arrow,wesm/arrow,wesm/arrow,cpcloud/arrow,kou/arrow,xhochy/arrow,wesm/arrow,kou/arrow,kou/arrow,majetideepak/arrow