[ https://issues.apache.org/jira/browse/MCOMPILER-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MCOMPILER-244. ---------------------------------- Assignee: Olivier Lamy Resolution: Won't Fix > 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.0, 3.1, 3.2, 3.3 > Reporter: Paweł Kozioł > Assignee: Olivier Lamy > Priority: Major > > 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 (v8.20.1#820001)