apache / apache/maven

[MNG-4917] Profile not active even though it has activeByDefault set to true

Open
#6,045 23 comments 0 reactions 1 assignee Claimed by @gnodet View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 40m
Merged PRs (30d)
275

Description

**[Benson Margulies](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bmargulies)** opened **[MNG-4917](https://issues.apache.org/jira/browse/MNG-4917?redirect=false)** and commented

I've got a parent pom with a profile with \true\.

You can retrieve it for yourself via git clone git://git.apache.org/webservices-xmlschema.git.

The problem is the sourcecheck profile in the parent pom.

running mvn -Psourcecheck works as expected, but running without the -P fails to activate the profile.

the help plugin, I think, has separate problems in this area, or perhaps it's not supposed to look at -P?

---

**Affects:** 3.0, 3.8.5

**Attachments:**
- [pom.xml](https://issues.apache.org/jira/secure/attachment/12713044/pom.xml) (_2.65 kB_)

**Issue Links:**
- [MNG-8292](https://issues.apache.org/jira/browse/MNG-8292) Rework profile activation
(_**"is part of"**_)

3 votes, 10 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.