From issues-return-144633-archive-asf-public=cust-asf.ponee.io@maven.apache.org Wed Jan 23 13:00:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 04308180771 for ; Wed, 23 Jan 2019 13:00:04 +0100 (CET) Received: (qmail 80433 invoked by uid 500); 23 Jan 2019 12:00:04 -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 80422 invoked by uid 99); 23 Jan 2019 12:00:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2019 12:00:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9153EC6CD9 for ; Wed, 23 Jan 2019 12:00:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id EnIr329agTKu for ; Wed, 23 Jan 2019 12:00:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DA9CF5F612 for ; Wed, 23 Jan 2019 12:00:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 629F8E262A for ; Wed, 23 Jan 2019 12:00:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 09D8624295 for ; Wed, 23 Jan 2019 12:00:01 +0000 (UTC) Date: Wed, 23 Jan 2019 12:00:01 +0000 (UTC) From: =?utf-8?Q?Herv=C3=A9_Boutemy_=28JIRA=29?= To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DOXIA-585) Propagate macro related exceptions to caller in xhtml parser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DOXIA-585?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Herv=C3=A9 Boutemy updated DOXIA-585: -------------------------------- Description:=20 The exceptions are swallowed this is really unpractical when using the libr= ary (example building a site using mvn-site plugin). The 3 cases of failure (macro execution failure, parameter issue and undefi= ned macro) give following ouotput: {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-sit= e-plugin:3.7.1:site (default-site) on project xxx: Error parsing 'src/site/= xhtml/macro-failure.xhtml': line [-1] Error parsing the model: Unable to ex= ecute macro in the document: toc -> [Help 1]{noformat} {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-sit= e-plugin:3.7.1:site (default-site) on project xxx: Error parsing src/site/x= html/macro-param.xhtml': line [-1] Error parsing the model: Missing 'key=3D= value' pair for macro parameter: fail-param -> [Help 1]{noformat} {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-sit= e-plugin:3.7.1:site (default-site) on project xxx: Error parsing 'src/site/= xhtml/macro-undefined.xhtml': line [-1] Error parsing the model: Macro not = found: undefined-macro -> [Help 1]{noformat} was:The exceptions are swallowed this is really unpractical when using th= e library (example building a site using mvn-site plugin). > Propagate macro related exceptions to caller in xhtml parser > ------------------------------------------------------------ > > Key: DOXIA-585 > URL: https://issues.apache.org/jira/browse/DOXIA-585 > Project: Maven Doxia > Issue Type: Improvement > Components: Module - Xhtml > Affects Versions: 1.8 > Reporter: Herv=C3=A9 Boutemy > Priority: Major > Fix For: 1.9 > > Attachments: macro-failure.xhtml, macro-param.xhtml, macro-undefi= ned.xhtml > > > The exceptions are swallowed this is really unpractical when using the li= brary (example building a site using mvn-site plugin). > The 3 cases of failure (macro execution failure, parameter issue and unde= fined macro) give following ouotput: > {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-s= ite-plugin:3.7.1:site (default-site) on project xxx: Error parsing 'src/sit= e/xhtml/macro-failure.xhtml': line [-1] Error parsing the model: Unable to = execute macro in the document: toc -> [Help 1]{noformat} > {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-s= ite-plugin:3.7.1:site (default-site) on project xxx: Error parsing src/site= /xhtml/macro-param.xhtml': line [-1] Error parsing the model: Missing 'key= =3Dvalue' pair for macro parameter: fail-param -> [Help 1]{noformat} > {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-s= ite-plugin:3.7.1:site (default-site) on project xxx: Error parsing 'src/sit= e/xhtml/macro-undefined.xhtml': line [-1] Error parsing the model: Macro no= t found: undefined-macro -> [Help 1]{noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)