Package org.eclipse.tycho.target
Class TargetPlatformMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.target.TargetPlatformMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="target-platform") public class TargetPlatformMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.logging.Loggerloggerprivate EquinoxServiceFactoryosgiServicesprivate org.apache.maven.project.MavenProjectproject
-
Constructor Summary
Constructors Constructor Description TargetPlatformMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanenterProject(org.apache.maven.project.MavenProject project, java.util.HashSet<GAV> consideredProjects)voidexecute()private static java.io.FilegetAttachedArtifact(org.apache.maven.project.MavenProject project, java.lang.String classifier)private java.util.List<ReactorProjectIdentities>getReferencedTychoProjects()private voidgetTransitivelyReferencedTychoProjects(java.util.Collection<org.apache.maven.project.MavenProject> candidateProjects, java.util.HashSet<GAV> consideredProjects, java.util.List<ReactorProjectIdentities> result)private static voidverifyArtifactLocationInTargetFolder(ReactorProject project, java.lang.String artifactClassifier, java.lang.String expectedPathInTarget, java.io.File actualLocation)private static voidverifyFilePresenceInTargetFolder(ReactorProject project, java.lang.String expectedPathInTarget)private static voidverifyIndexFileLocations(ReactorProject project, java.io.File metadataXml, java.io.File artifactXml)
-
-
-
Field Detail
-
project
@Parameter(property="project", readonly=true) private org.apache.maven.project.MavenProject project
-
osgiServices
@Component private EquinoxServiceFactory osgiServices
-
logger
@Component private org.codehaus.plexus.logging.Logger logger
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getReferencedTychoProjects
private java.util.List<ReactorProjectIdentities> getReferencedTychoProjects() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getTransitivelyReferencedTychoProjects
private void getTransitivelyReferencedTychoProjects(java.util.Collection<org.apache.maven.project.MavenProject> candidateProjects, java.util.HashSet<GAV> consideredProjects, java.util.List<ReactorProjectIdentities> result) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
enterProject
private boolean enterProject(org.apache.maven.project.MavenProject project, java.util.HashSet<GAV> consideredProjects)
-
getAttachedArtifact
private static java.io.File getAttachedArtifact(org.apache.maven.project.MavenProject project, java.lang.String classifier)
-
verifyIndexFileLocations
private static void verifyIndexFileLocations(ReactorProject project, java.io.File metadataXml, java.io.File artifactXml) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
verifyArtifactLocationInTargetFolder
private static void verifyArtifactLocationInTargetFolder(ReactorProject project, java.lang.String artifactClassifier, java.lang.String expectedPathInTarget, java.io.File actualLocation) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
verifyFilePresenceInTargetFolder
private static void verifyFilePresenceInTargetFolder(ReactorProject project, java.lang.String expectedPathInTarget) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-