Class BomDependenciesGeneratorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.springboot.maven.BomDependenciesGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-dependencies-bom", defaultPhase=VALIDATE, threadSafe=true) public class BomDependenciesGeneratorMojo extends org.apache.maven.plugin.AbstractMojo
Generate BOM by flattening the current project's dependency management section and applying exclusions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.artifact.factory.ArtifactFactory
    Used to look up Artifacts in the remote repository.
    protected org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver
    Used to look up Artifacts in the remote repository.
    protected org.apache.camel.maven.bom.generator.ExternalBomConflictCheckSet
    The conflict checks configured by the user
    protected org.apache.camel.maven.bom.generator.DependencySet
    The user configuration
    protected boolean
    The user configuration
    protected org.apache.maven.artifact.repository.ArtifactRepository
    Location of the local repository.
    protected org.apache.maven.project.MavenProject
    The maven project.
    protected List<org.apache.maven.artifact.repository.ArtifactRepository>
    List of Remote Repositories used by the resolver
    protected File
    The source pom template file.
    protected File
     
    protected File
    The pom file.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • project

      @Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
      The maven project.
    • sourcePom

      @Parameter(defaultValue="${basedir}/pom.xml") protected File sourcePom
      The source pom template file.
    • targetPom

      @Parameter(defaultValue="${project.build.directory}/${project.name}-pom.xml") protected File targetPom
      The pom file.
    • dependencies

      @Parameter protected org.apache.camel.maven.bom.generator.DependencySet dependencies
      The user configuration
    • checkConflicts

      @Parameter protected org.apache.camel.maven.bom.generator.ExternalBomConflictCheckSet checkConflicts
      The conflict checks configured by the user
    • artifactFactory

      @Component protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
      Used to look up Artifacts in the remote repository.
    • artifactResolver

      @Component protected org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver artifactResolver
      Used to look up Artifacts in the remote repository.
    • remoteRepositories

      @Parameter(property="project.remoteArtifactRepositories", readonly=true, required=true) protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
      List of Remote Repositories used by the resolver
    • localRepository

      @Parameter(property="localRepository", readonly=true, required=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
      Location of the local repository.
    • startersDir

      @Parameter(defaultValue="${basedir}/../../components-starter") protected File startersDir
    • failOnError

      @Parameter protected boolean failOnError
      The user configuration
  • Constructor Details

    • BomDependenciesGeneratorMojo

      public BomDependenciesGeneratorMojo()
  • Method Details

    • 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