Моей первой проблемой, которую я уже исправил, была ошибка https, поэтому я сделал то, что обнаружил в потоке:
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
Но теперь мне нужно найти способ сделать это снова (?) но для JaCoCo, потому что он пытается найти его из того же репозитория, это моя конфигурация JaCoCo:
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco−maven−plugin</artifactId>
<version>0.7.7.201606060606</version>
<inherited>false</inherited>
<executions>
<execution>
<goals>
<goal>prepare−agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare−package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
И он выдает ошибку, что не может найти его в центральном репозитории, который я поставил на первое место:
"Плагин org.jacoco: jacoco? maven? plugin: 0.7.7.201606060606 или не удалось разрешить одну из его зависимостей: Не удалось прочитать дескриптор артефакта для org.jacoco : jacoco? maven? плагин: jar: 0.7.7.201606060606: Не удалось найти артефакт org.jacoco: jacoco? maven? плагин: pom: 0.7.7.201606060606 в центре (https://repo.maven.apache.org/maven2) -> [Помощь 1 ] "
Как я могу это исправить? также у меня есть apache 3.6.3, почему существует эта проблема https?
mvn -X error log:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------- ------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.044 s
[INFO] Finished at: 2020-03-19 T 11:08:29Z
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format..(omitted)
Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException
It appears to also give this error regardless of JaCoCo configs, although I can run the program still.