org.apache.maven.plugin.eclipse
Class MakeArtifactsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.eclipse.EclipseToMavenMojo
          extended by org.apache.maven.plugin.eclipse.MakeArtifactsMojo
All Implemented Interfaces:
ContextEnabled, Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

Deprecated. use EclipseToMavenMojo for the latest naming conventions

public class MakeArtifactsMojo
extends EclipseToMavenMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

Add eclipse artifacts from an eclipse installation to the local repo. This mojo automatically analize the eclipse directory, copy plugins jars to the local maven repo, and generates appropriate poms. Use eclipse:to-maven for the latest naming conventions in place, groupId. artifactId.

Version:
$Id: MakeArtifactsMojo.java 691404 2008-09-02 21:57:19Z aheritier $
Author:
Fabrizio Giustina, Carlos Sanchez
Is defined by the goal name:
make-artifacts
Requires a Maven project to run:
false

Field Summary
 
Fields inherited from class org.apache.maven.plugin.eclipse.EclipseToMavenMojo
inputHandler, installer
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MakeArtifactsMojo()
          Deprecated.  
 
Method Summary
protected  String createArtifactId(String bundleName)
          Deprecated. Get the artifact id equal to the bundleName e.g.
protected  String createGroupId(String bundleName)
          Deprecated. Get the group id as the three first tokens in artifacts Id e.g.
protected  String osgiVersionToMavenVersion(String version)
          Deprecated.  
protected  void processPlugin(EclipseOsgiPlugin plugin, Model model, Map plugins, Map models)
          Deprecated.  
protected  void resolveVersionRanges(Model model, Map models)
          Deprecated. Resolve version ranges in the model provided, overriding version ranges with versions from the dependency in the provided map of models.
 
Methods inherited from class org.apache.maven.plugin.eclipse.EclipseToMavenMojo
contextualize, execute, fixBuildNumberSeparator, getKey, osgiVersionToMavenVersion, parseDependencies, processFile
 
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
 
Methods inherited from interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
contextualize
 

Constructor Detail

MakeArtifactsMojo

public MakeArtifactsMojo()
Deprecated. 
Method Detail

osgiVersionToMavenVersion

protected String osgiVersionToMavenVersion(String version)
Deprecated. 
Overrides:
osgiVersionToMavenVersion in class EclipseToMavenMojo

createGroupId

protected String createGroupId(String bundleName)
Deprecated. 
Get the group id as the three first tokens in artifacts Id e.g. org.eclipse.jdt -> org.eclipse.jdt

Overrides:
createGroupId in class EclipseToMavenMojo
Parameters:
bundleName - bundle name
Returns:
group id

createArtifactId

protected String createArtifactId(String bundleName)
Deprecated. 
Get the artifact id equal to the bundleName e.g. org.eclipse.jdt -> org.eclipse.jdt

Overrides:
createArtifactId in class EclipseToMavenMojo
Parameters:
bundleName - bundle name
Returns:
artifact id

resolveVersionRanges

protected void resolveVersionRanges(Model model,
                                    Map models)
                             throws MojoFailureException
Deprecated. 
Description copied from class: EclipseToMavenMojo
Resolve version ranges in the model provided, overriding version ranges with versions from the dependency in the provided map of models. TODO doesn't check if the version is in range, it just overwrites it

Overrides:
resolveVersionRanges in class EclipseToMavenMojo
Throws:
MojoFailureException

processPlugin

protected void processPlugin(EclipseOsgiPlugin plugin,
                             Model model,
                             Map plugins,
                             Map models)
                      throws MojoExecutionException,
                             MojoFailureException
Deprecated. 
Overrides:
processPlugin in class EclipseToMavenMojo
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.