Openstack swift Maven Wagon Support

Standard Maven wagon support for swift:// urls

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.aerse
ArtifactId

ArtifactId

swift-maven
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Openstack swift Maven Wagon Support
Standard Maven wagon support for swift:// urls
Project URL

Project URL

https://github.com/dernasherbrezon/swift-maven
Source Code Management

Source Code Management

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

Download swift-maven

How to add to project

<!-- https://jarcasting.com/artifacts/com.aerse/swift-maven/ -->
<dependency>
    <groupId>com.aerse</groupId>
    <artifactId>swift-maven</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.aerse/swift-maven/
implementation 'com.aerse:swift-maven:1.1'
// https://jarcasting.com/artifacts/com.aerse/swift-maven/
implementation ("com.aerse:swift-maven:1.1")
'com.aerse:swift-maven:jar:1.1'
<dependency org="com.aerse" name="swift-maven" rev="1.1">
  <artifact name="swift-maven" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.aerse', module='swift-maven', version='1.1')
)
libraryDependencies += "com.aerse" % "swift-maven" % "1.1"
[com.aerse/swift-maven "1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.pacesys : openstack4j jar 3.1.0
org.glassfish.jersey.core : jersey-common jar 2.22.2

provided (1)

Group / Artifact Type Version
org.apache.maven.wagon : wagon-provider-api jar 2.6

test (1)

Group / Artifact Type Version
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

Swift Maven Wagon Build Status Quality Gate Status

This project is a Maven Wagon for OpenStack 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 page in Maven Central.

<project>
  ...
  <build>
    ...
    <extensions>
      ...
      <extension>
        <groupId>com.aerse</groupId>
        <artifactId>swift-maven</artifactId>
        <version>1.1</version>
      </extension>
      ...
    </extensions>
    ...
  </build>
  ...
</project>

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

<project>
  ...
  <distributionManagement>
    <repository>
      <id>container-name-snapshot</id>
      <url>swift://<host>/v3</url>
    </repository>
    <snapshotRepository>
      <id>container-name-release</id>
      <name><container name></name>
      <url>swift://<host>/v3</url>
    </snapshotRepository>
  </distributionManagement>
  ...
</project>

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

<settings>
  ...
  <servers>
    ...
    <server>
      <id>container-name-release</id>
      <username>0123456789ABCDEFGHIJ</username>
      <password>0123456789abcdefghijklmnopqrstuvwxyzABCD</password>
    </server>
    <server>
      <id>container-name-snapshot</id>
      <username>0123456789ABCDEFGHIJ</username>
      <password>0123456789abcdefghijklmnopqrstuvwxyzABCD</password>
    </server>
    ...
  </servers>
  ...
</settings>

Versions

Version
1.1
1.0