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

parameters flag does not apply to testCompile goal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.8.1
    • None
    • None

    Description

      Seems that the <parameters>true</parameters> flag just applies properly to the compile goal, but not to the testCompile goal.

       

      Workaround: using the compilerArgs works for both goals compile and testCompile

      <compilerArgs>
        <arg>-parameters</arg>
      </compilerArgs>

       

      Here on github you can find a working software with the current issue; the tests in master branch fail because of the usage of the <parameter> flag, instead in the branch using-compilerArgs the build is succesful.

      https://github.com/albertominetti/jackson-parameters/pull/1/commits/ad0fa7605fe378a4b900b7c911f4e7019533092f

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              albertominetti Alberto Minetti
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: