Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pom.xml ERROR

 
noemi conde
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I changed the parent artifactId

to:

The pom.xml shows this error:
Project build error: For managed dependency jre:javaws:jar: system-scoped dependency must specify an absolute systemPath but is ${java.home}/lib/javaws.jar


and cannot import all the dependencies I have, does anybody knows why ???
any idea ???
please I need some help !!!

Thanks.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message gives you the clue, find the POM file that contains that dependency, there's an error with you the location of it is referenced.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18221
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are, alas, certain cases in Maven where a variable substitution doesn't work. Or when it does, if the results resolve to a relative filesystem path, Maven will still be annoyed because it demands an absolute filesystem path.

Been there, done that, was much disappointed.
 
noemi conde
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thanks for your quick answer, i'm actually looking for this dependency in the whole workspace, but I think it doesn't exist, maybe I must add a new property in my pom.xml, but I'm not sure.

Do you remember what you did to solve this inconvenience ???
I have no ideas and I'm running out of time, and so much wasted whit this problem !

Thanks again !
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18221
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ended up having to use an absolute pathname. Hard-coded, too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic