|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.eclipse.EclipseUtils
public class EclipseUtils
Method Summary | |
---|---|
static EclipseSourceDir[] |
buildDirectoryList(org.apache.maven.project.MavenProject project,
java.io.File basedir,
org.apache.maven.plugin.logging.Log log,
java.io.File buildOutputDirectory)
|
static org.apache.maven.project.MavenProject |
findReactorProject(java.util.List reactorProjects,
org.apache.maven.artifact.Artifact artifact)
Utility method that locates a project producing the given artifact. |
static void |
fixMissingOptionalArtifacts(java.util.Collection artifacts,
java.util.Collection depArtifacts,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
java.util.List remoteArtifactRepositories,
org.apache.maven.plugin.logging.Log log)
|
static void |
fixSystemScopeArtifacts(java.util.Collection artifacts,
java.util.Collection dependencies)
|
static java.lang.String |
getDependencyVersion(java.lang.String[] artifactNames,
java.util.Set artifacts,
int len)
Extracts the version of the first matching dependencyin the given list. |
static java.lang.String |
getPluginSetting(org.apache.maven.project.MavenProject project,
java.lang.String artifactId,
java.lang.String optionName,
java.lang.String defaultValue)
|
static org.apache.maven.artifact.Artifact |
resolveArtifactWithClassifier(org.apache.maven.artifact.Artifact artifact,
java.lang.String classifier,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
java.util.List remoteRepos)
|
static org.apache.maven.artifact.Artifact |
resolveLocalJavadocArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
|
static org.apache.maven.artifact.Artifact |
resolveLocalSourceArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
|
static java.util.List |
resolveReactorArtifacts(org.apache.maven.project.MavenProject project,
java.util.List reactorProjects)
Returns the list of referenced artifacts produced by reactor projects. |
static java.lang.String |
toRelativeAndFixSeparator(java.io.File basedir,
java.io.File fileToAdd,
boolean replaceSlashesWithDashes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String toRelativeAndFixSeparator(java.io.File basedir, java.io.File fileToAdd, boolean replaceSlashesWithDashes) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static java.lang.String getPluginSetting(org.apache.maven.project.MavenProject project, java.lang.String artifactId, java.lang.String optionName, java.lang.String defaultValue)
public static EclipseSourceDir[] buildDirectoryList(org.apache.maven.project.MavenProject project, java.io.File basedir, org.apache.maven.plugin.logging.Log log, java.io.File buildOutputDirectory) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static org.apache.maven.project.MavenProject findReactorProject(java.util.List reactorProjects, org.apache.maven.artifact.Artifact artifact)
reactorProjects
- a list of projects to search.artifact
- the artifact a project should produce.
public static java.util.List resolveReactorArtifacts(org.apache.maven.project.MavenProject project, java.util.List reactorProjects)
public static void fixSystemScopeArtifacts(java.util.Collection artifacts, java.util.Collection dependencies)
public static void fixMissingOptionalArtifacts(java.util.Collection artifacts, java.util.Collection depArtifacts, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, java.util.List remoteArtifactRepositories, org.apache.maven.plugin.logging.Log log)
public static org.apache.maven.artifact.Artifact resolveLocalSourceArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static org.apache.maven.artifact.Artifact resolveLocalJavadocArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static org.apache.maven.artifact.Artifact resolveArtifactWithClassifier(org.apache.maven.artifact.Artifact artifact, java.lang.String classifier, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, java.util.List remoteRepos) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static java.lang.String getDependencyVersion(java.lang.String[] artifactNames, java.util.Set artifacts, int len)
artifactNames
- artifact names to compare against for extracting versionartifacts
- Collection of dependencies for our projectlen
- expected length of the version sub-string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |