You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "PortfolioDavidStump (via GitHub)" <gi...@apache.org> on 2023/03/25 11:36:13 UTC

[GitHub] [netbeans] PortfolioDavidStump opened a new issue, #5715: Bug in Comments Block in Maven File

PortfolioDavidStump opened a new issue, #5715:
URL: https://github.com/apache/netbeans/issues/5715

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   If you have the following Code in your Maven File:
               <plugin>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <configuration>
                       <compilerArgs>
                           <arg>--enable-preview</arg>
                       </compilerArgs>
                   </configuration>
               </plugin>
   
   And you try to comment this out using Block Comment as follows:
   
               <!--
               <plugin>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <configuration>
                       <compilerArgs>
                           <arg>--enable-preview</arg>
                       </compilerArgs>
                   </configuration>
               </plugin>
               -->
   The Block Comment is disabled after the double dash in the arg statement so everything from enable-preview onwards becomes 'live' and makes the POM unprocessable by MAVEN.
   
   The Resolution is to remove the -- from the Argument and the Block Comment works as expected and the POM file is processable again.
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Mac OS Monterey Version 12.6.3
   
   ### JDK
   
   Oracle JDK 20 (jdk-20+36)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Replicable every time.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien commented on issue #5715: Bug in Comments Block in Maven File

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #5715:
URL: https://github.com/apache/netbeans/issues/5715#issuecomment-1483803199

   this is no bug, this is how the maven pom parser works. You get the exact same error from the command line:
   ```
   [ERROR] [ERROR] Some problems were encountered while processing the POMs:
   [FATAL] Non-parseable POM /tmp/mavenproject1/pom.xml: in comment after two dashes (--) next character must be > not e (position: END_TAG seen ...<compilerArgs>\n                    <arg>--e... @19:29)  @ line 19, column 29
    @ 
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]   
   [ERROR]   The project  (/tmp/mavenproject1/pom.xml) has 1 error
   [ERROR]     Non-parseable POM /tmp/mavenproject1/pom.xml: in comment after two dashes (--) next character must be > not e (position: END_TAG seen ...<compilerArgs>\n                    <arg>--e... @19:29)  @ line 19, column 29 -> [Help 2]
   [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/ProjectBuildingException
   [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien closed issue #5715: Bug in Comments Block in Maven File

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien closed issue #5715: Bug in Comments Block in Maven File
URL: https://github.com/apache/netbeans/issues/5715


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] PortfolioDavidStump commented on issue #5715: Bug in Comments Block in Maven File

Posted by "PortfolioDavidStump (via GitHub)" <gi...@apache.org>.
PortfolioDavidStump commented on issue #5715:
URL: https://github.com/apache/netbeans/issues/5715#issuecomment-1483802217

   Should have added same problem also occurs with single In-Line Comment e.g.
   
   <!-- <arg>--enable-preview</arg> --> - Everything from enable-preview onwards becomes 'live'.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists