Activating a settings.xml Defined Maven Profile From POM File
<p>Our enterprise team maintains a <code>settings.xml</code> file that defines various profiles that development projects can use with Maven to build their artifacts and install them in a repository. The expectation is that each project in Jenkins would define a -P parameter with the desired profile specified.</p>

<p>Here is my issue: The profile I need to use specifies a repository that is normally not visible to my project (a staged release repository), so anything in that repository cannot be depended upon without that profile being active. I need a way to activate that profile defined in <code>settings.xml</code> in my project's <code>pom.xml</code> file. Otherwise, when looking at my project in Eclipse, errors are shown in the <code>pom.xml</code> that dependencies cannot be resolved because the profile isn't active to make the repository visible.</p>

<p>Is there a way to activate a <code>settings.xml</code> defined profile in a <code>pom.xml</code> file? Alternatively, is there a way to tell Eclipse to always activate a profile for a particular project?</p>