Skip to content

Commit

Permalink
AnalyzeReport
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 18, 2024
1 parent 8519bab commit eb51274
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
*/
package org.apache.maven.plugins.dependency.analyze;

import javax.inject.Inject;

import java.util.Locale;
import java.util.Set;

import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
Expand All @@ -48,7 +49,6 @@ public class AnalyzeReport extends AbstractMavenReport {
/**
* The Maven project dependency analyzer to use.
*/
@Component
private ProjectDependencyAnalyzer analyzer;

/**
Expand Down Expand Up @@ -87,9 +87,14 @@ public class AnalyzeReport extends AbstractMavenReport {
/**
* Internationalization component
*/
@Component
private I18N i18n;

@Inject
public AnalyzeReport(ProjectDependencyAnalyzer analyzer, I18N i18n) {
this.analyzer = analyzer;
this.i18n = i18n;
}

// Mojo methods -----------------------------------------------------------

/*
Expand Down Expand Up @@ -142,11 +147,13 @@ public String getOutputName() {
}

/** {@inheritDoc} */
@Override
public String getName(Locale locale) {
return getI18nString(locale, "name");
}

/** {@inheritDoc} */
@Override
public String getDescription(Locale locale) {
return getI18nString(locale, "description");
}
Expand Down

0 comments on commit eb51274

Please sign in to comment.