idea maven指定编译参数

"Settings" > "Build, Execution, Deployment" > "Compiler" > "Java Compiler" > add "-parameters" as "Additional command line parameters".
            <plugin>                                                                                                                                      
                                                                                           
                <groupId>org.apache.maven.pluginsgroupId>                                                                                               
                <artifactId>maven-compiler-pluginartifactId>                                                                                            
                <version>3.1version>                                                                                                                    
                <configuration>
                   <source>1.8source>
                   <target>1.8target>
                   <compilerArgs>
                     <arg>-parametersarg>
                   compilerArgs>
                 configuration>
            plugin>

 

转载于:https://www.cnblogs.com/zhjh256/p/10455854.html

你可能感兴趣的:(idea maven指定编译参数)