[ https://jira.codehaus.org/browse/MCOMPILER-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=348322#comment-348322 ]
Christian Gossart commented on MCOMPILER-221: --------------------------------------------- For those who want to compile against a specific profile, let say "compact3" the following maven-compiler-plugin configuration is sufficient: {code:xml} <compilerArguments> <profile>compact3</profile> </compilerArguments> <source>8</source> <target>8</target> {code} A direct call to java.beans.Beans.isDesignTime() which is not in the compact3 profile will produce the expected compilation error: {code} [ERROR] {...edited_path...}/springHelloWorld/src/main/java/hello/MessagePrinter.java:[4,18] java.beans.Beans is not available in profile 'compact3' {code} A "profile" property would be nice though, the same way we have "source" and "target" options. Chrstian. > JDK 8: Support Compact Profiles > ------------------------------- > > Key: MCOMPILER-221 > URL: https://jira.codehaus.org/browse/MCOMPILER-221 > Project: Maven Compiler Plugin > Issue Type: Improvement > Affects Versions: 3.1 > Reporter: Florian Brunner > > javac of JDK 8 provides a new compiler option: -profile > This specifies a Compact Profile to build against. > http://download.java.net/jdk8/docs/technotes/tools/unix/javac.html > Provide a "profile" property to the compile goal to support this. > Make sure that if the value is empty the property is ignored. -- This message was sent by Atlassian JIRA (v6.1.6#6162)