Relative paths are resolved relative to the current working directory. You
can either use the system properties specified within the POM (e.g.,
{maven.war.warSourceDirectory}/WEB-INF/applicationContext-hibernate.xml) or
use a classpath: url (e.g., classpath:applicationContext-hibernate.xml)
HTH,
Ian
It's better to be hated for who you are
than loved for who you are not
Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078
Peter Karlsson
cc:
Subject: Modules and paths
04/18/2006 07:03
AM
Please respond to
"Maven Users
List"
Hi, I have this line which reads my Spring bean declarations from the named
relative path.
"file:WebContent/WEB-INF/applicationContext-hibernate.xml"
When running the web module pom, this works correctly, however when running
the parent pom it cannot find the file. If I prepend "MyWebModule" to the
string it works fine again.
Shouldn't the path be relative it's own modules pom and not to the parent
pom?
BR
/Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]