Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6738505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:22:37+00:00 2026-05-26T11:22:37+00:00

Maven must be losing its mind. I added a dependency using Netbeans Add Dependency

  • 0

Maven must be losing its mind.

I added a dependency using Netbeans Add Dependency dialog. I searched for jax-rs-ri. It updated the index from central and showed several versions of jax-rs-ri. I selected 1.9.1 and it added this to the pom.xml:

    <dependency>
        <groupId>com.sun.jersey.ri</groupId>
        <artifactId>jax-rs-ri</artifactId>
        <version>1.9.1</version>
    </dependency>

Looks right, but when I build I get the following error:

Failed to execute goal on project reply-to.test-web: 
Could not resolve dependencies for project jms:reply-to.test-web:war:1.0-SNAPSHOT: 
Could not find artifact com.sun.jersey.ri:jax-rs-ri:jar:1.10-b03 in 
central (http://repo1.maven.org/maven2) -> [Help 1]

I’ve also tried changing the repository the following with the same results:

 <repositories>
    <repository>
        <id>maven2-repository.java.net</id>
        <name>Java.net Repository for Maven</name>
        <url>http://download.java.net/maven/2</url>
        <layout>default</layout>
    </repository>
</repositories>

This was working earlier today. Did something just get broken with Maven?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:22:38+00:00Added an answer on May 26, 2026 at 11:22 am

    In these cases it’s worth to check the local repository (usually c:\Users\<username>\.m2\repository\com\sun\jersey\ri\jax-rs-ri or /home/<username>/.m2/repository/com/sun/jersey/jax-rs-ri) and Central:
    http://search.maven.org/#artifactdetails|com.sun.jersey.ri|jax-rs-ri|1.9.1|pom
    (The important part now is the “Available Downloads” table.)

    So, there isn’t any jar file just a zip (and the POM). You should use <type>zip</type> in your dependency like this:

    <dependency>
        <groupId>com.sun.jersey.ri</groupId>
        <artifactId>jax-rs-ri</artifactId>
        <version>1.9.1</version>
        <type>zip</type>
    </dependency>
    

    Since it’s a zip maybe you want to unpack it. This answer could help: Unzip dependency in maven

    Please note that 1.9.1 is not the latest jax-rs-ri version and your Maven uses 1.10-b03. If you want to force it to use 1.9.1 you have to use <version>[1.9.1]</version> inside the dependency tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently started using maven for dependency management. Our team uses eclipse as it's
Can Maven copy local file to a remote server using SSH? I want to
What Maven repository can I use for EJB 3.1 API dependency?
I am using the Maven (2) Cobertura plug-in to create reports on code coverage,
We build software using Hudson and Maven. We have C#, java and last, but
I am trying to release a web project using Maven 2.2.1 and the maven-release-plugin
So our new webapp project is based on maven. I'm really liking the dependency
I have a Java EE 6 Wicket application deployed with maven using IntelliJ IDEA
I'm using maven & tyhco to compile & build my eclipse plugins and create
I'm using the maven-antrun-plugin with install4j to build installers for my application. It doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.