SBuild Plugin that allows deployments to Maven repositories like the Sonatype OSS Nexus Repository
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


SBuild Maven Deploy Plugin

This SBuild plugin provides targets to deploy artifacts with the Maven. E.g. you can use it to deploy to Nexus OSS.


SBuild Maven Deploy Plugin can be downloaded from Maven Central.

To include it in you SBuild buildfile use the @classpath annotation:


Building from Source

git clone
cd sbuild-sbuild-plugin/org.sbuild.plugins.mavendeploy
sbuild all

You will find the built jar in the directory org.sbuild.plugins.mavendeploy/target.


All configurable properties are documented via ScalaDoc. See file MavenDeploy.

Usage Example

import de.tototec.sbuild._

class SBuild(implicit _project: Project) {

  import org.sbuild.plugins.mavendeploy._

  Plugin[MavenDeploy] configure { _.copy(
    groupId = "org.example",
    artifactId = "hello",
    version = "1.0.0",
    repository = Repository(id = "nexus", url = "http:://"),
    files = Map(
      "jar" -> "target/hello-1.0.0.jar",
      "sources" -> "target/hello-1.0.0-sources.jar"

bash$ sbuild -l

To deploy the artifacts use the maven-deploy target. It is essential, to run sbuild with the -j 1 option, as the targets are interactive and require user input.


SBuild Maven Deploy Plugin 0.1.0 - 2014-01-24

  • Initial Release.