betweenGo

Maven Profiles

by on Jun.13, 2008, under Maven

Maven profiles are a pretty neat concept for organizing different settings for different builds.

Typically one sets them up in your settings.xml.  Projects will also have profiles in profiles.xml whose values you can override with your values in settings.xml.

A few observations I made about profiles.

  1. Your profile is the conglomeration of all your active profiles in your settings.xml.
  2. To activate other profile during a single maven execution, mvn -P profile1, profile2.


Share

Related posts:

  1. Maven Assembly Convert Shell Scripts to use UNIX LF’s
  2. Maven Integration for Eclipse
  3. Eclipse does not understand MAVEN2_CLASSPATH_CONTAINER

:

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!