When I login to my organization’s circleci website, I could not see the “create a project” button for the repo for which I am one of the admin, but the button “Follow the project”, against the name of the repo, which I clicked. I got this message “Something went wrong when trying to follow your project”.
Upon verifying, I found the following message trace…
#!/bin/bash -eo pipefail
mvn clean test
/bin/bash: mvn: command not found
Exited with code exit status 127
CircleCI received exit code 127
I don’t understand why Circleci is not able to find the maven build tool. Should we include any steps in the config.yml file for that ?
This is my first config.yml writing for me.
To give you the config.yml I am using, it is here…
version: 2.1
# from Browserstack site https://www.browserstack.com/guide/how-to-perform-test-automation-with-circleci
jobs:
build:
docker:
# specify the version you desire here
- image: cimg/base:2021.04
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: Run Tests
command: |
export DISPLAY=:99
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
# run tests!
- run: mvn clean test
- store_artifacts:
path: target/surefire-reports
destination: tr1
- store_test_results:
path: target/surefire-reports