org.sonar.plugins.api.maven
Interface MavenPluginHandler

All Known Implementing Classes:
AbstractMavenPluginHandler

public interface MavenPluginHandler

Defines a maven plugin handler, used to launch a maven plugin set of goals


Method Summary
 void configure(MavenPom pom)
          Configures the pom being executed, add or remove plugin properties
 java.lang.String getArtifactId()
          The plugin artifact id
 java.lang.String[] getGoals()
          The maven goals to execute
 java.lang.String getGroupId()
          The plugin group id
 java.lang.String getVersion()
          The fixed plugin version to execute
 boolean isFixedVersion()
          Indicates if the plugin version should be fixed or not, it means that if your pom defines another version than the one defined by getVersion(), this version will be used
 

Method Detail

getGroupId

java.lang.String getGroupId()
The plugin group id

Returns:
the group id

getArtifactId

java.lang.String getArtifactId()
The plugin artifact id

Returns:
artifact id

getVersion

java.lang.String getVersion()
The fixed plugin version to execute

Returns:
the plugin version

isFixedVersion

boolean isFixedVersion()
Indicates if the plugin version should be fixed or not, it means that if your pom defines another version than the one defined by getVersion(), this version will be used

Returns:
true if the version should be fixed

getGoals

java.lang.String[] getGoals()
The maven goals to execute

Returns:
an array of goals

configure

void configure(MavenPom pom)
Configures the pom being executed, add or remove plugin properties

Parameters:
pom - the pom to manipulate


Copyright © 2009 SonarSource SA. All Rights Reserved.