Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to pass multiple parameters to Xlint java compiler option

I've a maven project with a maven compiler plugin, and I want use -Xlint:overrides as option to java compiler, so I added this line to maven compiler plugin <compilerArgument>-Xlint:overrides</compilerArgument> but I've already need to use unchecked options and I need only these two parameters, how can I add to parameters to Xlint? -Xlint:unchecked overrides doesn't work... maven returns build faulire. Can you help me?

like image 991
andPat Avatar asked Feb 20 '26 17:02

andPat


1 Answers

If you have maven 3.1 you can use

<compilerArgs>
  <arg>arg 1</arg>
  <arg>arg 2</arg>
</compilerArgs>
like image 181
michal Avatar answered Feb 22 '26 05:02

michal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!