NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Cannot add Maven2 dependency

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
dabd



Joined: 23 Oct 2009
Posts: 6

PostPosted: Fri Feb 26, 2010 9:38 pm    Post subject: Cannot add Maven2 dependency Reply with quote

Hi,

When I try to add dependency (Jersey 1.1.4 or any version for that matter) to a Maven2 project, the icon appears with a red minus sign next to it and says a message "The dependency is missing locally.".

I'm using NB6.8 and this is the stack trace I get:

Code:
org.apache.maven.project.ProjectBuildingException: POM 'org.netbeans.external:jersey-client-1.1.4' not found in repository: Unable to download the artifact from any repository

  org.netbeans.external:jersey-client-1.1.4:pom:RELEASE68

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net2 (http://download.java.net/maven/2)
 for project org.netbeans.external:jersey-client-1.1.4
   at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:590)
   at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:233)
   at org.netbeans.modules.maven.repository.ui.ArtifactMultiViewFactory.readMavenProject(ArtifactMultiViewFactory.java:234)
   at org.netbeans.modules.maven.repository.ui.ArtifactMultiViewFactory.access$000(ArtifactMultiViewFactory.java:99)
   at org.netbeans.modules.maven.repository.ui.ArtifactMultiViewFactory$1.run(ArtifactMultiViewFactory.java:165)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

  org.netbeans.external:jersey-client-1.1.4:pom:RELEASE68

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net2 (http://download.java.net/maven/2)

   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:179)
   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:82)
   at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:552)
   ... 6 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
   at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:363)
   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:167)
   ... 8 more



I could add all the other dependencies with no problems.
How can I add this one too?

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo