开发者

Problem with JBoss dependencies in Maven

开发者 https://www.devze.com 2023-02-05 02:42 出处:网络
I have code dependant on some JBoss provided libraries. I have added to my POM following dependency: ...

I have code dependant on some JBoss provided libraries. I have added to my POM following dependency:

...
<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>

And I receive following error

[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.开发者_Go百科jboss.aspec
ts:jboss-transaction-aspects

I couldn't "google" it out. Any ideas?


It seems either your dependencies tags are not matching, or you don't have them.

0

精彩评论

暂无评论...
验证码 换一张
取 消