(Quick Reference)
maven-install
Purpose
Installs a packaged application or plugin into the local Maven cache.
Options
grails maven-install [--binary]
binary
packages the plugin in binary form before installing it. This overrides the default packaging for the plugin.
Examples
Install a WAR or plugin into the local Maven cache:
Package a plugin in binary form before installing it:
grails maven-install --binary
Description
Packages the current project (either a plugin or application) and installs the resulting artifact into the local Maven cache along with its POM. If you want to install the artifact to a different location from the standard Maven cache, you can set the destination path in
BuildConfig.groovy
or
settings.groovy
via the option
grails.project.mavenCache = "${userHome}/my/other/cache"
This command will automatically generate a POM for the artifact based on the information in
BuildConfig.groovy
and the plugin descriptor (for a plugin project), but you can override this behaviour by putting your own
pom.xml
file in the root of the project directory.