Maven Plugin Tools
  1. Maven Plugin Tools
  2. MPLUGIN-220

Can not use regex in @Parameter(defaultValue)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.2
    • Component/s: Plugin Plugin
    • Labels:
      None

      Description

      When transform a javadoc default value

      default-value="[a-zA-Z]{2,}-\\d+"
      

      to

      defaultValue = "[a-zA-Z]{2,}-\\\\d+"
      

      I have when building :

      Caused by: com.thoughtworks.qdox.parser.ParseException: Illegal escape character 'd' @[295,85] in file:/home/tchemit/projets/apache/maven/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/plugin/changelog/ChangeLogReport.java
      	at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:1018)
      	at com.thoughtworks.qdox.parser.impl.Parser.convertString(Parser.java:1126)
      	at com.thoughtworks.qdox.parser.impl.Parser.toString(Parser.java:1233)
      	at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1800)
      	at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:999)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:353)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:381)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:377)
      	at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:467)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:464)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:453)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.discoverClasses(JavaAnnotationsMojoDescriptorExtractor.java:453)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.discoverClasses(JavaAnnotationsMojoDescriptorExtractor.java:443)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.discoverClasses(JavaAnnotationsMojoDescriptorExtractor.java:422)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.scanJavadoc(JavaAnnotationsMojoDescriptorExtractor.java:188)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.execute(JavaAnnotationsMojoDescriptorExtractor.java:106)
      	at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:108)
      	at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:233)
      
      

        Issue Links

          Activity

          Tony Chemit created issue -
          Tony Chemit made changes -
          Field Original Value New Value
          Link This issue depends upon MCHANGELOG-129 [ MCHANGELOG-129 ]
          Robert Scholte made changes -
          Assignee Robert Scholte [ rfscholte ]
          Hide
          Robert Scholte added a comment -

          Another reason for me to finally release the first beta versions of QDox 2.0, which include this fix.

          Show
          Robert Scholte added a comment - Another reason for me to finally release the first beta versions of QDox 2.0, which include this fix.
          Robert Scholte made changes -
          Link This issue depends upon QDOX-218 [ QDOX-218 ]
          Robert Scholte made changes -
          Fix Version/s 3.1.1 [ 18639 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Comment [ moving to anno must fix. ]
          Hide
          Robert Scholte added a comment -

          Added r1405438
          This confirms that the QDox-1.12.1 patch release will fix this.

          Show
          Robert Scholte added a comment - Added r1405438 This confirms that the QDox-1.12.1 patch release will fix this.
          Hide
          Robert Scholte added a comment -

          Fixed in r1405658

          Show
          Robert Scholte added a comment - Fixed in r1405658
          Robert Scholte made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 12:08:28 UTC 2015 [ 1428235708524 ]
          Mark Thomas made changes -
          Workflow jira [ 12723205 ] Default workflow, editable Closed status [ 12756217 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:41:51 UTC 2015 [ 1428280911727 ]
          Mark Thomas made changes -
          Workflow jira [ 12960755 ] Default workflow, editable Closed status [ 12997367 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          127d 20h 40m 1 Robert Scholte 04/Nov/12 16:46

            People

            • Assignee:
              Robert Scholte
              Reporter:
              Tony Chemit
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development