POM and XML Search

Skip to end of metadata
Go to start of metadata
Table of Contents

Overview

Artifactory allows you to perform XPath searches on POMs or on any XML metadata (attached to files and folders).

XML Searches and Indexing is Turned-off by Default

Starting from Artifactory 2.4.0, XML indexing and the XPath searches are disabled by default for performance reasons.
In case of an upgrade to 2.4.0, any XML artifacts deployed post-upgrade will not be searchable (although existing ones will still be).

XML indexing can be re-enabled by setting the property artifactory.search.xmlIndexing to true in $ARTIFACTORY_HOME/etc/artifactory.system.properties.
In this case artifacts deployed prior to enabling XML indexing will not be index, so you will need to redeploy/reimport them.

Searching

The search is available under Artifacts:POM/XML Search.
You can enter the name of the metadata, the XPath to the value in the XML you wish to search and the value itself.
For searching POMs, simply uncheck the 'Metadata Search' checkbox.

For example, you can use the following search to find all POMs with a version of '1.6':

The 'Smart Searches' add-on allows you to slice and dice multiple items found in multiple search results in one go.

The 'Properties' add-on allows you to perform more powerful searches, using custom properties and simpler interface to define and aggregate search values.

Labels: