-2
我是新的maven,經過幾年的編程,主要是在Ruby和JS中,我回到了Java。mvn clean命令錯誤
我剛開始玩的Maven的,而當我運行mvn clean
我得到以下錯誤(我在OS X上的El-匹10.11.6運行此):
[INFO] Scanning for projects...
[ERROR]
[ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.artifactId' for commons-lang:>commons-lang:jar with value '>commons-lang' does not match a valid id pattern. @ line 15, column 25 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.chen:HelloWorld:0.0.1-SNAPSHOT (/Users/chenn/Development/HelloWorld/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.artifactId' for commons-lang:>commons-lang:jar with value '>commons-lang' does not match a valid id pattern. @ line 15, column 25
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
的POM文件:
<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">
<groupId>com.chen</groupId>
<artifactId>HelloWorld</artifactId>
<version>0.0.1-SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>>commons-lang</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
</project>
我一直在努力尋找答案,但在路上掙扎。
'>公共琅 ' 這條線生產error.Change它: '公地郎 ' –
錯誤清清楚楚地寫着'「>公地郎」不匹配有效的身份識別碼。 @第15行,第25列「。刪除額外的'>'它應該是好的。 – Lucky
沒辦法,我寫了一個錯字的問題!多謝你們 – Chen