admin管理员组文章数量:1393226
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
1 Answer
Reset to default 3I 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.
本文标签: javaunable to resolve maven artifact in pomStack Overflow
版权声明:本文标题:java - unable to resolve maven artifact in pom - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744407430a2604780.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论