NeQrhk 2016-04-17 14:00 采纳率: 30.6%
浏览 1818

maven问题,编译错误,谁帮忙看下谢了

D:\code\maven01\src\main\java\com\imooc\maven01\model
里面有java文件如下
package com.imooc.maven01.model;
public class HelloWorld{
public String sayHello(){
return "Hello World";
}
}
D:\code\maven01\src\test\java\com\imooc\maven01\model
import org.junit.*;
import org.junit.Assert.*;

public class HelloWorldTest{
@Test
public void testHello(){
Assert.assertEquals("Hello World!",new HelloWorld().sayHello());
}
}
有导入junit包了

D:\code\maven01>mvn compile
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM D:\code\maven01\pom.xml: expected = after attribute na
me (position: START_DOCUMENT seen ....0.0" xmlns:xsi="http://www.w3.org/2001/XML
Schema-instance" xsi:\ns... @4:2) @ line 4, column 2
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project (D:\code\maven01\pom.xml) has 1 error
[ERROR] Non-parseable POM D:\code\maven01\pom.xml: expected = after attribut
e name (position: START_DOCUMENT seen ....0.0" xmlns:xsi="http://www.w3.org/2001
/XMLSchema-instance" xsi:\ns... @4:2) @ line 4, column 2 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseExce
ption

编译错误

  • 写回答

2条回答 默认 最新

  • devmiao 2016-04-17 21:11
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 docker模式webrtc-streamer 无法播放公网rtsp
  • ¥15 学不会递归,理解不了汉诺塔参数变化
  • ¥15 基于图神经网络的COVID-19药物筛选研究
  • ¥30 软件自定义无线电该怎样使用
  • ¥15 R语言mediation包做中介分析,直接效应和间接效应都很小,为什么?
  • ¥15 Jenkins+k8s部署slave节点offline
  • ¥15 如何实现从tello无人机上获取实时传输的视频流,然后将获取的视频通过yolov5进行检测
  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题