项目构建错误:不可解析的POM C:\ Users \ admin \ workspace \ WebDriverDemo \ pom.xml:在开始标记之前仅允许空白内容,而不是
-
(位置:看到START_DOCUMENT<?xml version="1.0"?>\r\n\r\n-
... @ 3:2)
我已经在这里搜索
<?xml version="1.0"?> //showing error in this line
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"> //showing error in this line
<modelVersion>4.0.0</modelVersion>
<groupId>com.pluralsight</groupId>
<artifactId>WebDriverDemo</artifactId>
<version>0.0.1-SNAPSHOT</version>
-<dependencies>
-<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
</dependencies>
-<build>
-<plugins>
-<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
-<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
我遇到此错误,因为它是我的新手,我正在网上学习硒,但遇到此错误时,请帮忙。