dotenv-java/examples/maven-simple at master · bigskysoftware/dotenv-java · GitHub
Skip to content

Latest commit

 

History

History
 
 

maven-simple

Folders and files

README.md

dotenv-java-example

Simple dotenv-java example using maven.

Clone

git clone 

Compile

mvn compile

Run

mvn exec:java -Dexec.mainClass="io.github.cdimascio.examples.dotenv.Main"

The program outputs the value of the environment var MY_ENV. In this case it's, MY_VALUE

License

MIT

Note: This example is licensed under MIT. dotenv-java is licensed under Apache 2.0