Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dernasherbrezon/swift-maven

Maven Wagon for OpenStack Swift
https://github.com/dernasherbrezon/swift-maven

maven-plugin maven-wagon openstack-swift

Last synced: about 2 months ago
JSON representation

Maven Wagon for OpenStack Swift

Awesome Lists containing this project

README

        

# Swift Maven Wagon [![Build Status](https://travis-ci.com/dernasherbrezon/swift-maven.svg?branch=master)](https://travis-ci.com/dernasherbrezon/swift-maven) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.aerse%3Aswift-maven&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.aerse%3Aswift-maven)

This project is a [Maven Wagon][wagon] for [OpenStack Swift][swift]. In order to publish artifacts to an swift container, the user (as identified by their username and password) must have access to the container.

## Usage
To publish Maven artifacts to swift a build extension must be defined in a project's `pom.xml`. The latest version of the wagon can be found on the [`swift-maven`][swift-maven] page in Maven Central.

```xml

...

...

...

com.aerse
swift-maven
1.1

...

...

...

```

Once the build extension is configured distribution management repositories can be defined in the `pom.xml` with an `swift://` scheme.

```xml

...


container-name-snapshot
swift:///v3


container-name-release

swift:///v3


...

```

Finally the `~/.m2/settings.xml` must be updated to include username and password for the account.

```xml

...

...

container-name-release
0123456789ABCDEFGHIJ
0123456789abcdefghijklmnopqrstuvwxyzABCD


container-name-snapshot
0123456789ABCDEFGHIJ
0123456789abcdefghijklmnopqrstuvwxyzABCD

...

...

```

[swift-maven]: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.aerse%22%20AND%20a%3A%22swift-maven%22
[swift]: https://docs.openstack.org/swift/latest/
[wagon]: http://maven.apache.org/wagon/