How can I change this:
...
<dependencies>
...
<dependency>
<groupId>xyz</groupId>
<artifactId>abc</artifactId>
</dependency>
...
</dependencies>
...
to that:
...
<dependencies>
...
<dependency>
<groupId>xyz</groupId>
<artifactId>abc</artifactId>
<scope>system</scope>
<systemPath>/.../src/main/.../some.jar</systemPath>
</dependency>
...
</dependencies>
...
based on the value of "/dependencies/dependency/groupId" AND "/dependencies/dependency/artifactId"
in bash (by xmlstarlet,...)?
Update
Obviously this seems to be not clear enough. So: The code has to find the dependency with groupId==xyz and artifactId==abc and then (and only then) add the two now nodes to the parent of the groupId and artifactId node.