org.apache.maven.plugin.eclipse
Class AddMavenRepoMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.eclipse.AddMavenRepoMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class AddMavenRepoMojo
extends org.apache.maven.plugin.AbstractMojo

Adds the classpath variable MAVEN_REPO to Eclipse.


Field Summary
static java.lang.String CLASSPATH_VARIABLE_M2_REPO
          Property constant under which Variable 'M2_REPO' is setup.
static java.lang.String DIR_ECLIPSE_CORE_RUNTIME_SETTINGS
          Path under folder where Eclipse Workspace Runtime settings are stored.
static java.lang.String DIR_ECLIPSE_PLUGINS_METADATA
          Path under Eclipse workspace where Eclipse Plugin metadata/config is stored.
static java.lang.String FILE_ECLIPSE_JDT_CORE_PREFS
          File that stores the Eclipse JDT Core preferences.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AddMavenRepoMojo()
           
 
Method Summary
 void execute()
           
 org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
           
 java.lang.String getWorkspace()
           
 void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
           
 void setWorkspace(java.lang.String workspace)
           
 
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
 

Field Detail

DIR_ECLIPSE_PLUGINS_METADATA

public static final java.lang.String DIR_ECLIPSE_PLUGINS_METADATA
Path under Eclipse workspace where Eclipse Plugin metadata/config is stored.

See Also:
Constant Field Values

DIR_ECLIPSE_CORE_RUNTIME_SETTINGS

public static final java.lang.String DIR_ECLIPSE_CORE_RUNTIME_SETTINGS
Path under folder where Eclipse Workspace Runtime settings are stored.

See Also:
Constant Field Values

FILE_ECLIPSE_JDT_CORE_PREFS

public static final java.lang.String FILE_ECLIPSE_JDT_CORE_PREFS
File that stores the Eclipse JDT Core preferences.

See Also:
Constant Field Values

CLASSPATH_VARIABLE_M2_REPO

public static final java.lang.String CLASSPATH_VARIABLE_M2_REPO
Property constant under which Variable 'M2_REPO' is setup.

See Also:
Constant Field Values
Constructor Detail

AddMavenRepoMojo

public AddMavenRepoMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getLocalRepository

public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()

setLocalRepository

public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)

getWorkspace

public java.lang.String getWorkspace()

setWorkspace

public void setWorkspace(java.lang.String workspace)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.