我的代码依赖于一些JBoss提供的库。我已经在依赖后添加到我的POM中了:
...
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
</repository>
...
<dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-client</artifactId>
<version>6.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
我收到以下错误
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.jboss.aspects:jboss-transaction-aspects
Reason: Failed to build model from file 'C:\Users\User\.m2\repository\org\jboss\
aspects\jboss-transaction-aspects\1.0.0.GA\jboss-transaction-aspects-1.0.0.GA.po
m'.
Error: 'no more data available - expected end tags </dependency></dependencies><
/project> to close start tag <dependency> from line 48 and start tag <dependenci
es> from line 45 and start tag <project> from line 1, parser stopped on END_TAG
seen ...<groupId>org.jboss</groupId>\n ... @50:5' for project org.jboss.aspec
ts:jboss-transaction-aspects
我无法“谷歌”出来。有什么想法吗?
答案 0 :(得分:0)
似乎您的依赖项标记不匹配,或者您没有它们。