-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