Author: svn-site-role Date: Sun Oct 26 17:05:02 2025 New Revision: 1929351 Log: Site checkin for project Apache Maven Site
Modified: maven/website/content/maven-jsr330.html Modified: maven/website/content/maven-jsr330.html ============================================================================== --- maven/website/content/maven-jsr330.html Sun Oct 26 12:54:13 2025 (r1929350) +++ maven/website/content/maven-jsr330.html Sun Oct 26 17:05:02 2025 (r1929351) @@ -201,7 +201,7 @@ not be discovered. This is a compromise is important.</p></section></section><section><a id="How_to_use_JSR-330_in_plugins"></a> <h2>How to use JSR-330 in plugins</h2> <p>Let's take a look at an example plugin: If you want to look at this example project, you can find the code <a href="https://github.com/apache/maven-integration-testing/tree/master/core-it-suite/src/test/resources/mng-5382" class="externalLink">in Maven Core ITs</a>.</p> -<p>The POM is setup for JSR-300 as previously mentioned, with the <code>javax.inject</code> dependency and the <code>sisu-maven-plugin</code> configured to create +<p>The POM is set up for JSR-300 as previously mentioned, with the <code>javax.inject</code> dependency and the <code>sisu-maven-plugin</code> configured to create the JSR-330 component index.</p> <p>In addition, we add classical Maven plugin dependencies <code>maven-plugin-api</code> and <code>maven-plugin-annotations</code> to extend the <code>AbstractMojo</code> and use the Java Plugin Tools Annotations with associated <code>maven-plugin-plugin</code> (see <a href="/plugin-tools/">Maven Plugin Tools</a>).</p> @@ -329,7 +329,10 @@ public class Jsr330Mojo component.hello(); } } -</code></pre></section></section> </main> +</code></pre></section><section><a id="Lifecycle_annotations_.28JSR-250.29"></a> +<h2>Lifecycle annotations (JSR-250)</h2> +<p>Sisu managed beans also support lifecycle annotations defined by <a href="https://jcp.org/en/jsr/detail?id=250" class="externalLink">JSR-250</a> (for example <code>@PostConstruct</code>). +See <a href="https://eclipse.dev/sisu/org.eclipse.sisu.inject/lifecycle.html" class="externalLink">Sisu's lifecycle support documentation</a> for more information.</p></section></section> </main> </div> </div> <hr/>
