CircleCI и не удалось найти цель 'go' в плагине org.apache.maven.plugins: maven-dependency-plugin: 3.0.2 - PullRequest
0 голосов
/ 11 ноября 2018

Я пытаюсь запустить тесты на мультимодульном пружинном проекте с использованием CircleCI Я не знаю, почему это происходит, но когда я пытаюсь запустить свой весенний загрузочный проект на CircleCI, я получаю

    [INFO] Reactor Summary for sfg-pet-clinic 0.0.5-SNAPSHOT:
[INFO] 
[INFO] sfg-pet-clinic ..................................... SKIPPED
[INFO] pet-clinic-data .................................... SKIPPED
[INFO] pet-clinic-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.602 s
[INFO] Finished at: 2018-11-11T19:25:39Z
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'go' in plugin org.apache.maven.plugins:maven-dependency-plugin:3.0.2 among available goals analyze, analyze-dep-mgt, analyze-duplicate, analyze-only, analyze-report, build-classpath, collect, copy, copy-dependencies, display-ancestors, get, go-offline, help, list, list-repositories, properties, purge-local-repository, resolve, resolve-plugins, sources, tree, unpack, unpack-dependencies -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
Exited with code 1

но когда я делаю тесты вручную, через Intellij все нормально

это мой config.yml

version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: circleci/openjdk:8-jdk

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/postgres:9.4

    working_directory: ~/repo

    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: mvn dependency:go -DskipTests

      - run: mvn dependency:go-offline



      - save_cache:
          paths:
            - ~/.m2
          key: v1-dependencies-{{ checksum "pom.xml" }}

      # run tests!
      - run: mvn integration-test

1 Ответ

0 голосов
/ 12 ноября 2018

У зависимости mvn нет цели с именем 'go'. Таким образом, следующая строка не удастся.

run: зависимость mvn: go -DskipTests

Пожалуйста, обратитесь https://maven.apache.org/plugins/maven-dependency-plugin/

...