Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-52

Need a way to specify the debug level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.1
    • None

    Description

      Currently there is no way to specify the debug level for the Java compiler (-g:

      {lines,vars,source}

      ). We only want to include line number information in our jars to get line numbers in stack traces without bloating the jars.

      I also tried

      <configuration>
      <source>${jdk.version}</source>
      <target>${jdk.version}</target>
      <fork>true</fork>
      <maxmem>512m</maxmem>
      <compilerArgument>-g:lines</compilerArgument>
      </configuration>

      but that configuration doesn't include any debug information in the jar for some reason.

      Attachments

        1. MCOMPILER-52.diff
          3 kB
          Siveton Vincent

        Activity

          People

            olamy Olivier Lamy
            tkrammer Thomas Krammer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: