You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jörn Gebhardt <Jo...@ptv.de> on 2004/03/09 14:24:38 UTC

Inserting files into project.xml

Hi,

is there a way, to insert the content of a file into a project.xml? E.g. if
you have many subproject and most of them have the same dependencies I would
like to write these files into a default_dependencies.xml file and include
this file into the project.xml files of the subprojects.

In Ant you can insert the content of a another file (e.g. 'default.targets')
like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
  <!ENTITY DefaultTargets SYSTEM "default.targets">
  %DefaultTargets;
]>
<project basedir="." default="build" name="standard" >
  ...
	&DefaultTargets;
  ...
</project>

Is something like this possible in Maven?

Thanks in advance,
Joern