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:
- 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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 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.