[ https://issues.apache.org/jira/browse/MNG-8456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907360#comment-17907360 ]
Jörg Hohwiller edited comment on MNG-8456 at 12/20/24 11:43 AM: ---------------------------------------------------------------- Reproducer attached: [^pom.xml] ^Works with mvn 3.9.9 but with 4.0.0-rc-1 I get this error:^ {code:java} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (antrun) on project MNG-8456: An Ant BuildException has occured: javax.script.ScriptException: Sourced file: inline evaluation of: ``System.out.println("\");'' Token Parsing Error: Lexical error at line 1, column 25. Encountered: <EOF> after : "\"\\\");": <at unknown location> [ERROR] in <unknown file> [ERROR] around Ant part ...<script language="beanshell">System.out.println("\");</script>... @ 5:34 in D:\projects\IDEasy\workspaces\main\MNG-8456\target\antrun\build-main.xml {code} As you can see in the attached {{pom.xml}} in my source inside the CDATA there are two backslashes to do the proper escaping and maven 4 eats one of these backslashes resulting in invalid code. was (Author: hohwille): Reproducer attached: [^pom.xml] ^Works with mvn 3.9.9 but with 4.0.0-rc-1 I get this error:^ {code:java} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (antrun) on project MNG-8456: An Ant BuildException has occured: javax.script.ScriptException: Sourced file: inline evaluation of: ``System.out.println("\");'' Token Parsing Error: Lexical error at line 1, column 25. Encountered: <EOF> after : "\"\\\");": <at unknown location> [ERROR] in <unknown file> [ERROR] around Ant part ...<script language="beanshell">System.out.println("\");</script>... @ 5:34 in D:\projects\IDEasy\workspaces\main\MNG-8456\target\antrun\build-main.xml {code} > regression: maven 4: CDATA handling and lost backslashes > -------------------------------------------------------- > > Key: MNG-8456 > URL: https://issues.apache.org/jira/browse/MNG-8456 > Project: Maven > Issue Type: Bug > Components: Core, POM > Reporter: Jörg Hohwiller > Priority: Major > Attachments: pom.xml > > -- This message was sent by Atlassian Jira (v8.20.10#820010)