A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
Ant, Maven and Other Build Tools
Author
not parent found for jersey-server
Juan Luis Prieto
Greenhorn
Joined: Sep 25, 2009
Posts: 15
posted
Apr 24, 2012 04:54:24
0
Hi I'm compiling a project that uses jersey-server and I am getting the following error:
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: null:jersey-server:bundle:null Reason: Cannot find parent: com.sun.jersey:jersey-project for project: null:jers ey-server:bundle:null for project null:jersey-server:bundle:null
in my pom I've this defined:
<dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> <version>1.12</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-client</artifactId> <version>1.12</version> </dependency>
and the depenency appears to be in the
maven
classpath and local repository.
Can anyone help me to solve this issue? thanks in advance.
Cheers
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5543
I like...
posted
Apr 24, 2012 12:59:30
0
Which version of Maven are you using? Is your project a multi-module project? I ask because we ran into a similar issue in multi-module projects with Maven 3.0.3; when we moved to 3.0.4 to problem went away.
JBoss In Action
Sergio Fernandez
Greenhorn
Joined: May 24, 2012
Posts: 1
posted
May 24, 2012 03:42:29
0
That could be a wrong cache previously downloaded by maven. I solved the issue removing those artifacts from my local cache:
rm -rf ~/.m2/repository/com/sun/jersey
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: not parent found for jersey-server
Similar Threads
Strange problem - works on maven glassfish but not on Tomcat
Maven dependencies
Tomcat and Axis2
Cant Run Simple Jersey REST Webservice Example
Maven web project dependencies
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter