Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
env-file:help Display help information on env-file-maven-plugin.
Call mvn env-file:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
env-file:loadenv Goal which loads a dotenv (.env) file into the environment variables for the rest of the maven phase which the plugin is defined for

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.3.9
JDK 11
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>io.github.mjourard</groupId>
          <artifactId>env-file-maven-plugin</artifactId>
          <version>1.0-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>io.github.mjourard</groupId>
        <artifactId>env-file-maven-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"