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", threadSafe=true) public class TargetPlatformMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object
LOCK
private org.codehaus.plexus.logging.Logger
logger
private EquinoxServiceFactory
osgiServices
private org.apache.maven.project.MavenProject
project
-
Constructor Summary
Constructors Constructor Description TargetPlatformMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
enterProject(org.apache.maven.project.MavenProject project, java.util.HashSet<GAV> consideredProjects)
void
execute()
private static java.io.File
getAttachedArtifact(org.apache.maven.project.MavenProject project, java.lang.String classifier)
private java.util.List<ReactorProjectIdentities>
getReferencedTychoProjects()
private void
getTransitivelyReferencedTychoProjects(java.util.Collection<org.apache.maven.project.MavenProject> candidateProjects, java.util.HashSet<GAV> consideredProjects, java.util.List<ReactorProjectIdentities> result)
private static void
verifyArtifactLocationInTargetFolder(ReactorProject project, java.lang.String artifactClassifier, java.lang.String expectedPathInTarget, java.io.File actualLocation)
private static void
verifyFilePresenceInTargetFolder(ReactorProject project, java.lang.String expectedPathInTarget)
private static void
verifyIndexFileLocations(ReactorProject project, java.io.File metadataXml, java.io.File artifactXml)
-
-
-
Field Detail
-
LOCK
private static final java.lang.Object LOCK
-
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.MojoExecutionException
org.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
-
-