6.1. Maven repository adapter

The maven repository adapter allows to deploy to Package Drone using the default mvn deploy command and consume artifacts as maven 2 repository.

[Note]Consuming with maven

Referencing a Package Drone channel as maven repository in order to use the artifacts in a build (consume them) it is required to add the Maven repository channel aspect to this channel.

The base entry point for this adapter is http://localhost:8080/maven. The first path parameter is the channel ID or name. So in order to deploy to the channel mtest1 using the system property altDeploymentRepository use:

    mvn deloy -DaltDeploymentRepository=pdrone::default::http://deploy:deploy-key@localhost:8080/maven/mtest1

The deploy key as has to be created and assigned to a channel first.