Created
October 30, 2018 16:45
-
-
Save 256BitChris/a6615b11a56038e7496ea0ba79a713c4 to your computer and use it in GitHub Desktop.
Distribution Management Settings for BitBucket Pipelines and a Maven Repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
- Distribution Management tells maven where to deploy your artifacts when the 'mvn deploy' command is used. | |
- | |
- Repository Parameters: | |
- id: A unique id for each repository, this must correspond to an entry in the settings.xml file used by maven | |
usually located in ~/.m2/settings.xml or specified using the mvn command's -s parameter | |
(ie: mvn -s settings.xml deploy). | |
You can keep the ids as specified below as long as you have only one set (snapshot and release) of | |
CloudRepo maven repositories, otherwise you'll need to have a unique id in your settings.xml file for each | |
repository. | |
- name: A name to describe your repository, you can keep the example names given here. | |
- url: This is specific to your CloudRepo organization and repository id. The format of the URL should be: | |
https://[cloudrepo-organization-id].mycloudrepo.io/repositories/[repository-id] | |
--> | |
<distributionManagement> | |
<!-- | |
- The <repository> tag defines where release artifacts are pushed to as part of a 'mvn release:perform' command | |
--> | |
<repository> | |
<id>io.cloudrepo.maven.releases</id> | |
<name>CloudRepo Release Repositories</name> | |
<url>https://cloudrepo-examples.mycloudrepo.io/repositories/maven-releases</url> | |
</repository> | |
<!-- | |
- The <snapshotRepository> tag defines where snapshot artifacts are deployed to as part of a 'mvn deploy' command. | |
--> | |
<snapshotRepository> | |
<id>io.cloudrepo.maven.snapshots</id> | |
<name>CloudRepo Snapshots Repositories-</name> | |
<url>https://cloudrepo-examples.mycloudrepo.io/repositories/maven-snapshots</url> | |
</snapshotRepository> | |
</distributionManagement> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment