Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9512B200B55 for ; Sat, 16 Jul 2016 13:29:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 93AE0160A5F; Sat, 16 Jul 2016 11:29:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B8B97160A7C for ; Sat, 16 Jul 2016 13:29:26 +0200 (CEST) Received: (qmail 76365 invoked by uid 500); 16 Jul 2016 11:29:20 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 76338 invoked by uid 99); 16 Jul 2016 11:29:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jul 2016 11:29:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9C4132C036E for ; Sat, 16 Jul 2016 11:29:20 +0000 (UTC) Date: Sat, 16 Jul 2016 11:29:20 +0000 (UTC) From: "Karl Heinz Marbaise (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MNG-6012) Missing profile is only notified at the end of a run MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 16 Jul 2016 11:29:27 -0000 [ https://issues.apache.org/jira/browse/MNG-6012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380683#comment-15380683 ] Karl Heinz Marbaise edited comment on MNG-6012 at 7/16/16 11:29 AM: -------------------------------------------------------------------- So made an implementation which looks like this: {code} ~/ws-git/javaee (master *)$ ~/tools/maven-test/apache-maven-3.4.0-SNAPSHOT/bin/mvn clean package -Pfirst,second --fail-on-missing-profiles [INFO] Scanning for projects... [ERROR] The requested profile "second" could not be activated because it does not exist. [ERROR] One or more profiles you have requested to be activated do not exist. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException{code} or if I omit {{\-\-fail-on-missing-profiles}} it will look like this: {code} ~/ws-git/javaee (master *)$ ~/tools/maven-test/apache-maven-3.4.0-SNAPSHOT/bin/mvn clean package -Pfirst,second [INFO] Scanning for projects... [WARNING] The requested profile "second" could not be activated because it does not exist. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent [INFO] domain. .... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] parent ............................................. SUCCESS [ 1.585 s] [INFO] domain ............................................. SUCCESS [ 13.949 s] [INFO] service-client ..................................... SUCCESS [ 0.085 s] [INFO] webgui ............................................. SUCCESS [ 0.505 s] [INFO] service ............................................ SUCCESS [ 0.360 s] [INFO] app ................................................ SUCCESS [ 0.270 s] [INFO] appasm ............................................. SUCCESS [ 0.211 s] [INFO] shade .............................................. SUCCESS [ 0.425 s] [INFO] assembly ........................................... SUCCESS [ 1.700 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.645 s [INFO] Finished at: 2016-07-16T13:12:39+02:00 [INFO] Final Memory: 35M/701M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "second" could not be activated because it does not exist. {code} was (Author: khmarbaise): So made an implementation which looks like this: {code} ~/ws-git/javaee (master *)$ ~/tools/maven-test/apache-maven-3.4.0-SNAPSHOT/bin/mvn clean package -Pfirst,second --fail-on-missing-profiles [INFO] Scanning for projects... [WARNING] The requested profile "second" could not be activated because it does not exist. [ERROR] One or more profiles you have requested to be activated do not exist. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException {code} or if I omit {{\-\-fail-on-missing-profiles}} it will look like this: {code} ~/ws-git/javaee (master *)$ ~/tools/maven-test/apache-maven-3.4.0-SNAPSHOT/bin/mvn clean package -Pfirst,second [INFO] Scanning for projects... [WARNING] The requested profile "second" could not be activated because it does not exist. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent [INFO] domain. .... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] parent ............................................. SUCCESS [ 1.585 s] [INFO] domain ............................................. SUCCESS [ 13.949 s] [INFO] service-client ..................................... SUCCESS [ 0.085 s] [INFO] webgui ............................................. SUCCESS [ 0.505 s] [INFO] service ............................................ SUCCESS [ 0.360 s] [INFO] app ................................................ SUCCESS [ 0.270 s] [INFO] appasm ............................................. SUCCESS [ 0.211 s] [INFO] shade .............................................. SUCCESS [ 0.425 s] [INFO] assembly ........................................... SUCCESS [ 1.700 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.645 s [INFO] Finished at: 2016-07-16T13:12:39+02:00 [INFO] Final Memory: 35M/701M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "second" could not be activated because it does not exist. {code} > 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)