Quantcast

Include external xml file in settings.xml

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Include external xml file in settings.xml

vitki
Hi

I would like to know if there is a way that I can "split" the settings.xml file. I want to take the following and store it local on a host where Karaf is running ...

<Snip>
  <servers>
   
    <server>
      <id>apache.snapshots.https</id>
      <username>  </username>
      <password>  </password>
    </server>
   
    <server>
      <id>apache.releases.https</id>
      <username>  </username>
      <password>  </password>
    </server>
   
    <server>
        <id>people.apache.org</id>
        <username>  </username>
        <password>  </password>
    </server>
<Snip>

and the rest of the settings.xml file will be managed by a configuration manager (Puppet).

so the settings.xml file will probably look something like this

<Snip>
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE adocname[
<!ENTITY servers SYSTEM "servers.xml">
]>
<arootnode>
&servers;
</arootnode>

  <mirrors>
    <mirror>
      <mirrorOf>*</mirrorOf>
      <name>repo</name>
<Snip>

any help would be of value...

Regards
Loading...