You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2022/01/27 07:58:00 UTC

[jira] [Closed] (MCOMPILER-414) parameters flag does not apply to testCompile goal

     [ https://issues.apache.org/jira/browse/MCOMPILER-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MCOMPILER-414.
------------------------------------
      Assignee: Robert Scholte
    Resolution: Fixed

> parameters flag does not apply to testCompile goal
> --------------------------------------------------
>
>                 Key: MCOMPILER-414
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-414
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.8.1
>            Reporter: Alberto Minetti
>            Assignee: Robert Scholte
>            Priority: Minor
>
> 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]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)