简体   繁体   English

在pom.xml中获取错误

[英]Getting errors in pom.xml

I need help because I have no experience using Maven. 我需要帮助,因为我没有使用Maven的经验。 I am trying to run this sample application a tutorial for is here: http://www.javacodegeeks.com/2011/01/restful-web-services-with-resteasy-jax.html 我正在尝试运行此示例应用程序的指南, 网址为: http : //www.javacodegeeks.com/2011/01/restful-web-services-with-resteasy-jax.html

I have edited the pom.xml as stated in the tutorial, but Iam getting these errors: 我按照教程中的说明编辑了pom.xml,但是我遇到了这些错误:

  • Missing artifact javax.servlet-api:jar.2.5:provided 缺少工件javax.servlet-api:jar.2.5:提供
  • Failed to read artifact descriptor for org.jboss.resteasy:resteasy-jettison-provider: 无法读取org.jboss.resteasy的工件描述符:resteasy-jettison-provider:
  • missing artifact junit:junit:jar:3.8.1:test 缺少工件junit:junit:jar:3.8.1:test
  • missing artifact javax.servlet.jsp:jsp-api:jar:2.1:provided etc... 缺少工件javax.servlet.jsp:jsp-api:jar:2.1:提供等...

They all are kind of dependency errors, but since I have no idea how to use Maven I don't know how to solve them. 它们都是某种依赖错误,但是由于我不知道如何使用Maven,所以我不知道如何解决它们。

JBoss has changed the location of the maven repository so change <url>http://repository.jboss.org/maven2/</url> in the repository element to <url>http://repository.jboss.org/nexus/content/groups/public/</url> JBoss已经更改了maven存储库的位置,因此将存储库元素中的<url>http://repository.jboss.org/maven2/</url>更改为<url>http://repository.jboss.org/nexus/content/groups/public/</url>

JBoss often changes their repositoy so it gets really confused since there are so many urls on the internet (even their own documentation are worng) but most of them don't work. JBoss经常改变他们的repositoy,所以它真的很混乱,因为互联网上有这么多网址(甚至他们自己的文档都是狼人),但大多数都没有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM