[
https://issues.apache.org/jira/browse/MNG-6012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380684#comment-15380684
]
Robert Scholte commented on MNG-6012:
-------------------------------------
I've been thinking the option {{--fail-level}} / {{-fl}} which is {{error}} by
default, but could be changed to {{warning}}/{{warn}}. We've had similar
request and they make sense: one should be able to execute a build without any
warnings.
I did an attempt to hook into the Logger to but that seems very tricky. The
other option is to have this level available in the API, so Maven core and
plugins can verify it for themselves and decide to throw an Exception. It is a
simple implementation, but now every component is responsible for checking it,
not really my preferred solution.
> Missing profile is only notified at the end of a run
> ----------------------------------------------------
>
> Key: MNG-6012
> URL: https://issues.apache.org/jira/browse/MNG-6012
> Project: Maven
> Issue Type: New Feature
> Affects Versions: 3.3.9
> Reporter: Sebb
> Fix For: 3.4.0
>
>
> A missing profile is only notified at the end of a run.
> Since this may mean that the run is useless, it would be helpful if:
> 1) It was also noted near the start, so the user could cancel the run.
> It's still helpful at the end, as it saves scrolling back to see if there was
> a problem.
> 2) There were an option to fail a run if a profile is not found. This option
> should be settable in a POM and in settings.xml
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)