@@ -328,8 +328,8 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
328
328
@ Parameter (defaultValue = "${project}" , readonly = true , required = true )
329
329
protected MavenProject project ;
330
330
331
- @ Parameter (defaultValue = "${mojoExecution}" , readonly = true )
332
- private MojoExecution mojo ;
331
+ @ Parameter (defaultValue = "${mojoExecution}" , readonly = true , required = true )
332
+ protected MojoExecution mojoExecution ;
333
333
334
334
/**
335
335
* Specify if the Javadoc plugin should operate in offline mode. If maven is run in offline
@@ -421,8 +421,8 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
421
421
/**
422
422
* The projects in the reactor for aggregation report.
423
423
*/
424
- @ Parameter (property = "reactorProjects" , readonly = true )
425
- private List <MavenProject > reactorProjects ;
424
+ @ Parameter (defaultValue = "${ reactorProjects}" , required = true , readonly = true )
425
+ protected List <MavenProject > reactorProjects ;
426
426
427
427
/**
428
428
* Set this to <code>true</code> to debug the Javadoc plugin. With this, <code>javadoc.bat(or.sh)</code>,
@@ -1828,7 +1828,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
1828
1828
abstract void doExecute () throws MojoExecutionException , MojoFailureException ;
1829
1829
1830
1830
protected final void verifyRemovedParameter (String paramName ) {
1831
- Xpp3Dom configDom = mojo .getConfiguration ();
1831
+ Xpp3Dom configDom = mojoExecution .getConfiguration ();
1832
1832
if (configDom != null ) {
1833
1833
if (configDom .getChild (paramName ) != null ) {
1834
1834
throw new IllegalArgumentException (
@@ -1838,7 +1838,7 @@ protected final void verifyRemovedParameter(String paramName) {
1838
1838
}
1839
1839
1840
1840
private void verifyReplacedParameter (String oldParamName , String newParamNew ) {
1841
- Xpp3Dom configDom = mojo .getConfiguration ();
1841
+ Xpp3Dom configDom = mojoExecution .getConfiguration ();
1842
1842
if (configDom != null ) {
1843
1843
if (configDom .getChild (oldParamName ) != null ) {
1844
1844
throw new IllegalArgumentException ("parameter '" + oldParamName + "' has been replaced with "
@@ -6042,6 +6042,10 @@ protected void logError(String message, Throwable t) {
6042
6042
}
6043
6043
}
6044
6044
6045
+ protected List <MavenProject > getReactorProjects () {
6046
+ return reactorProjects ;
6047
+ }
6048
+
6045
6049
/**
6046
6050
* @param prefix The prefix of the exception.
6047
6051
* @param e The exception.
0 commit comments