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.apache.maven.plugin.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 545353 2007-06-08 00:07:28Z carlos $
- Author:
- Fabrizio Giustina, Carlos Sanchez
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 |
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
- Throws:
org.apache.maven.plugin.MojoFailureException
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.