Package org.apache.camel.maven.packaging
Class PrepareParentPomMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.packaging.PrepareParentPomMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-parent-pom", threadSafe=true) public class PrepareParentPomMojo extends org.apache.maven.plugin.AbstractMojo
Prepares the parent/pom.xml to keep the Camel artifacts up-to-date.
-
-
Field Summary
Fields Modifier and Type Field Description protected File
componentsDir
The directory for componentsprotected File
parentPom
The parent/pomprotected org.apache.maven.project.MavenProject
project
The maven project.
-
Constructor Summary
Constructors Constructor Description PrepareParentPomMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute goal.protected void
updateParentPom(String groupId, File dir, String token)
-
-
-
Field Detail
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
The maven project.
-
parentPom
@Parameter(defaultValue="${project.build.directory}/../../../parent/pom.xml") protected File parentPom
The parent/pom
-
componentsDir
@Parameter(defaultValue="${project.build.directory}/../../../components") protected File componentsDir
The directory for components
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Execute goal.- Throws:
org.apache.maven.plugin.MojoExecutionException
- execution of the main class or one of the threads it generated failed.org.apache.maven.plugin.MojoFailureException
- something bad happened...
-
-