FraK
FraK

Reputation: 1089

Maven active profiles source external

When I try to get the active profiles for my maven project I type:

mvn help:active-profiles

Just as the documentation states (http://maven.apache.org/guides/introduction/introduction-to-profiles.html) But this is what I get:

Active Profiles for Project 'com.mycompany.app:my-app:jar:1.0-SNAPSHOT': 

The following profiles are active:

- testProfile (source: external)

What does (source: external) mean ? Because I set the profile on the settings.xml file in the .m2 folder, so according to the documentation it should be:

(source: settings.xml)

Upvotes: 4

Views: 890

Answers (1)

aviad
aviad

Reputation: 8278

The source is where the profile was defined. Source external means that the profile is defined in settings.xml or profiles.xml.

Read this article. The relevant section is: "How can I tell which profiles are in effect during a build?" The sources could be either pom.xml of the project, parent project pom.xml or maven settings.xml.

Upvotes: 1

Related Questions