You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paweł Kozioł (JIRA)" <ji...@apache.org> on 2015/06/09 14:11:00 UTC

[jira] [Created] (MCOMPILER-244) Compiler plugin silently drops -XD flags when fork=false

Paweł Kozioł created MCOMPILER-244:
--------------------------------------

             Summary: Compiler plugin silently drops -XD flags when fork=false
                 Key: MCOMPILER-244
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-244
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.3, 3.2, 3.1, 3.0
            Reporter: Paweł Kozioł


I have Java code that uses two classes from private Java API (sun.security.\*). When i tried to compile it using jdk1.8.0_45 it failed with error saying that package sun.security.\* does not exist. I found that i should add flag {{-XDignore.symbol.file}} to compiler arguments.

It turns out that Maven Compiler Plugin silently ignores that flag and it does not work unless you also specify {{<fork>true</fork>}} ([thanks to karmakaze from StackOverflow for sollution|http://stackoverflow.com/a/30472473])

If you cannot fix this to work with fork=false maybe you could add printing warning/error to stdout?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)