File tree 1 file changed +14
-5
lines changed
src/main/java/org/apache/maven/plugin/compiler
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -307,12 +307,15 @@ public abstract class AbstractCompilerMojo
307
307
308
308
/**
309
309
* <p>
310
- * Sets the arguments to be passed to the compiler (prepending a dash) if {@link #fork} is set to <code>true</code> .
310
+ * Sets the arguments to be passed to the compiler (prepending a dash).
311
311
* </p>
312
312
* <p>
313
313
* This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
314
314
* </p>
315
315
* <p>
316
+ * Note that {@code -J} options are only passed through if {@link #fork} is set to {@code true}.
317
+ * </p>
318
+ * <p>
316
319
* To pass <code>-Xmaxerrs 1000 -Xlint -Xlint:-path -Averbose=true</code> you should include the following:
317
320
* </p>
318
321
*
@@ -334,7 +337,11 @@ public abstract class AbstractCompilerMojo
334
337
335
338
/**
336
339
* <p>
337
- * Sets the arguments to be passed to the compiler if {@link #fork} is set to <code>true</code>.
340
+ * Sets the arguments to be passed to the compiler.
341
+ * </p>
342
+ * <p>
343
+ * Note that {@code -J} options are only passed through if {@link #fork} is set to {@code true}.
344
+ * </p>
338
345
* Example:
339
346
* <pre>
340
347
* <compilerArgs>
@@ -352,13 +359,15 @@ public abstract class AbstractCompilerMojo
352
359
353
360
/**
354
361
* <p>
355
- * Sets the unformatted single argument string to be passed to the compiler if {@link #fork} is set to
356
- * <code>true</code>. To pass multiple arguments such as <code>-Xmaxerrs 1000</code> (which are actually two
357
- * arguments) you have to use {@link #compilerArguments}.
362
+ * Sets the unformatted single argument string to be passed to the compiler. To pass multiple arguments such as
363
+ * <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use {@link #compilerArguments}.
358
364
* </p>
359
365
* <p>
360
366
* This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
361
367
* </p>
368
+ * <p>
369
+ * Note that {@code -J} options are only passed through if {@link #fork} is set to {@code true}.
370
+ * </p>
362
371
*/
363
372
@ Parameter
364
373
protected String compilerArgument ;
You can’t perform that action at this time.
0 commit comments