mvn complie 构建工程出错
环境变量
pom.xml
<?xml version="1.0" encoding="UTF-8"?> <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/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.studymaven</groupId> <artifactId>maven01-model</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> </dependencies> </project>
部分代码
package com.studymaven.model; public class HelloWorld{ public String sayHello() { return "Hello World!"; } }
错误截图
错误截图中的关键代码
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
尝试:我有特意按照这个路径去下载该2.6的jar,放置到maven安装路径的lib文件夹下面。。。未果
求助大家!!!谢谢