You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David M. Lloyd (Jira)" <ji...@apache.org> on 2022/04/28 13:48:00 UTC

[jira] [Created] (MCOMPILER-494) Add `useModulePath` to TestCompilerMojo

David M. Lloyd created MCOMPILER-494:
----------------------------------------

             Summary: Add `useModulePath` to TestCompilerMojo
                 Key: MCOMPILER-494
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-494
             Project: Maven Compiler Plugin
          Issue Type: Improvement
            Reporter: David M. Lloyd


Sometimes it is necessary to compile tests which do not include all of the {{requires static}} dependencies of the main module or would have other errors when compiled in module mode. The compile mojos will always use module path mode whenever a release of 9 or later is detected and there is no way to disable this behavior.

Add a {{useModulePath}} switch which is similar to the one found in {{maven-surefire-plugin}} to allow test classes to be compiled in classpath mode always.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)