为什么我的maven的pom.xml文件中报错了
整个贴出来,这看不出来,报错信息也贴出来
idea还是很智能的
鼠标放在project(下划线)上面,会给出提示,到底是哪个环节有问题,提示很详细。
真蛋疼,代码片发上去怎么看不见,只能发图片
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zxtx.apps.traffic</groupId>
<artifactId>danger-basic</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>basic</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
你这贴一段看不出啥,我这发的我的
上面的是指我本某块的名称版本号什么的
里面是引用模块
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
这表示引用的jar包