org.sonar.dev
Class UploadMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.sonar.dev.UploadMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class UploadMojo
- extends org.apache.maven.plugin.AbstractMojo
Uploads the plugin artifact to server. Requires SonarQube 4.3 or greater.
- Enable the development mode on server : add sonar.dev=true to conf/sonar.properties
- Restart server
- Build and upload the plugin :
mvn package org.codehaus.sonar:sonar-dev-maven-plugin::upload.
It requires the properties sonarHome (path to local server installation) and sonarUrl (default value
is http://localhost:9000)
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadMojo
public UploadMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2010-2014 SonarSource. All Rights Reserved.