You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by sv...@apache.org on 2022/04/23 13:13:41 UTC
svn commit: r1900223 - in /maven/website/content: apache-maven.pdf maven-site-1.0-site.jar plugin-developers/cookbook/plexus-plugin-upgrade.html
Author: svn-site-role
Date: Sat Apr 23 13:13:40 2022
New Revision: 1900223
Log:
Site checkin for project Apache Maven Site
Modified:
maven/website/content/apache-maven.pdf
maven/website/content/maven-site-1.0-site.jar
maven/website/content/plugin-developers/cookbook/plexus-plugin-upgrade.html
Modified: maven/website/content/apache-maven.pdf
==============================================================================
Binary files - no diff available.
Modified: maven/website/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.
Modified: maven/website/content/plugin-developers/cookbook/plexus-plugin-upgrade.html
==============================================================================
--- maven/website/content/plugin-developers/cookbook/plexus-plugin-upgrade.html (original)
+++ maven/website/content/plugin-developers/cookbook/plexus-plugin-upgrade.html Sat Apr 23 13:13:40 2022
@@ -145,11 +145,12 @@
<section>
<h2><a name="Cookbook:_How_To_Upgrade_from_Plexus_Javadoc_Tags_to_Plexus_Java_Annotations.3F"></a>Cookbook: How To Upgrade from Plexus Javadoc Tags to Plexus Java Annotations?</h2><section>
<h3><a name="Summary"></a>Summary</h3>
-<p>This recipe describes how to upgrade from Plexus Javadoc Tags to Plexus Java Annotations, in 2 steps:</p>
+<p>This recipe describes how to upgrade from Plexus Javadoc Tags to Plexus Java Annotations when defining a Plexus component.</p>
+<p>This is done in 2 steps:</p>
<ol style="list-style-type: decimal">
-<li>replace the deprecated <a class="externalLink" href="https://codehaus-plexus.github.io/plexus-maven-plugin/"><code>plexus-maven-plugin</code></a>, which only supports Plexus Javadoc Tags, with its successor: <a class="externalLink" href="https://codehaus-plexus.github.io/plexus-containers/plexus-component-metadata/"><code>plexus-component-metadata</code></a>, which support both Plexus Javadoc Tags and Plexus Java Annotations,</li>
+<li>replace the <a class="externalLink" href="https://codehaus-plexus.github.io/plexus-maven-plugin/">deprecated <code>plexus-maven-plugin</code></a>, which only supports Plexus Javadoc Tags, with its <a class="externalLink" href="https://codehaus-plexus.github.io/plexus-containers/plexus-component-metadata/">successor: <code>plexus-component-metadata</code></a>, which support both Plexus Javadoc Tags and Plexus Java Annotations,</li>
<li>update sources with <a class="externalLink" href="https://codehaus-plexus.github.io/plexus-containers/plexus-component-annotations/">Java Annotations for Plexus</a>.</li></ol>
-<p><b>Notice</b>: if you're targeting components for Maven 3.1.0+, using <a href="/maven-jsr330.html">JSR-330 annotations</a> instead of Plexus Java Annotations may be a good next step</p></section><section>
+<p><b>Notice</b>: if you're targeting components for Maven 3.1.0+, using <a href="/maven-jsr330.html"><code>@Named</code>/<code>@Inject</code> JSR-330 annotations</a> instead of <code>@Component</code>/<code>@Requirement</code> Plexus Java Annotations may be a good next step</p></section><section>
<h3><a name="Prerequisite_Plugins"></a>Prerequisite Plugins</h3>
<p>Here is the list of the plugins used:</p>
<table border="1" class="table table-striped">