src/main/java/com/redhat/rcm/maven/plugin/buildmetadata/AbstractBuildMojo.java
/**
   * Updates the Maven runtime with build properties.
   *
   * @param buildMetaDataProperties the properties to add to the Maven project
   *          properties.
   * @param helper the project helper to use.
   * @throws MojoExecutionException if a requested Manifest file cannot be
   *           created.
   */
Updates the Maven runtime with build properties.
@param buildMetaDataProperties the properties to add to the Maven project
properties.
@param helper the project helper to use.
@throws MojoExecutionException if a requested Manifest file cannot be
created.
Updates the Maven runtime with build properties . @param buildMetaDataProperties the properties to add to the Maven project properties . @param helper the project helper to use . @throws MojoExecutionException if a requested Manifest file cannot be created .
protected final void updateMavenEnvironment(
      final Properties buildMetaDataProperties,
      final BuildPropertiesFileHelper helper) throws MojoExecutionException
  {
    final Properties projectProperties = helper.getProjectProperties(project);
    if (addToFilters)
    {
      project.getBuild().addFilter(propertiesOutputFile.getAbsolutePath());
    }
    if (createManifestFile)
    {
      final ManifestHelper manifestHelper =
          new ManifestHelper(manifestFile, manifestSection);
      try
      {
        MojoFileUtils.ensureExists(manifestFile.getParentFile());
        manifestHelper.createManifest(buildMetaDataProperties);
      }
      catch (final IOException e)
      {
        throw new MojoExecutionException("Cannot create Manifest file: "
                                         + manifestFile.getAbsolutePath(), e);
      }
    }
    projectProperties.putAll(buildMetaDataProperties);
  }
protected final void updateMavenEnvironment ( final Properties buildMetaDataProperties , final BuildPropertiesFileHelper helper ) throws MojoExecutionException { final Properties projectProperties = helper . getProjectProperties ( project ) ; if ( addToFilters ) { project . getBuild ( ) . addFilter ( propertiesOutputFile . getAbsolutePath ( ) ) ; } if ( createManifestFile ) { final ManifestHelper manifestHelper = new ManifestHelper ( manifestFile , manifestSection ) ; try { MojoFileUtils . ensureExists ( manifestFile . getParentFile ( ) ) ; manifestHelper . createManifest ( buildMetaDataProperties ) ; } catch ( final IOException e ) { throw new MojoExecutionException ( "Cannot create Manifest file: " + manifestFile . getAbsolutePath ( ) , e ) ; } } projectProperties . putAll ( buildMetaDataProperties ) ; }
Updates the Maven runtime with build properties.
Updates the Maven runtime with build properties .
// Filters are only added temporarily and are not written to the POM...