Add a dependency to the module of an XML file with a matching tag
ProprietaryAdd a dependency to the Maven or Gradle module holding an XML file, such as a page or web.xml, with a tag that matches an XPath expression. Files under src/test/ do not count.
io. moderne. java. primefaces. AddDependencyForMatchingTagRequired
The first part of a dependency coordinate groupId:artifactId:version.
The second part of a dependency coordinate groupId:artifactId:version.
An exact version number or node-style semver selector used to select the version number.
An XPath expression matching a tag that needs the dependency, in any XML file outside src/test/.
mod run . --recipe= io. moderne. java. primefaces. AddDependencyForMatchingTag \
-P groupId= uk. org. okapibarcode \
-P artifactId= okapibarcode \
-P version=0.5.0 \
-P xPath= '/ / *[local-name()= '\''barcode'\'' and namespace-uri()= '\''http: / / primefaces. org/ ui'\'']'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.