Class TPValidationMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.extras.tpvalidator.TPValidationMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="validate-target-platform", defaultPhase=VALIDATE) public class TPValidationMojo extends org.apache.maven.plugin.AbstractMojoValidates that specified target platforms (.target files) contents can be resolved.
-
-
Field Summary
Fields Modifier and Type Field Description private booleancheckDependenciesCheck that, for each artifact from the target file, the dependencies of the artifact are also contained in the target file.private booleancheckProvisioningCheck that the content of the target-platform can be installed together in a same provisioning operation.protected EquinoxServiceFactoryequinoxprivate java.lang.StringexecutionEnvironmentprivate P2ResolverFactoryfactoryprivate booleanfailOnErrorwhether to fail build or just print a warning when a validation failsprivate org.codehaus.plexus.logging.Loggerloggerprivate org.apache.maven.project.MavenProjectprojectprivate java.io.File[]targetFilesThe .target files to validate.
-
Constructor Summary
Constructors Constructor Description TPValidationMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringcreateErrorMessage(java.util.List<TPError> errors)voidexecute()private voidvalidateTarget(java.io.File targetFile)
-
-
-
Field Detail
-
project
@Parameter(property="project") private org.apache.maven.project.MavenProject project
-
targetFiles
@Parameter private java.io.File[] targetFiles
The .target files to validate. If not specified and the project packaging is "eclipse-target-definition", the goal will validate project's primary target file will be validated.
-
failOnError
@Parameter(defaultValue="true") private boolean failOnError
whether to fail build or just print a warning when a validation fails
-
checkDependencies
@Parameter(defaultValue="false") private boolean checkDependencies
Check that, for each artifact from the target file, the dependencies of the artifact are also contained in the target file. Also check that there are no conflicting artifacts, i.e. artifact which could not be installed together. When this check passes, none of the artifacts should lead to dependency resolution problems when used in a Tycho project.- Since:
- 0.21.0
-
checkProvisioning
@Parameter(defaultValue="false") private boolean checkProvisioning
Check that the content of the target-platform can be installed together in a same provisioning operation.- Since:
- 0.26.0
-
executionEnvironment
@Parameter(defaultValue="JavaSE-1.7") private java.lang.String executionEnvironment
-
equinox
@Component protected EquinoxServiceFactory equinox
-
logger
@Component private org.codehaus.plexus.logging.Logger logger
-
factory
private P2ResolverFactory factory
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createErrorMessage
private java.lang.String createErrorMessage(java.util.List<TPError> errors)
-
-