Can't find 'mvn' in linux arm64 image

https://travis-ci.com/czfshine/QingDFS/jobs/260539070


the config file:

language: java
# 缓存maven库
cache:
  directories:
    - $HOME/.m2
matrix:
  include:
    # linux : {xenial,trusty,bionic}
    #       X { amd64,arm64}
    #       X {oraclejdk11,openjdk11}
    # 3*2*2 = 12 + 2(osx) = 14
    - os: linux
      dist: xenial
      arch: amd64
      jdk: oraclejdk11
    - os: linux
      dist: trusty
      arch: amd64
      jdk: oraclejdk11
    - os: linux
      dist: bionic
      arch: amd64
      jdk: oraclejdk11
    - os: linux
      dist: xenial
      arch: arm64
      jdk: oraclejdk11
    - os: linux
      dist: trusty
      arch: arm64
      jdk: oraclejdk11
    - os: linux
      dist: bionic
      arch: arm64
      jdk: oraclejdk11
    - os: osx
      jdk: oraclejdk11

    - os: linux
      dist: xenial
      arch: amd64
      jdk: openjdk11
    - os: linux
      dist: trusty
      arch: amd64
      jdk: openjdk11
    - os: linux
      dist: bionic
      arch: amd64
      jdk: openjdk11
    - os: linux
      dist: xenial
      arch: arm64
      jdk: openjdk11
    - os: linux
      dist: trusty
      arch: arm64
      jdk: openjdk11
    - os: linux
      dist: bionic
      arch: arm64
      jdk: openjdk11
    - os: osx
      jdk: openjdk11

#    - os: windows window 目前不支持java todo

Did you find a solution? I have got the same problem.

If you can not find mvn command in the environment, how about installing deb package’s java and maven conditionally as a temporary workflow like this?

https://packages.ubuntu.com/xenial/maven
https://packages.ubuntu.com/bionic/maven

    - os: linux
      dist: bionic
      arch: arm64
      language: minimal
      before_install:
        - sudo apt-get -yq install maven
1 Like