I'm trying to use maven to build a master site with multiple subprojects,
like db.apache.org

I've worked out all the kinks, except one. The machine that the site lives
on is likely to move. So, I wanted to define the base url somewhere globally
and then base the rest of my url's from there.

This is my first try.

default_projects.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
  <pomVersion>3</pomVersion>
  <base-url>http://projects.site.com:8080</base-url>
</project>

project.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
  <pomVersion>3</pomVersion>
  <extend>${basedir}/../project_defaults.xml</extend>
  <url>${pom.base-url}/adept-open</url>
</project>

As the experts already know, and I found out through expirementation, this
doesn't work. 

What I really want to do is somehow access values I've set in my
default_projects.xml file from my projects.xml.

If I'm approaching the problem wrong, let me know because I could just as
easily use a global properties file if I could reference it somehow like the
default_projects.xml file.

If this is covered in the manual somewhere, please point me in the right
direction. I tried to find references to what properties are available
during the resolution of the POM by Jelly, but I couldn't find it.

Thanks in advance,

Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to