aspose file tools*
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
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: 3274
    
    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: 16250
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 16250
    
  21

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