Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 137FF106C2 for ; Wed, 18 Sep 2013 14:24:12 +0000 (UTC) Received: (qmail 7067 invoked by uid 500); 18 Sep 2013 14:24:06 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 6109 invoked by uid 500); 18 Sep 2013 14:24:04 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 6100 invoked by uid 99); 18 Sep 2013 14:24:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 14:24:03 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [74.125.245.94] (HELO na3sys010aog113.obsmtp.com) (74.125.245.94) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 Sep 2013 14:23:59 +0000 Received: from mail-ea0-f169.google.com ([209.85.215.169]) (using TLSv1) by na3sys010aob113.postini.com ([74.125.244.12]) with SMTP ID DSNKUjm3VbCsxdryfEMKftZQbLLrbOz7zwGC@postini.com; Wed, 18 Sep 2013 07:23:38 PDT Received: by mail-ea0-f169.google.com with SMTP id k11so3552542eaj.0 for ; Wed, 18 Sep 2013 07:23:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=dhoMq7SmcElp1XAW64mSnjebsFJWlKrS1KZhSdplQwo=; b=MDThe2W/eOyfLJkxGpTktjgBw8KXr4RT90SVQ0LpIQ2dnEgwpFsEWGkzUPJWezbgMm hJgXw6reSbLqqHYod9M/77eyROsabI2VQKm5V9kuS9IHqgqWufsSiv7QASx66bCf3lVT ac+cVdG1Ez+zuQ7GfzpWkOWF+6aaSqADisqamk8DVzrSMPH8JxdxSDucvpFbbDsKpZ2u 2Hwq4xNbvCiRxFecKDURPyFqr6WecJi4fGOoHXxuz5gzNodR3a+WeNxPPex6UcpC3ixC k8+9X1T2ijkPOmSiu1z2dWhIAJtf8erYLJ4eJnre/OzBgo+x0gHXl81QRxC4p2RE/yS9 b+kQ== X-Gm-Message-State: ALoCoQk5jq7QaKmSYSwwE0nO1K4FKlTAxjeepvicQkCzalFIFDKy41MRnTuBfCel/HZUF0EySY/cTtmF3Qh75jcgdi5fTvSlAusyQ5Ui8wU/IOawJt+WzvXi/arMLc8ZQ5xaHF10LyPsREnkHGHDRhz9ICYVaXNyfJhjIVRn50sbm/GuKXRSv0A= X-Received: by 10.15.99.72 with SMTP id bk48mr60654023eeb.22.1379514196645; Wed, 18 Sep 2013 07:23:16 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.15.99.72 with SMTP id bk48mr60654009eeb.22.1379514196540; Wed, 18 Sep 2013 07:23:16 -0700 (PDT) Received: by 10.14.151.71 with HTTP; Wed, 18 Sep 2013 07:23:16 -0700 (PDT) Date: Wed, 18 Sep 2013 10:23:16 -0400 Message-ID: Subject: Re: Maven parsing pom.xml incorrectly From: Andrew Pennebaker To: Maven Users List , Brian Withnell Content-Type: multipart/alternative; boundary=089e01681616a5f21104e6a92d43 X-Virus-Checked: Checked by ClamAV on apache.org --089e01681616a5f21104e6a92d43 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the clarification. Apologies to Maven, curses to W3C. I guess I'll use a silly -- instead of -- for commented command line flags. On Wed, Sep 18, 2013 at 10:11 AM, Stuart McCulloch wrote: > On 18 Sep 2013, at 15:09, Paul Benedict wrote: > > > I believe this behavior is correct. IIRC, XML does not allow > double-dashes > > inside a comment. > > Specifically http://www.w3.org/TR/REC-xml/#sec-comments > > "For compatibility, the string " -- " (double-hyphen) must not > occur within comments." > > > On Wed, Sep 18, 2013 at 9:06 AM, Andrew Pennebaker < > apennebaker@42six.com>wrote: > > > >> I'm using Thrift in my Maven project, compiling my .thrift code to > .java as > >> part of the generate-sources step. To do this, I use the maven antrun > >> plugin in my pom.xml, which executes a command line call to the thrift > >> executable, and sends it the appropriate argument flags, such as "-out" > and > >> "--gen". > >> > >> However, when I comment out this plugin with the standard XML comment > >> syntax , Maven fails to parse the pom file. It doesn't like > the > >> fact that the comment contains --gen, expecting the comment to end right > >> there. > >> > >> Can we please improve Maven's comment syntax parsing for pom.xml? > >> > > > > > > > > -- > > Cheers, > > Paul > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --089e01681616a5f21104e6a92d43--