Generate a master password if none exist (in ~/.m2/settings-security.xml)

Coordinates

<plugin>
  <groupId>io.yupiik</groupId>
  <artifactId>bundlebee-maven-plugin</artifactId>
  <version>1.0.27-SNAPSHOT</version>
</plugin>

To call this goal from the command line execute: mvn bundlebee:create-master-password.

To bind this goal in the build you can use:

<plugin>
  <groupId>io.yupiik</groupId>
  <artifactId>bundlebee-maven-plugin</artifactId>
  <version>1.0.27-SNAPSHOT</version>
  <executions>
    <execution>
      <id>my-execution</id>
      <goals>
        <goal>create-master-password</goal>
      </goals>
      <configuration>
        <!-- execution specific configuration come there -->
      </configuration>
    </execution>
  </executions>
</plugin>

You can execute this goal particularly with mvn bundlebee:create-master-password@my-execution command.

Configuration

customPlaceholders (Map)

Custom properties injected in the main, it is often used for placeholders. If the key (tag in pom) starts with bundlebee-placeholder-import then the value is resolved as a properties file which is injected in the resulting placeholders (indirect placeholders). Property: ${bundlebee.create-master-password.customPlaceholders}.

packaging (String)

Current module packaging. Default value: ${project.packaging}. Property: ``.

password (String)

Master password value, if auto it will be generated. Default value: auto. Property: ${bundlebee.create-master-password.password}.

skip (boolean)

Skip execution. Default value: false. Property: ${bundlebee.skip}.

skipMavenForcedFilteringForPlaceholders (boolean)

If true, bundlebee lookup in maven context will be one level only which means foo will be looked up as such in maven and not `${foo} which will work. Default value: false. Property: ${bundlebee.skipMavenForcedFilteringForPlaceholders}.

skipPackaging (List)

Skipped packaging types. Default value: pom. Property: ${bundlebee.skipPackaging}.

useDefaultLogging (boolean)

Should JUL logging redirected to Maven logging (enable it only if you set up maven to use JUL). Default value: false. Property: ${bundlebee.useDefaultLogging}.