0.2.1 • Published 5 years ago

ember-cli-deploy-maven v0.2.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

ember-cli-deploy-maven

Build Status npm version

An ember-cli-deploy plugin to deploy static assets to a maven repository

This plugin does a maven deploy with all build ember-cli assets. It can be used to let other maven projects consume your ember app.

Note: this plugin is in early development.

What is an ember-cli-deploy plugin?

A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.

For more information on what plugins are and how they work, please refer to the Plugin Documentation.

Quick Start

To get up and running quickly, do the following:

$ ember install ember-cli-deploy-maven
  • Place the following configuration into config/deploy.js
ENV.maven = {
  groupId: 'com.example.foo',
  artifactId: 'dummy',
  distributionManagement: [{
    snapshot: true,
    id: 'example-snapshots',
    url: 'https://example.com/maven/snapshots'
  }, {
    snapshot: false,
    id: 'example-releases',
    url: 'https://example.com/maven/releases'
  }]
}
  • Run the pipeline
$ ember deploy

Installation

Run the following command in your terminal:

ember install ember-cli-deploy-maven

ember-cli-deploy Hooks Implemented

For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.

  • upload

Configuration Options

For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.

snapshot

This flags tells the plugin to suffix the version with -SNAPSHOT to declare a SNAPSHOT release.

Default: false

version

The version of the generated artifact.

Default: package.json version or "0.0.0" if not found

packaging

Artifact type package

Default: jar

finalName

The name of the bundled project when it's finally built.

Default: ${project.artifactId}-${project.version}-${git.commit.id.abbrev}

repositories

A list of repositories.

Default: []

Example:

repositories: [{
  id: 'codehaus',
  url: 'http://snapshots.maven.codehaus.org/maven2'
}]

distributionManagement

A list of distributionManagement repositories. Use the snapshot field to configure the given repository as snapshotRepository instead of a repository.

Default: []

Example:

distributionManagement: [{
  snapshot: true,
  id: 'example-snapshots',
  url: 'https://example.com/maven/snapshots'
}, {
  snapshot: false,
  id: 'example-releases',
  url: 'https://example.com/maven/releases'
}]

formats

A list of formats as supported by the Maven assembly plugin. If this field is set, this addon activates a Maven profile which will execute the Maven assembly plug-in to build the desired assemblies.

Default: []

Example:

formats: ['zip', 'tar.gz']

Running Tests

  • yarn test

For more information on using ember-cli, visit https://ember-cli.com/.

Contributing