Получение ошибки при создании проекта maven - PullRequest
1 голос
/ 21 июня 2019

Я получаю сообщение об ошибке при создании проекта maven.

Multiple annotations found at this line:
    - CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin 
     org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failure to transfer junit:junit:jar:3.8.2 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has 
     elapsed or updates are forced. Original error: Could not transfer artifact junit:junit:jar:3.8.2 from/to central (https://repo.maven.apache.org/maven2): 
     repo.maven.apache.org
    - CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: 
     Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failure to transfer junit:junit:jar:3.8.2 
     from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 
     has elapsed or updates are forced. Original error: Could not transfer artifact junit:junit:jar:3.8.2 from/to central (https://repo.maven.apache.org/maven2): 
     repo.maven.apache.org

Над сообщением об ошибке, показанном в первой строке pom.xml -

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
...