7474import org .apache .maven .plugin .MojoExecution ;
7575import org .apache .maven .plugin .MojoExecutionException ;
7676import org .apache .maven .plugin .MojoFailureException ;
77- import org .apache .maven .plugins .annotations .Component ;
7877import org .apache .maven .plugins .annotations .Parameter ;
7978import org .apache .maven .plugins .javadoc .options .BootclasspathArtifact ;
8079import org .apache .maven .plugins .javadoc .options .DocletArtifact ;
@@ -205,7 +204,7 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
205204 protected static final String FILES_FILE_NAME = "files" ;
206205
207206 /**
208- * Default css file name, used as file name in the output directory for the temporary custom stylesheet file
207+ * Default CSS file name, used as file name in the output directory for the temporary custom stylesheet file
209208 * loaded from classloader resources.
210209 */
211210 private static final String DEFAULT_CSS_NAME = "stylesheet.css" ;
@@ -260,9 +259,6 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
260259 */
261260 private static final JavaVersion SINCE_JAVADOC_1_8 = JavaVersion .parse ("1.8" );
262261
263- /**
264- *
265- */
266262 private static final JavaVersion JAVA_VERSION = JavaVersion .JAVA_SPECIFICATION_VERSION ;
267263
268264 // ----------------------------------------------------------------------
@@ -272,41 +268,50 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
272268 /**
273269 * SiteTool.
274270 */
275- @ Component
276271 protected SiteTool siteTool ;
277272
278273 /**
279274 * Archiver manager
280275 *
281276 * @since 2.5
282277 */
283- @ Component
284278 private ArchiverManager archiverManager ;
285279
286- @ Component
287280 private ResourceResolver resourceResolver ;
288281
289- @ Component
290282 private RepositorySystem repoSystem ;
291283
292284 @ Parameter (defaultValue = "${repositorySystemSession}" , readonly = true , required = true )
293285 private RepositorySystemSession repoSession ;
294286
295- @ Component
296287 private ArtifactHandlerManager artifactHandlerManager ;
297288
298289 /**
299290 * Project builder
300291 *
301292 * @since 3.0
302293 */
303- @ Component
304294 private ProjectBuilder mavenProjectBuilder ;
305295
306- /** */
307- @ Component
308296 private ToolchainManager toolchainManager ;
309297
298+ public AbstractJavadocMojo (
299+ SiteTool siteTool ,
300+ ArchiverManager archiverManager ,
301+ ResourceResolver resourceResolver ,
302+ RepositorySystem repoSystem ,
303+ ArtifactHandlerManager artifactHandlerManager ,
304+ ProjectBuilder mavenProjectBuilder ,
305+ ToolchainManager toolchainManager ) {
306+ this .siteTool = siteTool ;
307+ this .archiverManager = archiverManager ;
308+ this .resourceResolver = resourceResolver ;
309+ this .repoSystem = repoSystem ;
310+ this .artifactHandlerManager = artifactHandlerManager ;
311+ this .mavenProjectBuilder = mavenProjectBuilder ;
312+ this .toolchainManager = toolchainManager ;
313+ }
314+
310315 final LocationManager locationManager = new LocationManager ();
311316
312317 // ----------------------------------------------------------------------
0 commit comments