Class WriteProjectProperties

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

@Mojo(name="write-project-properties", defaultPhase=NONE, threadSafe=true) public class WriteProjectProperties extends AbstractWritePropertiesMojo
Writes project properties to a file.
Since:
1.0.0
  • Field Details

    • excludedPropertyKeys

      @Parameter(property="properties.excludedPropertyKeys") private Set<String> excludedPropertyKeys
      Property keys to exclude.
      Since:
      1.3.0
    • includedPropertyKeys

      @Parameter(property="properties.includedPropertyKeys") private Set<String> includedPropertyKeys
      Property keys to include.
      Since:
      1.3.0
  • Constructor Details

    • WriteProjectProperties

      @Inject protected WriteProjectProperties(List<PropertiesManager> propertiesManagers)
      Default constructor
      Parameters:
      propertiesManagers - list of properties managers
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • setExcludedPropertyKeys

      void setExcludedPropertyKeys(Set<String> excludedPropertyKeys)
      Default scope for test access.
    • setIncludedPropertyKeys

      void setIncludedPropertyKeys(Set<String> includedPropertyKeys)
      Default scope for test access.