This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes pom.xml ERROR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "pom.xml ERROR" Watch "pom.xml ERROR" New topic
Author

pom.xml ERROR

noemi conde
Greenhorn

Joined: May 05, 2010
Posts: 14
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

Joined: Jun 24, 2003
Posts: 3275
    
    5

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.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17166
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
noemi conde
Greenhorn

Joined: May 05, 2010
Posts: 14
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

Joined: Jun 25, 2001
Posts: 17166
    
  27

I ended up having to use an absolute pathname. Hard-coded, too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pom.xml ERROR
 
It's not a secret anymore!