Package org.apache.camel.maven.packaging
Class PrepareAssemblyMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.packaging.PrepareAssemblyMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-assembly", threadSafe=true) public class PrepareAssemblyMojo extends org.apache.maven.plugin.AbstractMojo
Prepares the apache-camel/pom.xml and common-bin to keep the Camel artifacts up-to-date.
-
-
Field Summary
Fields Modifier and Type Field Description protected File
allComponentsPomFile
The directory for componentsprotected File
commonBinXml
The apache-camel/descriptors/common-bin.xmlprotected org.apache.maven.project.MavenProject
project
The maven project.protected File
releasePom
The apache-camel/pom
-
Constructor Summary
Constructors Constructor Description PrepareAssemblyMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute goal.protected void
updatePomAndCommonBin(File allComponentsPom, String groupId, String token)
-
-
-
Field Detail
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
The maven project.
-
releasePom
@Parameter(defaultValue="${project.build.directory}/../../../apache-camel/pom.xml") protected File releasePom
The apache-camel/pom
-
commonBinXml
@Parameter(defaultValue="${project.build.directory}/../../../apache-camel/src/main/descriptors/common-bin.xml") protected File commonBinXml
The apache-camel/descriptors/common-bin.xml
-
allComponentsPomFile
@Parameter(defaultValue="${project.build.directory}/../../../core/camel-allcomponents/pom.xml") protected File allComponentsPomFile
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...
-
updatePomAndCommonBin
protected void updatePomAndCommonBin(File allComponentsPom, String groupId, String token) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-