envm
June 01, 2014
A maven-based environment manager
Envm is an environment manager based on maven for Java projects. This is a fork of the woko maven plugin in which we’ve just removed the dependencies on the Woko framework.
Envm allows to have different resources depending on the context (e.g. production, test, dev, etc.). They are plain folders under the project root :
* MyApp/
environments/
dev/
log4j.properties
hibernate.cfg.xml
prod/
log4j.properties
hibernate.cfg.xmlYou can switch from various environments easily by using :
$> mvn clean install -Denvm.env=devThe plugin will recursively copy (and thereby possibly overwrite existing resources) the files found in
the environment folder <project_root>/environments/myenv to the target/classes folder of your project.
Resources
More information is available on GitHub
Technologies
Java, Maven, JUnit