<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"> 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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cucumber</groupId>
<artifactId>MavenCucumberPrototype</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MavenCucumberPrototype</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
2
A
回答
4
你有一個結束標籤依賴但沒有開始標記依賴
(缺少標籤應該在性能標籤以及firts依賴)
1
除了<dependencies>
標籤丟失,您對<project>
標籤的問題,以及這應做到:
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cucumber</groupId>
<artifactId>MavenCucumberPrototype</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MavenCucumberPrototype</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
相關問題
- 1. 項目生成錯誤:非解析父POM
- 2. Artifactory/JFrog在生成的POM中生成錯誤的父項artifactId
- 3. 錯誤消息我不明白在安裝項目的生成
- 4. 機解析的錯誤消息
- 5. 解析的SQLException錯誤消息
- 6. mvn原型:生成構建POM的錯誤(可能不是此項目的POM)
- 7. 解釋拉解析器錯誤消息
- 8. 生成的jhipster項目發生錯誤
- 9. libclang解析生成錯誤的輸出
- 10. 解析錯誤消息給Django模板?
- 11. 我收到解析器錯誤消息
- 12. 提高ANTLR DSL解析錯誤消息
- 13. 逐行解析文件的目錄中的錯誤消息
- 14. 只生成一次錯誤消息
- 15. mysql_error不生成錯誤消息
- 16. xcode生成內部錯誤消息
- 17. Qt Creator的項目生成錯誤
- 18. 使用VBA爲特定的Excel錯誤消息生成消息?
- 19. 解析雲代碼錯誤:Parse.Error {code:141,消息:「成功/錯誤未被調用」}
- 20. Azure每天發送錯誤消息或發生錯誤消息
- 21. 在內部項目中顯示生產中的錯誤消息
- 22. MSBuild:命令行生成錯誤:解決方案文件錯誤MSB5023:解析嵌套項目部分時出錯
- 23. XML解析錯誤:生成RSS訂閱
- 24. 解析Haskell圖表生成器錯誤
- 25. ASP.net項目解析器錯誤?
- 26. 解析錯誤逃生PHP
- 27. 解析錯誤解析錯誤
- 28. 隨機項目生成器解析時意外的EOF錯誤Python 3.4.3
- 29. perl解釋器上的錯誤消息的錯誤?
- 30. 錯誤消息
請修復代碼部分。而你錯過了'''標籤。 –
watery
謝謝,代碼已修復。 – vikas