在eclipse中传递javac参数

问题描述 投票:0回答:1

在我的maven编译器插件中,我有以下设置:

 <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
   <version>${maven-compiler-plugin.version}</version>
   <configuration>
     <source>${java.version}</source>
     <target>${java.version}</target>
     <compilerArgument>-parameters</compilerArgument>
   </configuration>
 </plugin>

有没有办法将-parameters部分传递给eclipse使用的编译器?

java eclipse javac
1个回答
1
投票

在Project> Properties:Java Compiler中,您必须选中Store方法参数的信息(可通过反射使用)复选框。

应自动检查该复选框(请参阅固定的Eclipse bug 518218)。如果您使用的是过时版本的Eclipse,请upgrade

© www.soinside.com 2019 - 2024. All rights reserved.