[MNG-7886] Do not warn (or improve warning message) if a profile exists only in the reactor pom, but not in the selected module.
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Reto Hoehener](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rho4)** opened **[MNG-7886](https://issues.apache.org/jira/browse/MNG-7886?redirect=false)** and commented
No warning:
```java
mvn -f aggregator/pom.xml -P test-profile validate
```
Warning:
```java
mvn -f aggregator/pom.xml -P test-profile -pl :module-1 validate
[INFO] Scanning for projects...
[WARNING] The requested profile "test-profile" could not be activated because it does not exist.
```
The build is successful, and the aggregator profile is activated correctly.
**Improvement suggestion:**
Do not warn at all, or:
```java
[WARNING] The requested profile "test-profile" could only be activated in the reactor pom, but does not exist in the selected module "module-1" (this can be intended).
```
---
**Affects:** 3.9.4
**Attachments:**
- [test.zip](https://issues.apache.org/jira/secure/attachment/13062923/test.zip) (_1016 bytes_)
Contributor guide
Assessment
This issue has not been assessed yet.