74
74
import org .apache .maven .plugin .MojoExecution ;
75
75
import org .apache .maven .plugin .MojoExecutionException ;
76
76
import org .apache .maven .plugin .MojoFailureException ;
77
- import org .apache .maven .plugins .annotations .Component ;
78
77
import org .apache .maven .plugins .annotations .Parameter ;
79
78
import org .apache .maven .plugins .javadoc .options .BootclasspathArtifact ;
80
79
import org .apache .maven .plugins .javadoc .options .DocletArtifact ;
@@ -205,7 +204,7 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
205
204
protected static final String FILES_FILE_NAME = "files" ;
206
205
207
206
/**
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
209
208
* loaded from classloader resources.
210
209
*/
211
210
private static final String DEFAULT_CSS_NAME = "stylesheet.css" ;
@@ -260,9 +259,6 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
260
259
*/
261
260
private static final JavaVersion SINCE_JAVADOC_1_8 = JavaVersion .parse ("1.8" );
262
261
263
- /**
264
- *
265
- */
266
262
private static final JavaVersion JAVA_VERSION = JavaVersion .JAVA_SPECIFICATION_VERSION ;
267
263
268
264
// ----------------------------------------------------------------------
@@ -272,41 +268,50 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
272
268
/**
273
269
* SiteTool.
274
270
*/
275
- @ Component
276
271
protected SiteTool siteTool ;
277
272
278
273
/**
279
274
* Archiver manager
280
275
*
281
276
* @since 2.5
282
277
*/
283
- @ Component
284
278
private ArchiverManager archiverManager ;
285
279
286
- @ Component
287
280
private ResourceResolver resourceResolver ;
288
281
289
- @ Component
290
282
private RepositorySystem repoSystem ;
291
283
292
284
@ Parameter (defaultValue = "${repositorySystemSession}" , readonly = true , required = true )
293
285
private RepositorySystemSession repoSession ;
294
286
295
- @ Component
296
287
private ArtifactHandlerManager artifactHandlerManager ;
297
288
298
289
/**
299
290
* Project builder
300
291
*
301
292
* @since 3.0
302
293
*/
303
- @ Component
304
294
private ProjectBuilder mavenProjectBuilder ;
305
295
306
- /** */
307
- @ Component
308
296
private ToolchainManager toolchainManager ;
309
297
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
+
310
315
final LocationManager locationManager = new LocationManager ();
311
316
312
317
// ----------------------------------------------------------------------
0 commit comments