You can use the following query syntax when searching for artifacts in a Maven repository:
sample | Match all artifacts containing sample |
samp* | Match all artifacts with the prefix samp. For example., sample, samples and samplewebapp. |
*sample |
Match all artifacts with the suffix sample. For example, sample and websample. (On large Maven repositories, this may take a long time.) |
s?mple | Matches sample and simple |
| Match all artifacts containing sample or webapp |
| Match all artifacts containing sample and webapp |
| Match all artifacts containing sample but not webapp |
(sample OR example) AND webapp | Match all artifacts containing webapp and either sample or example |
"sample-webapp" | Match all artifacts containing exactly sample-webapp |
type:war | Match all artifacts whose type is war |
artifactId:sample | Match all artifacts whose artifactId matches sample |
artifactId:"sample-webapp" | Match all artifacts whose artifactId is exactly sample-webapp |
groupId:com.example.* | Match all artifacts whose groupId starts with com.example. |
version:2.0 | Match all artifacts whose version field matches 2.0 |