Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gcuisinier/maven-xmlmerger-plugin

Maven plugin for process simple XML Merging
https://github.com/gcuisinier/maven-xmlmerger-plugin

Last synced: about 2 months ago
JSON representation

Maven plugin for process simple XML Merging

Awesome Lists containing this project

README

        

#Maven XML Merge Plugin

Plugin maven that allow to merge a XML Document with another one annotated by XDT processing instructions

By example, merging this XML DOcument

```xml



```

with this one :

```xml



```

generate this last :

```xml




```

For more information of merging possibility, read the documentation of https://github.com/hikage/xdt4j

##Building

mvn clean install

Usage
=====

##Available Goal

### xmlmerger:mergexml

Here is the available parameters for this goal :

**baseDirectory** :

* **Type**: java.lang.File
* **Description**: The input directory in which the XML Document base can be found.
* **Default value** : ${project.build.outputDirectory}

**inputDirectory** :

* **Type**: java.lang.File
* **Description**: The input directory in which the XML Merge Data can be found.
* **Default value** : ${basedir}/src/main/xmlmerge

**outputDirectory** :

* **Type**: java.lang.File
* **Description**: The output directory into which to copy the genereated XML.
* **Default value** : ${project.build.outputDirectory}

**mergeFilenamePattern** :

* **Type**: String (regex)
* **Description**: The mergeFilenamePattern used to find XML Document to merge. It have to return two groups, including the second is the name of the file in which it must be merged. The default pattern assume that the XML Document to be merged has the same name as the base XML Document
* **Default value** : ()(.*)