Maven and Environment Variables

From NovaOrdis Knowledge Base
Revision as of 14:32, 23 February 2017 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

Maven is able to access environment variables in its configuration files by specifying the environment variable using the following format:

${env.SOME_VARIABLE}

Example of specifying a local filesystem repository:

<repository>
  <id>jboss-eap-repository-6.4.0</id>
  <url>file://${env.RUNTIME_DIR}/jboss-eap-6.4.0.GA-maven-repository</url>
</repository>