File tree Expand file tree Collapse file tree
tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 xsi : schemaLocation =" http://maven.apache.org/changes/2.0.0 https://maven.apache.org/xsd/changes-2.0.0.xsd" >
2525 <body >
2626
27+ <release version =" 2.20.4" date =" not released" >
28+ <action type =" update" dev =" sseifert" >
29+ CONGA AEM Maven Plugin: Switch to JSR-330 annotations.
30+ </action >
31+ </release >
32+
2733 <release version =" 2.20.2" date =" 2025-04-02" >
2834 <action type =" update" dev =" sseifert" issue =" 99" >
2935 Switch to Johnzon 2.x and jakarta.json.
Original file line number Diff line number Diff line change 2424
2525import java .util .List ;
2626
27+ import javax .inject .Inject ;
28+
2729import org .apache .commons .lang3 .StringUtils ;
2830import org .apache .maven .execution .MavenSession ;
2931import org .apache .maven .plugin .AbstractMojo ;
3032import org .apache .maven .plugin .MojoExecutionException ;
31- import org .apache .maven .plugins .annotations .Component ;
3233import org .apache .maven .plugins .annotations .Parameter ;
3334import org .apache .maven .settings .crypto .SettingsDecrypter ;
3435
@@ -217,7 +218,7 @@ abstract class AbstractContentPackageMojo extends AbstractMojo {
217218 @ Parameter (property = "session" , defaultValue = "${session}" , readonly = true )
218219 private MavenSession session ;
219220
220- @ Component ( role = SettingsDecrypter . class )
221+ @ Inject
221222 private SettingsDecrypter decrypter ;
222223
223224 protected final boolean isSkip () {
Original file line number Diff line number Diff line change 2929import java .util .SortedMap ;
3030import java .util .TreeMap ;
3131
32+ import javax .inject .Inject ;
33+
3234import org .apache .maven .plugin .MojoExecutionException ;
3335import org .apache .maven .plugin .MojoFailureException ;
34- import org .apache .maven .plugins .annotations .Component ;
3536import org .apache .maven .plugins .annotations .Mojo ;
3637import org .apache .maven .plugins .annotations .Parameter ;
3738import org .apache .maven .project .MavenProject ;
@@ -162,7 +163,7 @@ public final class CloudManagerAllPackageMojo extends AbstractCloudManagerMojo {
162163
163164 @ Parameter (readonly = true , defaultValue = "${project}" )
164165 private MavenProject project ;
165- @ Component
166+ @ Inject
166167 private MavenProjectHelper projectHelper ;
167168
168169 private static final String CLOUDMANAGER_TARGET_NONE = "none" ;
Original file line number Diff line number Diff line change 2727import java .util .List ;
2828import java .util .Set ;
2929
30+ import javax .inject .Inject ;
31+
3032import org .apache .commons .lang3 .StringUtils ;
3133import org .apache .maven .plugin .MojoExecutionException ;
3234import org .apache .maven .plugin .MojoFailureException ;
33- import org .apache .maven .plugins .annotations .Component ;
3435import org .apache .maven .plugins .annotations .Mojo ;
3536import org .apache .maven .plugins .annotations .Parameter ;
36- import org .codehaus .plexus .archiver .Archiver ;
3737import org .codehaus .plexus .archiver .ArchiverException ;
3838import org .codehaus .plexus .archiver .zip .ZipArchiver ;
3939
40+ import com .google .inject .name .Named ;
41+
4042import io .wcm .devops .conga .generator .util .FileUtil ;
4143import io .wcm .devops .conga .plugins .aem .maven .model .ModelParser ;
4244
@@ -56,7 +58,8 @@ public final class CloudManagerDispatcherConfigMojo extends AbstractCloudManager
5658 @ Parameter (property = "conga.cloudManager.dispatcherConfig.skip" , defaultValue = "false" )
5759 private boolean skip ;
5860
59- @ Component (role = Archiver .class , hint = "zip" )
61+ @ Inject
62+ @ Named ("zip" )
6063 private ZipArchiver zipArchiver ;
6164
6265 @ Parameter (defaultValue = "${project.build.outputTimestamp}" )
Original file line number Diff line number Diff line change 2424import java .io .File ;
2525import java .util .List ;
2626
27+ import javax .inject .Inject ;
28+
2729import org .apache .maven .execution .MavenSession ;
2830import org .apache .maven .model .Plugin ;
2931import org .apache .maven .plugin .BuildPluginManager ;
3335import org .apache .maven .plugin .MojoFailureException ;
3436import org .apache .maven .plugin .descriptor .MojoDescriptor ;
3537import org .apache .maven .plugin .descriptor .PluginDescriptor ;
36- import org .apache .maven .plugins .annotations .Component ;
3738import org .apache .maven .plugins .annotations .Mojo ;
3839import org .apache .maven .plugins .annotations .Parameter ;
3940import org .apache .maven .project .MavenProject ;
@@ -106,9 +107,9 @@ public final class InstallPackagesMojo extends AbstractContentPackageMojo {
106107 private MavenProject project ;
107108 @ Parameter (defaultValue = "${session}" , readonly = true )
108109 private MavenSession session ;
109- @ Component ( role = MavenPluginManager . class )
110+ @ Inject
110111 private MavenPluginManager pluginManager ;
111- @ Component ( role = BuildPluginManager . class )
112+ @ Inject
112113 private BuildPluginManager buildPluginManager ;
113114
114115 @ Override
You can’t perform that action at this time.
0 commit comments