Add a Maven repository element to a project
mvn pax:add-repository -DrepositoryId=... -DrepositoryURL=...
Mojo Attributes:
| Name | Type | Description |
|---|---|---|
| repositoryId | String |
The repository identifier. |
| repositoryURL | String |
The repository URL. |
| Name | Type | Description |
|---|---|---|
| overwrite | boolean |
When true, overwrite matching entries in the POM. |
| pluginRepo | boolean |
When true, treat this as a plugin repository. |
| releases | boolean |
When true, enable releases from this repository. Default value is true. |
| snapshots | boolean |
When true, enable snapshots from this repository. |
| targetDirectory | File |
The directory containing the POM to be updated. Default value is ${project.basedir}. |
When true, overwrite matching entries in the POM.
booleanNo${overwrite}booleanNo${pluginRepo}booleanNo${releases}truejava.lang.StringYes${repositoryId}java.lang.StringYes${repositoryURL}booleanNo${snapshots}java.io.FileNo${targetDirectory}${project.basedir}