diff --git a/.circleci/config.yml b/.circleci/config.yml index 750004da..de68c940 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,13 +2,15 @@ version: 2 jobs: build: docker: - - image: checkstyle/sonarqube-maven-git:7.7-community-8c1737e + - image: sonarqube:9.0-community working_directory: ~/repo environment: # Customize the JVM maximum heap limit MAVEN_OPTS: -Xmx3200m + MAVEN_VERSION: 3.3.9 + USER_HOME_DIR: "/root" steps: - checkout @@ -20,6 +22,13 @@ jobs: # fallback to using the latest cache if no exact match is found - v1-dependencies-sonarqube + # install maven + - run: |- + mkdir -p /usr/share/maven /usr/share/maven/ref + curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + | tar -xzC /usr/share/maven --strip-components=1 \ + ln -s /usr/share/maven/bin/mvn /usr/bin/mvn + - run: mvn package -Pno-validations - save_cache: