Class AbstractProvisioningMojo

    • Field Detail

      • provisioningDirectory

        @Parameter(defaultValue="${basedir}/src/main/prov")
        protected File provisioningDirectory
      • systemPropertiesFromConfiguration

        @Parameter(alias="systemProperties",
                   readonly=true)
        protected Properties systemPropertiesFromConfiguration
      • saveProvisioningModel

        @Parameter(readonly=true,
                   defaultValue="false")
        protected boolean saveProvisioningModel
      • runModeConfigurations

        @Parameter(readonly=true,
                   defaultValue="true")
        protected boolean runModeConfigurations
      • packageLayout

        @Parameter(defaultValue="classic")
        protected PackageLayout packageLayout
      • additionalMainClasspathLibraries

        @Parameter
        protected List<String> additionalMainClasspathLibraries
      • projectHelper

        @Component
        protected org.apache.maven.project.MavenProjectHelper projectHelper
    • Constructor Detail

      • AbstractProvisioningMojo

        public AbstractProvisioningMojo()
    • 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
      • getStringSearchInterpolator

        protected final org.codehaus.plexus.interpolation.StringSearchInterpolator getStringSearchInterpolator()
      • init

        protected void init​(org.codehaus.plexus.interpolation.StringSearchInterpolator stringSearchInterpolator)
      • writeProvisioningModel

        protected final void writeProvisioningModel​(ProvisioningModel model,
                                                    String jsonFileName)
                                             throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • createFileAndParentDirectories

        protected final void createFileAndParentDirectories​(Path file)
                                                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • deleteIfExists

        protected final void deleteIfExists​(Path path)
                                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • loadProvisioningModel

        protected final ProvisioningModel loadProvisioningModel()
                                                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • loadProvisioningModel

        protected final ProvisioningModel loadProvisioningModel​(boolean interpolatePlaceholderStrings)
                                                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • extractRunModeProperties

        protected Map<Integer,​Properties> extractRunModeProperties​(ProvisioningModel model)
                                                                  throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getTargetAppFolder

        protected Path getTargetAppFolder()
                                   throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getTargetJavaMainFolder

        protected final Path getTargetJavaMainFolder()
                                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getManifestPath

        protected final Path getManifestPath()
      • getMainClassName

        protected final String getMainClassName()
      • setSystemProperties

        public void setSystemProperties​(Properties systemPropertiesFromConfiguration)
        This setter exists for unit testing only.
        Parameters:
        systemPropertiesFromConfiguration -
      • setProvisioningDirectory

        public void setProvisioningDirectory​(File provisioningDirectory)
        This setter exists for unit testing only.
        Parameters:
        provisioningDirectory -
      • setMavenSession

        public void setMavenSession​(org.apache.maven.execution.MavenSession mavenSession)
        This setter exists for unit testing only.
        Parameters:
        mavenSession -
      • setProject

        public void setProject​(org.apache.maven.project.MavenProject project)
        This setter exists for unit testing only.
        Parameters:
        project -