webjars-maven-plugin Maven Mojo

Manage WebJars from the command line.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.webjars
ArtifactId

ArtifactId

webjars-maven-plugin
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

webjars-maven-plugin Maven Mojo
Manage WebJars from the command line.
Source Code Management

Source Code Management

http://github.com/webjars/webjars-maven-plugin

Download webjars-maven-plugin

How to add to project

<plugin>
    <groupId>org.webjars</groupId>
    <artifactId>webjars-maven-plugin</artifactId>
    <version>0.2.0</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0.4
org.codehaus.plexus : plexus-utils jar 3.0.10
com.github.kevinsawicki : http-request jar 5.4
com.google.code.gson : gson jar 2.2.4
org.apache.maven : maven-core jar 3.0.4
org.sonatype.sisu : sisu-guava jar 0.11.1
org.apache.commons : commons-exec jar 1.1

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

webjars-maven-plugin

Makes WebJars super-easy to find and install from the command line.

Prerequisites

Requires Java 5 and Maven 3.0.4.

Installation

Native

Download the latest release. Unpack it somewhere and add the bin folder to your path. You can now run webjars list jquery.

Maven

To invoke the plugin with the mvn webjars:<goal> shortcut, you must either add the plugin to Maven's settings.xml or to your project's pom.xml. If you do neither, you must use mvn org.webjars:webjars-maven-plugin:<goal>.

Global

In settings.xml (in $USER_HOME/.m2 by default), add the following line to the pluginGroups element (more info):

<pluginGroup>org.webjars</pluginGroup>

The shortcut is now available globally.

Project-specific

In your project's POM, add the plugin to the plugins element:

<plugin>
  <groupId>org.webjars</groupId>
  <artifactId>webjars-maven-plugin</artifactId>
  <version>1.0.0-SNAPSHOT</version>
</plugin>

The shortcut is now available in the project's directory

Goals

list

Lists all available WebJars. Can be used from any directory.

The optional webjar parameter filters the results.

webjars list or mvn webjars:list

webjars list jquery or mvn webjars:list -Dwebjar=jquery

install

Adds a webjar to your dependencies.

The required webjar parameter specifies which WebJar to install. The format is: <name>[:<version]. If there is no version, the latest version is used.

webjars install jquery or mvn webjars:install -Dwebjar=jquery

webjars install jquery:1.10.1 or mvn webjars:install -Dwebjar=jquery:1.10.1

License

webjars-maven-plugin is licensed under the Apache v2.0 License.

org.webjars

WebJars

Web Libraries as JAR Files

Versions

Version
0.2.0
0.1.0