java - unable to resolve maven artifact in pom - Stack Overflow

I added it to my pom the following dependency node from mvnrepository<dependency><groupId>

I added it to my pom the following dependency node from mvnrepository

<dependency>
  <groupId>.jboss.gravia</groupId>
  <artifactId>gravia-container-wildfly-extension</artifactId>
  <version>1.1.3</version>
  <scope>provided</scope>
</dependency>

I don't know how to set that up so that maven will build because it kicks an error saying it can't find the artifact in the jboss-ga-repository

how can I fix this?

I added it to my pom the following dependency node from mvnrepository

<dependency>
  <groupId>.jboss.gravia</groupId>
  <artifactId>gravia-container-wildfly-extension</artifactId>
  <version>1.1.3</version>
  <scope>provided</scope>
</dependency>

I don't know how to set that up so that maven will build because it kicks an error saying it can't find the artifact in the jboss-ga-repository

how can I fix this?

Share Improve this question asked Mar 20 at 13:09 dracadraca 1,4195 gold badges20 silver badges38 bronze badges 4
  • 1 Did you add JBoss GA Repository to the pom.xml file? Could you maybe also add the part of the pom.xml where the JBoss GA Repository is added? – AztecCodes Commented Mar 20 at 13:15
  • or the entry in settings.xml. – aled Commented Mar 20 at 13:33
  • Idk why people voted to close this question with "needs debugging details". I tried to add the dependency and I also get the same error of OP. I'm genuinely interested in the reason. – dani-vta Commented Mar 20 at 14:07
  • @AztecCodes yes, I had added the JBoss GA Repository, but that repo didn't contain the jar, I had to add the repo mentioned at the bottom. But the question is, shouldnt the repo be in the JBoss GA repo since that was listed in the repositories section with 6 others? – draca Commented Mar 21 at 11:55
Add a comment  | 

1 Answer 1

Reset to default 3

I tried it myself and got the same error.

I was able to fix it after reading the notes on the page https://mvnrepository/artifact/.jboss.gravia/gravia-container-wildfly-extension/1.1.3, which mention that the artifact is hosted on https://repository.jboss./nexus/content/repositories/releases/.

To resolve the issue, you need to add the corresponding repository to your pom.xml:

<repositories>
    <repository>
        <id>jboss-releases</id>
        <url>https://repository.jboss./nexus/content/repositories/releases/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

After adding this, try running mvn clean install again, and it should work.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744407430a4572705.html

相关推荐

  • java - unable to resolve maven artifact in pom - Stack Overflow

    I added it to my pom the following dependency node from mvnrepository<dependency><groupId>

    6天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信