org.apache.maven.plugin.eclipse
Class MakeArtifactsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.eclipse.EclipseToMavenMojo
org.apache.maven.plugin.eclipse.MakeArtifactsMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.apache.maven.plugin.Mojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected java.lang.String |
createArtifactId(java.lang.String bundleName)
Deprecated. Get the artifact id equal to the bundleName e.g. |
protected java.lang.String |
createGroupId(java.lang.String bundleName)
Deprecated. Get the group id as the three first tokens in artifacts Id e.g. |
protected java.lang.String |
osgiVersionToMavenVersion(java.lang.String version)
Deprecated. |
protected void |
processPlugin(EclipseOsgiPlugin plugin,
org.apache.maven.model.Model model,
java.util.Map plugins,
java.util.Map models)
Deprecated. |
protected void |
resolveVersionRanges(org.apache.maven.model.Model model,
java.util.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.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 |
MakeArtifactsMojo
public MakeArtifactsMojo()
- Deprecated.
osgiVersionToMavenVersion
protected java.lang.String osgiVersionToMavenVersion(java.lang.String version)
- Deprecated.
- Overrides:
osgiVersionToMavenVersion
in class EclipseToMavenMojo
createGroupId
protected java.lang.String createGroupId(java.lang.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 java.lang.String createArtifactId(java.lang.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(org.apache.maven.model.Model model,
java.util.Map models)
throws org.apache.maven.plugin.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
- Parameters:
model
- models
-
- Throws:
org.apache.maven.plugin.MojoFailureException
processPlugin
protected void processPlugin(EclipseOsgiPlugin plugin,
org.apache.maven.model.Model model,
java.util.Map plugins,
java.util.Map models)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Deprecated.
- Overrides:
processPlugin
in class EclipseToMavenMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.