machine:
  java:
    version: openjdk8
dependencies:
 override: 
  - mvn install -DskipTest=true -DskipITs=true
test:
  override:
    - mvn clean package
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
version: 2
jobs:
  build:
    working_directory: ~/circleci-feature9
    docker:
      - image: maven:3.5-jdk-9-slim
    steps:
      - checkout
      - restore_cache:
          key: circleci-feature9-{{ checksum "pom.xml" }}
      - run:
          command: |
            mvn install -DskipITs=true
            mkdir -p ~/junit/
            find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
          when: always
      - store_test_results:
          path: ~/junit
      - store_artifacts:
          path: ~/junit
      - save_cache:
          paths:
            - ~/.m2
          key: circleci-feature9-{{ checksum "pom.xml" }}

Update CircleCI configuration to 2.0
Update CircleCI configuration to 2.0