创建Maven项目时出现错误

时间:2019-06-21 16:13:17

标签: maven maven-3 maven-plugin

创建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">

0 个答案:

没有答案