Class AbstractOsgiContainerPackMojo

    • Constructor Detail

      • AbstractOsgiContainerPackMojo

        protected AbstractOsgiContainerPackMojo​(org.apache.maven.project.MavenProject project)
      • AbstractOsgiContainerPackMojo

        protected AbstractOsgiContainerPackMojo​(org.apache.maven.project.MavenProject project,
                                                String... packagings)
        The default constructor.
        Parameters:
        project - the current project.
        packagings - the packagings supported by the plugin.
    • Method Detail

      • getDefaultSupportedPackagings

        public static String[] getDefaultSupportedPackagings()
      • getMsgChoiceArtifact

        public static MessageFormat getMsgChoiceArtifact()
      • loadProperties

        public static Properties loadProperties​(URL pPropertiesFileURL,
                                                String pEncoding)
                                         throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • addMavenArtifactSet

        public final void addMavenArtifactSet​(br.com.c8tech.tools.maven.osgi.lib.mojo.beans.MavenArtifactSet pMavenArtifactSet)
      • addScope

        public final void addScope​(String scope)
      • calculateContainerConfigurationFileOutputPath

        protected final Path calculateContainerConfigurationFileOutputPath()
      • createDefaultDirectories

        protected void createDefaultDirectories()
                                         throws org.apache.maven.plugin.MojoExecutionException
        Overrides:
        createDefaultDirectories in class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • doBeforeSkipMojo

        protected void doBeforeSkipMojo()
                                 throws org.apache.maven.plugin.MojoExecutionException
        Used to specify any action that must be executed when the mojo are being skipped by maven reactor.
        Specified by:
        doBeforeSkipMojo in class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException - When the skipping process had any problem
      • executeExtraInitializationSteps

        protected void executeExtraInitializationSteps()
                                                throws org.apache.maven.plugin.MojoExecutionException,
                                                       org.apache.maven.plugin.MojoFailureException
        Specified by:
        executeExtraInitializationSteps in class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getBaseContainerConfigurationFileUrl

        protected String getBaseContainerConfigurationFileUrl()
      • getBundleValidArtifactFilter

        public org.apache.maven.artifact.resolver.filter.ArtifactFilter getBundleValidArtifactFilter()
      • getCacheDirectory

        public final Path getCacheDirectory()
        Specified by:
        getCacheDirectory in class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
      • getConfiguratorInitialFile

        public File getConfiguratorInitialFile()
      • getContainer

        protected final Container getContainer()
      • getContainerCacheDirectory

        protected final Path getContainerCacheDirectory()
      • getContainerPomDependenciesGAV

        protected String getContainerPomDependenciesGAV()
      • getContainerWorkDirectory

        protected final Path getContainerWorkDirectory()
      • getEncoding

        public String getEncoding()
      • getExcludedArtifacts

        protected final List<String> getExcludedArtifacts()
      • getLocalRepositoryGAV

        public String getLocalRepositoryGAV()
      • getLogbackConfigurationFile

        public File getLogbackConfigurationFile()
      • getMavenArtifactSets

        protected final br.com.c8tech.tools.maven.osgi.lib.mojo.beans.MavenArtifactSets getMavenArtifactSets()
      • getProjectBuilder

        public org.apache.maven.project.ProjectBuilder getProjectBuilder()
      • getScopes

        protected final Set<String> getScopes()
      • isOptionalConsidered

        protected final boolean isOptionalConsidered()
      • isRunOnlyAtExecutionRoot

        public boolean isRunOnlyAtExecutionRoot()
      • isSkip

        protected boolean isSkip()
        Specified by:
        isSkip in class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
      • isSkipConfigurationGen

        protected boolean isSkipConfigurationGen()
      • isTransitiveConsidered

        protected final boolean isTransitiveConsidered()
      • setBaseContainerConfigurationFileUrl

        protected void setBaseContainerConfigurationFileUrl​(String pBaseContainerConfigurationFileUrl)
      • setConfiguratorInitialFile

        public void setConfiguratorInitialFile​(File pConfiguratorInitialFile)
      • setContainerPomDependenciesGAV

        protected void setContainerPomDependenciesGAV​(String pContainerPomDependenciesGAV)
      • setEncoding

        public void setEncoding​(String pEncoding)
      • setLocalRepositoryGAV

        public void setLocalRepositoryGAV​(String pLocalRepositoryGAV)
      • setLogbackConfigurationFile

        public void setLogbackConfigurationFile​(File pLogbackConfigurationFile)
      • setScopes

        public final void setScopes​(List<String> scopes)
      • setSkipConfigurationGen

        protected void setSkipConfigurationGen​(boolean pSkipConfigurationGen)