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 gn...@apache.org on 2024/06/26 07:49:27 UTC
svn commit: r1918635 [22/35] - in /maven/website/components/plugin-testing-archives/LATEST: ./ css/ fonts/ images/ images/profiles/ img/ js/ maven-plugin-testing-harness/ maven-plugin-testing-harness/apidocs/ maven-plugin-testing-harness/apidocs/legal/...
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/complex-mojo-parameters.html
==============================================================================
--- maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/complex-mojo-parameters.html (original)
+++ maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/complex-mojo-parameters.html Wed Jun 26 07:49:26 2024
@@ -1,125 +1,71 @@
<!DOCTYPE html>
-
-
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/examples/complex-mojo-parameters.apt at 2023-11-07
- | Rendered using Apache Maven Fluido Skin 1.11.2
+ | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/examples/complex-mojo-parameters.apt at 2024-06-26
+
+ | Rendered using Apache Maven Default Skin
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<meta name="author" content="Vincent Siveton" />
<meta name="date" content="February 2008" />
<title>Maven Plugin Testing Mechanism – Testing Complex Mojo Parameters</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.11.2.min.css" />
+ <link rel="stylesheet" href="../css/maven-base.css" />
+ <link rel="stylesheet" href="../css/maven-theme.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
- <script src="../js/apache-maven-fluido-1.11.2.min.js"></script>
-
- <!-- Matomo -->
- <script>
- var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
- (function() {
- var u="https://analytics.apache.org/";
- _paq.push(['setTrackerUrl', u+'/matomo.php']);
- _paq.push(['setSiteId', '3']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
</head>
- <body class="topBarDisabled">
- <div class="container-fluid">
- <header>
- <div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Maven Plugin Testing Mechanism" style="" /></a></div>
- <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
- <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
- <li><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
- <li><a href="../../index.html" title="Maven Plugin Testing">Maven Plugin Testing</a><span class="divider">/</span></li>
- <li><a href="../index.html" title="Maven Plugin Testing Mechanism">Maven Plugin Testing Mechanism</a><span class="divider">/</span></li>
- <li class="active ">Testing Complex Mojo Parameters <a href="https://github.com/apache/maven-plugin-testing/tree/maven-plugin-testing-4.0.0-alpha-2/maven-plugin-testing-harness/src/site/apt/examples/complex-mojo-parameters.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-11-07</li>
- <li id="projectVersion" class="pull-right">Version: 4.0.0-alpha-2</li>
- </ul>
- </div>
- </header>
- <div class="row-fluid">
- <header id="leftColumn" class="span2">
- <nav class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
- <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
- <li><a href="../getting-started/index.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
- <li><a href="../apidocs/index.html" title="JavaDocs"><span class="none"></span>JavaDocs</a></li>
- <li><a href="../xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li>
- <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
- <li class="nav-header">Examples</li>
- <li class="active"><a><span class="none"></span>Testing Complex Mojo Parameters</a></li>
- <li><a href="../examples/multiproject.html" title="Testing Multiproject"><span class="none"></span>Testing Multiproject</a></li>
- <li><a href="../examples/repositories.html" title="Testing Repositories"><span class="none"></span>Testing Repositories</a></li>
- <li><a href="../examples/artifact.html" title="Testing Project Artifact"><span class="none"></span>Testing Project Artifact</a></li>
- <li class="nav-header">Project Documentation</li>
- <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
- <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
- <li class="nav-header">Maven Projects</li>
- <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
- <li><a href="../../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li>
- <li><a href="../../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li>
- <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
- <li><a href="../../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
- <li><a href="../" title=""><span class="icon-chevron-down"></span></a>
- <ul class="nav nav-list">
- <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
- <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
- <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
- <li><a href="../../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li>
- <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
- <li><a href="../../index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
- <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
- <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
- <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
- <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
- <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
- <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
- </ul></li>
- <li class="nav-header">ASF</li>
- <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
- <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
- <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li>
- <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
- <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
- </ul>
- </nav>
- <div class="well sidebar-nav">
- <div id="poweredBy">
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
-<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
- </div>
- </div>
- </header>
- <main id="bodyColumn" class="span10" >
+ <body class="composite">
+ <div id="banner">
+<div id="bannerLeft">Maven Plugin Testing Mechanism
+</div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+ <div class="xleft">
+ <span id="publishDate">Last Published: 2024-06-26</span>
+ | <span id="projectVersion">Version: 4.0.0-beta-2-SNAPSHOT</span>
+ </div>
+ <div class="xright"> </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+ <h5>Overview</h5>
+ <ul>
+ <li class="none"><a href="../index.html" title="Introduction">Introduction</a></li>
+ <li class="none"><a href="../getting-started/index.html" title="Getting Started">Getting Started</a></li>
+ <li class="none"><a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a></li>
+ <li class="none"><a href="../xref/index.html" title="Source Xref">Source Xref</a></li>
+ <li class="none"><a href="../faq.html" title="FAQ">FAQ</a></li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none"><strong>Testing Complex Mojo Parameters</strong></li>
+ <li class="none"><a href="../examples/multiproject.html" title="Testing Multiproject">Testing Multiproject</a></li>
+ <li class="none"><a href="../examples/repositories.html" title="Testing Repositories">Testing Repositories</a></li>
+ <li class="none"><a href="../examples/artifact.html" title="Testing Project Artifact">Testing Project Artifact</a></li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
+ </a>
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
<section>
<h2><a name="Testing_Complex_Mojo_Parameters"></a>Testing Complex Mojo Parameters</h2>
<p><b>Note</b>: This example improves the <a href="../getting-started/index.html">cookbook</a> for testing complex Mojo parameters.</p>
<p>In real plugin development, you will use specific Maven objects like <code>MavenProject</code>, <code>ArtifactRepository</code> or <code>MavenSettings</code>. You could use them by defining stubs.</p>
<p>Suppose that you have the following dependencies in the maven-my-plugin pom:</p>
-<div class="source"><pre class="prettyprint linenums"><project>
+<div class="source">
+<pre><project>
...
<dependencies>
<dependency>
@@ -136,7 +82,8 @@
</dependencies>
</project></pre></div>
<p>You will add the following in the <code>MyMojo</code>:</p>
-<div class="source"><pre class="prettyprint linenums">public class MyMojo
+<div class="source">
+<pre>public class MyMojo
extends AbstractMojo
{
/**
@@ -161,7 +108,8 @@
}</pre></div><section>
<h3><a name="Create_Stubs"></a>Create Stubs</h3>
<p>You need to create stub objects to run <code>MyMojoTest#testSomething()</code>. By convention, the package name should reflect the stubs, i.e. in our case <code>org.apache.maven.plugin.my.stubs</code>.</p>
-<div class="source"><pre class="prettyprint linenums">public class MyProjectStub
+<div class="source">
+<pre>public class MyProjectStub
extends MavenProjectStub
{
/**
@@ -212,7 +160,8 @@
return new File( super.getBasedir() + "/src/test/resources/unit/project-to-test/" );
}
}</pre></div>
-<div class="source"><pre class="prettyprint linenums">public class SettingsStub
+<div class="source">
+<pre>public class SettingsStub
extends Settings
{
/** {@inheritDoc} */
@@ -222,7 +171,8 @@
}
}</pre></div></section><section>
<h3><a name="Configure_project-to-test_pom"></a>Configure <code>project-to-test</code> pom</h3>
-<div class="source"><pre class="prettyprint linenums"><project>
+<div class="source">
+<pre><project>
...
<build>
<plugins>
@@ -243,23 +193,18 @@
</plugins>
</build>
</project></pre></div></section></section>
- </main>
</div>
</div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>© 2008–2023
-<a href="https://www.apache.org/">The Apache Software Foundation</a>
-</p>
- </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ Copyright © 2008–2024<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+. </div>
+ <div class="clear">
+ <hr/>
</div>
- </footer>
-<script>
- if(anchors) {
- anchors.add();
- }
-</script>
+ </div>
</body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/multiproject.html
==============================================================================
--- maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/multiproject.html (original)
+++ maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/multiproject.html Wed Jun 26 07:49:26 2024
@@ -1,133 +1,80 @@
<!DOCTYPE html>
-
-
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/examples/multiproject.apt at 2023-11-07
- | Rendered using Apache Maven Fluido Skin 1.11.2
+ | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/examples/multiproject.apt at 2024-06-26
+
+ | Rendered using Apache Maven Default Skin
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<meta name="author" content="Vincent Siveton" />
<meta name="date" content="February 2008" />
<title>Maven Plugin Testing Mechanism – Testing Multiproject</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.11.2.min.css" />
+ <link rel="stylesheet" href="../css/maven-base.css" />
+ <link rel="stylesheet" href="../css/maven-theme.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
- <script src="../js/apache-maven-fluido-1.11.2.min.js"></script>
-
- <!-- Matomo -->
- <script>
- var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
- (function() {
- var u="https://analytics.apache.org/";
- _paq.push(['setTrackerUrl', u+'/matomo.php']);
- _paq.push(['setSiteId', '3']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
</head>
- <body class="topBarDisabled">
- <div class="container-fluid">
- <header>
- <div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Maven Plugin Testing Mechanism" style="" /></a></div>
- <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
- <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
- <li><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
- <li><a href="../../index.html" title="Maven Plugin Testing">Maven Plugin Testing</a><span class="divider">/</span></li>
- <li><a href="../index.html" title="Maven Plugin Testing Mechanism">Maven Plugin Testing Mechanism</a><span class="divider">/</span></li>
- <li class="active ">Testing Multiproject <a href="https://github.com/apache/maven-plugin-testing/tree/maven-plugin-testing-4.0.0-alpha-2/maven-plugin-testing-harness/src/site/apt/examples/multiproject.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-11-07</li>
- <li id="projectVersion" class="pull-right">Version: 4.0.0-alpha-2</li>
- </ul>
- </div>
- </header>
- <div class="row-fluid">
- <header id="leftColumn" class="span2">
- <nav class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
- <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
- <li><a href="../getting-started/index.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
- <li><a href="../apidocs/index.html" title="JavaDocs"><span class="none"></span>JavaDocs</a></li>
- <li><a href="../xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li>
- <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
- <li class="nav-header">Examples</li>
- <li><a href="../examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters"><span class="none"></span>Testing Complex Mojo Parameters</a></li>
- <li class="active"><a><span class="none"></span>Testing Multiproject</a></li>
- <li><a href="../examples/repositories.html" title="Testing Repositories"><span class="none"></span>Testing Repositories</a></li>
- <li><a href="../examples/artifact.html" title="Testing Project Artifact"><span class="none"></span>Testing Project Artifact</a></li>
- <li class="nav-header">Project Documentation</li>
- <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
- <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
- <li class="nav-header">Maven Projects</li>
- <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
- <li><a href="../../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li>
- <li><a href="../../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li>
- <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
- <li><a href="../../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
- <li><a href="../" title=""><span class="icon-chevron-down"></span></a>
- <ul class="nav nav-list">
- <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
- <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
- <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
- <li><a href="../../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li>
- <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
- <li><a href="../../index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
- <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
- <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
- <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
- <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
- <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
- <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
- </ul></li>
- <li class="nav-header">ASF</li>
- <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
- <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
- <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li>
- <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
- <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
- </ul>
- </nav>
- <div class="well sidebar-nav">
- <div id="poweredBy">
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
-<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
- </div>
- </div>
- </header>
- <main id="bodyColumn" class="span10" >
+ <body class="composite">
+ <div id="banner">
+<div id="bannerLeft">Maven Plugin Testing Mechanism
+</div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+ <div class="xleft">
+ <span id="publishDate">Last Published: 2024-06-26</span>
+ | <span id="projectVersion">Version: 4.0.0-beta-2-SNAPSHOT</span>
+ </div>
+ <div class="xright"> </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+ <h5>Overview</h5>
+ <ul>
+ <li class="none"><a href="../index.html" title="Introduction">Introduction</a></li>
+ <li class="none"><a href="../getting-started/index.html" title="Getting Started">Getting Started</a></li>
+ <li class="none"><a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a></li>
+ <li class="none"><a href="../xref/index.html" title="Source Xref">Source Xref</a></li>
+ <li class="none"><a href="../faq.html" title="FAQ">FAQ</a></li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none"><a href="../examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters">Testing Complex Mojo Parameters</a></li>
+ <li class="none"><strong>Testing Multiproject</strong></li>
+ <li class="none"><a href="../examples/repositories.html" title="Testing Repositories">Testing Repositories</a></li>
+ <li class="none"><a href="../examples/artifact.html" title="Testing Project Artifact">Testing Project Artifact</a></li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
+ </a>
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
<section>
<h2><a name="Testing_Multiproject"></a>Testing Multiproject</h2>
<p><b>Note</b>: This example improves the <a href="../getting-started/index.html">cookbook</a> for multi-project testing.</p>
<p>Your Mojo should have <code>@aggregator</code> parameter, i.e.:</p>
<ul>
<li>with java annotations (<a href="/plugin-tools/">maven-plugin-plugin 3.x</a>):
-<div class="source"><pre class="prettyprint linenums">@Mojo( name = "touch", aggregator = true )
+<div class="source">
+<pre>@Mojo( name = "touch", aggregator = true )
public class MyMojo
extends AbstractMojo
{
...
}</pre></div></li>
<li>or with javadoc tags:
-<div class="source"><pre class="prettyprint linenums">/**
+<div class="source">
+<pre>/**
* @goal touch
* @aggregator
*/
@@ -139,7 +86,8 @@ public class MyMojo
<p>To test a Mojo in a multiproject area, you need to define several stubs, i.e. for the main test project and its modules.</p><section>
<h3><a name="Create_Stubs"></a>Create Stubs</h3>
<p>Stub for the main test project:</p>
-<div class="source"><pre class="prettyprint linenums">public class MyProjectStub
+<div class="source">
+<pre>public class MyProjectStub
extends MavenProjectStub
{
/**
@@ -159,7 +107,8 @@ public class MyMojo
}
}</pre></div>
<p>Stubs for the subprojects:</p>
-<div class="source"><pre class="prettyprint linenums">public class SubProject1Stub
+<div class="source">
+<pre>public class SubProject1Stub
extends MavenProjectStub
{
/**
@@ -170,7 +119,8 @@ public class MyMojo
...
}
}</pre></div>
-<div class="source"><pre class="prettyprint linenums">public class SubProject2Stub
+<div class="source">
+<pre>public class SubProject2Stub
extends MavenProjectStub
{
/**
@@ -182,7 +132,8 @@ public class MyMojo
}
}</pre></div></section><section>
<h3><a name="Configure_project-to-test_pom"></a>Configure <code>project-to-test</code> pom</h3>
-<div class="source"><pre class="prettyprint linenums"><project>
+<div class="source">
+<pre><project>
...
<build>
<plugins>
@@ -200,23 +151,18 @@ public class MyMojo
</plugins>
</build>
</project></pre></div></section></section>
- </main>
</div>
</div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>© 2008–2023
-<a href="https://www.apache.org/">The Apache Software Foundation</a>
-</p>
- </div>
- </div>
- </footer>
-<script>
- if(anchors) {
- anchors.add();
- }
-</script>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ Copyright © 2008–2024<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+. </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
</body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/repositories.html
==============================================================================
--- maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/repositories.html (original)
+++ maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/examples/repositories.html Wed Jun 26 07:49:26 2024
@@ -1,124 +1,70 @@
<!DOCTYPE html>
-
-
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/examples/repositories.apt at 2023-11-07
- | Rendered using Apache Maven Fluido Skin 1.11.2
+ | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/examples/repositories.apt at 2024-06-26
+
+ | Rendered using Apache Maven Default Skin
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<meta name="author" content="Vincent Siveton" />
<meta name="date" content="February 2008" />
<title>Maven Plugin Testing Mechanism – Testing Using Repositories</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.11.2.min.css" />
+ <link rel="stylesheet" href="../css/maven-base.css" />
+ <link rel="stylesheet" href="../css/maven-theme.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
- <script src="../js/apache-maven-fluido-1.11.2.min.js"></script>
-
- <!-- Matomo -->
- <script>
- var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
- (function() {
- var u="https://analytics.apache.org/";
- _paq.push(['setTrackerUrl', u+'/matomo.php']);
- _paq.push(['setSiteId', '3']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
</head>
- <body class="topBarDisabled">
- <div class="container-fluid">
- <header>
- <div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Maven Plugin Testing Mechanism" style="" /></a></div>
- <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
- <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
- <li><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
- <li><a href="../../index.html" title="Maven Plugin Testing">Maven Plugin Testing</a><span class="divider">/</span></li>
- <li><a href="../index.html" title="Maven Plugin Testing Mechanism">Maven Plugin Testing Mechanism</a><span class="divider">/</span></li>
- <li class="active ">Testing Using Repositories <a href="https://github.com/apache/maven-plugin-testing/tree/maven-plugin-testing-4.0.0-alpha-2/maven-plugin-testing-harness/src/site/apt/examples/repositories.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-11-07</li>
- <li id="projectVersion" class="pull-right">Version: 4.0.0-alpha-2</li>
- </ul>
- </div>
- </header>
- <div class="row-fluid">
- <header id="leftColumn" class="span2">
- <nav class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
- <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
- <li><a href="../getting-started/index.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
- <li><a href="../apidocs/index.html" title="JavaDocs"><span class="none"></span>JavaDocs</a></li>
- <li><a href="../xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li>
- <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
- <li class="nav-header">Examples</li>
- <li><a href="../examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters"><span class="none"></span>Testing Complex Mojo Parameters</a></li>
- <li><a href="../examples/multiproject.html" title="Testing Multiproject"><span class="none"></span>Testing Multiproject</a></li>
- <li class="active"><a><span class="none"></span>Testing Repositories</a></li>
- <li><a href="../examples/artifact.html" title="Testing Project Artifact"><span class="none"></span>Testing Project Artifact</a></li>
- <li class="nav-header">Project Documentation</li>
- <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
- <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
- <li class="nav-header">Maven Projects</li>
- <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
- <li><a href="../../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li>
- <li><a href="../../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li>
- <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
- <li><a href="../../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
- <li><a href="../" title=""><span class="icon-chevron-down"></span></a>
- <ul class="nav nav-list">
- <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
- <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
- <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
- <li><a href="../../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li>
- <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
- <li><a href="../../index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
- <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
- <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
- <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
- <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
- <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
- <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
- </ul></li>
- <li class="nav-header">ASF</li>
- <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
- <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
- <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li>
- <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
- <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
- </ul>
- </nav>
- <div class="well sidebar-nav">
- <div id="poweredBy">
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
-<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
- </div>
- </div>
- </header>
- <main id="bodyColumn" class="span10" >
+ <body class="composite">
+ <div id="banner">
+<div id="bannerLeft">Maven Plugin Testing Mechanism
+</div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+ <div class="xleft">
+ <span id="publishDate">Last Published: 2024-06-26</span>
+ | <span id="projectVersion">Version: 4.0.0-beta-2-SNAPSHOT</span>
+ </div>
+ <div class="xright"> </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+ <h5>Overview</h5>
+ <ul>
+ <li class="none"><a href="../index.html" title="Introduction">Introduction</a></li>
+ <li class="none"><a href="../getting-started/index.html" title="Getting Started">Getting Started</a></li>
+ <li class="none"><a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a></li>
+ <li class="none"><a href="../xref/index.html" title="Source Xref">Source Xref</a></li>
+ <li class="none"><a href="../faq.html" title="FAQ">FAQ</a></li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none"><a href="../examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters">Testing Complex Mojo Parameters</a></li>
+ <li class="none"><a href="../examples/multiproject.html" title="Testing Multiproject">Testing Multiproject</a></li>
+ <li class="none"><strong>Testing Repositories</strong></li>
+ <li class="none"><a href="../examples/artifact.html" title="Testing Project Artifact">Testing Project Artifact</a></li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
+ </a>
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
<section>
<h2><a name="Testing_Using_Repositories"></a>Testing Using Repositories</h2>
<p><b>Note</b>: This example improves the <a href="../getting-started/index.html">cookbook</a> for testing repositories.</p>
<p>When developing a Maven plugin you often need to play with repositories. Suppose that the MyMojo needs to download artifacts into your local repository, i.e.:</p>
-<div class="source"><pre class="prettyprint linenums">public class MyMojo
+<div class="source">
+<pre>public class MyMojo
extends AbstractMojo
{
/**
@@ -163,7 +109,8 @@
}</pre></div><section>
<h3><a name="Create_Stubs"></a>Create Stubs</h3>
<p>Stub for the test project:</p>
-<div class="source"><pre class="prettyprint linenums">public class MyProjectStub
+<div class="source">
+<pre>public class MyProjectStub
extends MavenProjectStub
{
/**
@@ -184,7 +131,8 @@
}
}</pre></div></section><section>
<h3><a name="Configure_project-to-test_pom"></a>Configure <code>project-to-test</code> pom</h3>
-<div class="source"><pre class="prettyprint linenums"><project>
+<div class="source">
+<pre><project>
...
<build>
<plugins>
@@ -206,23 +154,18 @@
</project></pre></div><section>
<h4><a name="Execute_test"></a>Execute test</h4>
<p>Calling <code>mvn test</code> will create <code>${basedir}/target/local-repo/junitjunit/3.8.1/junit-3.8.1.jar</code> file.</p></section></section></section>
- </main>
</div>
</div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>© 2008–2023
-<a href="https://www.apache.org/">The Apache Software Foundation</a>
-</p>
- </div>
- </div>
- </footer>
-<script>
- if(anchors) {
- anchors.add();
- }
-</script>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ Copyright © 2008–2024<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+. </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
</body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/faq.html
==============================================================================
--- maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/faq.html (original)
+++ maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/faq.html Wed Jun 26 07:49:26 2024
@@ -1,117 +1,62 @@
<!DOCTYPE html>
-
-
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/fml/faq.fml at 2023-11-07
- | Rendered using Apache Maven Fluido Skin 1.11.2
+ | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/fml/faq.fml at 2024-06-26
+
+ | Rendered using Apache Maven Default Skin
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<title>Maven Plugin Testing Mechanism – Frequently Asked Questions</title>
- <link rel="stylesheet" href="./css/apache-maven-fluido-1.11.2.min.css" />
+ <link rel="stylesheet" href="./css/maven-base.css" />
+ <link rel="stylesheet" href="./css/maven-theme.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
- <script src="./js/apache-maven-fluido-1.11.2.min.js"></script>
-
- <!-- Matomo -->
- <script>
- var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
- (function() {
- var u="https://analytics.apache.org/";
- _paq.push(['setTrackerUrl', u+'/matomo.php']);
- _paq.push(['setSiteId', '3']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
</head>
- <body class="topBarDisabled">
- <div class="container-fluid">
- <header>
- <div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../images/apache-maven-project.png" alt="Maven Plugin Testing Mechanism" style="" /></a></div>
- <div class="pull-right"><a href="../../" id="bannerRight"><img src="../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
- <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
- <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
- <li><a href="../index.html" title="Maven Plugin Testing">Maven Plugin Testing</a><span class="divider">/</span></li>
- <li><a href="index.html" title="Maven Plugin Testing Mechanism">Maven Plugin Testing Mechanism</a><span class="divider">/</span></li>
- <li class="active ">Frequently Asked Questions <a href="https://github.com/apache/maven-plugin-testing/tree/maven-plugin-testing-4.0.0-alpha-2/maven-plugin-testing-harness/src/site/fml/faq.fml"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-11-07</li>
- <li id="projectVersion" class="pull-right">Version: 4.0.0-alpha-2</li>
- </ul>
- </div>
- </header>
- <div class="row-fluid">
- <header id="leftColumn" class="span2">
- <nav class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
- <li><a href="index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
- <li><a href="getting-started/index.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
- <li><a href="apidocs/index.html" title="JavaDocs"><span class="none"></span>JavaDocs</a></li>
- <li><a href="xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li>
- <li class="active"><a><span class="none"></span>FAQ</a></li>
- <li class="nav-header">Examples</li>
- <li><a href="examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters"><span class="none"></span>Testing Complex Mojo Parameters</a></li>
- <li><a href="examples/multiproject.html" title="Testing Multiproject"><span class="none"></span>Testing Multiproject</a></li>
- <li><a href="examples/repositories.html" title="Testing Repositories"><span class="none"></span>Testing Repositories</a></li>
- <li><a href="examples/artifact.html" title="Testing Project Artifact"><span class="none"></span>Testing Project Artifact</a></li>
- <li class="nav-header">Project Documentation</li>
- <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
- <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
- <li class="nav-header">Maven Projects</li>
- <li><a href="../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
- <li><a href="../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li>
- <li><a href="../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li>
- <li><a href="../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
- <li><a href="../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
- <li><a href="" title=""><span class="icon-chevron-down"></span></a>
- <ul class="nav nav-list">
- <li><a href="../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
- <li><a href="../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
- <li><a href="../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
- <li><a href="../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li>
- <li><a href="../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
- <li><a href="../index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
- <li><a href="../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
- <li><a href="../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
- <li><a href="../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
- <li><a href="../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
- <li><a href="../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
- <li><a href="../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
- </ul></li>
- <li class="nav-header">ASF</li>
- <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
- <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
- <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li>
- <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
- <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
- </ul>
- </nav>
- <div class="well sidebar-nav">
- <div id="poweredBy">
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
-<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
- </div>
- </div>
- </header>
- <main id="bodyColumn" class="span10" >
+ <body class="composite">
+ <div id="banner">
+<div id="bannerLeft">Maven Plugin Testing Mechanism
+</div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+ <div class="xleft">
+ <span id="publishDate">Last Published: 2024-06-26</span>
+ | <span id="projectVersion">Version: 4.0.0-beta-2-SNAPSHOT</span>
+ </div>
+ <div class="xright"> </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+ <h5>Overview</h5>
+ <ul>
+ <li class="none"><a href="index.html" title="Introduction">Introduction</a></li>
+ <li class="none"><a href="getting-started/index.html" title="Getting Started">Getting Started</a></li>
+ <li class="none"><a href="apidocs/index.html" title="JavaDocs">JavaDocs</a></li>
+ <li class="none"><a href="xref/index.html" title="Source Xref">Source Xref</a></li>
+ <li class="none"><strong>FAQ</strong></li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none"><a href="examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters">Testing Complex Mojo Parameters</a></li>
+ <li class="none"><a href="examples/multiproject.html" title="Testing Multiproject">Testing Multiproject</a></li>
+ <li class="none"><a href="examples/repositories.html" title="Testing Repositories">Testing Repositories</a></li>
+ <li class="none"><a href="examples/artifact.html" title="Testing Project Artifact">Testing Project Artifact</a></li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+ </a>
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
<section>
<h2><a name="Frequently_Asked_Questions"></a><a name="top">Frequently Asked Questions</a></h2>
<ol style="list-style-type: decimal">
@@ -174,23 +119,18 @@
</p>
<p align="right"><a href="#top">[top]</a></p></dd></dl>
- </main>
</div>
</div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>© 2008–2023
-<a href="https://www.apache.org/">The Apache Software Foundation</a>
-</p>
- </div>
- </div>
- </footer>
-<script>
- if(anchors) {
- anchors.add();
- }
-</script>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ Copyright © 2008–2024<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+. </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
</body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/getting-started/index.html
==============================================================================
--- maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/getting-started/index.html (original)
+++ maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/getting-started/index.html Wed Jun 26 07:49:26 2024
@@ -1,130 +1,77 @@
<!DOCTYPE html>
-
-
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/getting-started/index.apt at 2023-11-07
- | Rendered using Apache Maven Fluido Skin 1.11.2
+ | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/getting-started/index.apt at 2024-06-26
+
+ | Rendered using Apache Maven Default Skin
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<meta name="author" content="Vincent Siveton" />
<meta name="date" content="2008-08-27" />
<title>Maven Plugin Testing Mechanism – How To Use Maven Plugin Testing Harness</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.11.2.min.css" />
+ <link rel="stylesheet" href="../css/maven-base.css" />
+ <link rel="stylesheet" href="../css/maven-theme.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
- <script src="../js/apache-maven-fluido-1.11.2.min.js"></script>
-
- <!-- Matomo -->
- <script>
- var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
- (function() {
- var u="https://analytics.apache.org/";
- _paq.push(['setTrackerUrl', u+'/matomo.php']);
- _paq.push(['setSiteId', '3']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
</head>
- <body class="topBarDisabled">
- <div class="container-fluid">
- <header>
- <div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Maven Plugin Testing Mechanism" style="" /></a></div>
- <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
- <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
- <li><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
- <li><a href="../../index.html" title="Maven Plugin Testing">Maven Plugin Testing</a><span class="divider">/</span></li>
- <li><a href="../index.html" title="Maven Plugin Testing Mechanism">Maven Plugin Testing Mechanism</a><span class="divider">/</span></li>
- <li class="active ">How To Use Maven Plugin Testing Harness <a href="https://github.com/apache/maven-plugin-testing/tree/maven-plugin-testing-4.0.0-alpha-2/maven-plugin-testing-harness/src/site/apt/getting-started/index.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-11-07</li>
- <li id="projectVersion" class="pull-right">Version: 4.0.0-alpha-2</li>
- </ul>
- </div>
- </header>
- <div class="row-fluid">
- <header id="leftColumn" class="span2">
- <nav class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
- <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
- <li class="active"><a><span class="none"></span>Getting Started</a></li>
- <li><a href="../apidocs/index.html" title="JavaDocs"><span class="none"></span>JavaDocs</a></li>
- <li><a href="../xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li>
- <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
- <li class="nav-header">Examples</li>
- <li><a href="../examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters"><span class="none"></span>Testing Complex Mojo Parameters</a></li>
- <li><a href="../examples/multiproject.html" title="Testing Multiproject"><span class="none"></span>Testing Multiproject</a></li>
- <li><a href="../examples/repositories.html" title="Testing Repositories"><span class="none"></span>Testing Repositories</a></li>
- <li><a href="../examples/artifact.html" title="Testing Project Artifact"><span class="none"></span>Testing Project Artifact</a></li>
- <li class="nav-header">Project Documentation</li>
- <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
- <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
- <li class="nav-header">Maven Projects</li>
- <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
- <li><a href="../../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li>
- <li><a href="../../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li>
- <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
- <li><a href="../../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
- <li><a href="../" title=""><span class="icon-chevron-down"></span></a>
- <ul class="nav nav-list">
- <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
- <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
- <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
- <li><a href="../../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li>
- <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
- <li><a href="../../index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
- <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
- <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
- <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
- <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
- <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
- <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
- </ul></li>
- <li class="nav-header">ASF</li>
- <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
- <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
- <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li>
- <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
- <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
- </ul>
- </nav>
- <div class="well sidebar-nav">
- <div id="poweredBy">
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
-<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
- </div>
- </div>
- </header>
- <main id="bodyColumn" class="span10" >
+ <body class="composite">
+ <div id="banner">
+<div id="bannerLeft">Maven Plugin Testing Mechanism
+</div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+ <div class="xleft">
+ <span id="publishDate">Last Published: 2024-06-26</span>
+ | <span id="projectVersion">Version: 4.0.0-beta-2-SNAPSHOT</span>
+ </div>
+ <div class="xright"> </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+ <h5>Overview</h5>
+ <ul>
+ <li class="none"><a href="../index.html" title="Introduction">Introduction</a></li>
+ <li class="none"><strong>Getting Started</strong></li>
+ <li class="none"><a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a></li>
+ <li class="none"><a href="../xref/index.html" title="Source Xref">Source Xref</a></li>
+ <li class="none"><a href="../faq.html" title="FAQ">FAQ</a></li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none"><a href="../examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters">Testing Complex Mojo Parameters</a></li>
+ <li class="none"><a href="../examples/multiproject.html" title="Testing Multiproject">Testing Multiproject</a></li>
+ <li class="none"><a href="../examples/repositories.html" title="Testing Repositories">Testing Repositories</a></li>
+ <li class="none"><a href="../examples/artifact.html" title="Testing Project Artifact">Testing Project Artifact</a></li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
+ </a>
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
<section>
<h2><a name="Cookbook:_How_To_Use_Maven_Plugin_Testing_Harness.3F"></a>Cookbook: How To Use Maven Plugin Testing Harness?</h2>
<p>This guide is intended as a reference for those developing Maven plugins, with self-contained references and solutions for common testing cases.</p><section>
<h3><a name="Prerequisites"></a>Prerequisites</h3>
<p>We assume that you have already created a plugin. In this cookbook, we make reference to <code>MyMojo</code> in <code>maven-my-plugin</code> which is generated by the Maven Archetype Plugin, i.e.:</p>
-<div class="source"><pre class="prettyprint linenums">mvn archetype:create \
+<div class="source">
+<pre>mvn archetype:create \
-DgroupId=org.apache.maven.plugin.my \
-DartifactId=maven-my-plugin \
-DarchetypeArtifactId=maven-archetype-mojo</pre></div>
<p>The generated structure should be:</p>
-<div class="source"><pre class="prettyprint linenums">maven-my-plugin
+<div class="source">
+<pre>maven-my-plugin
|- pom.xml
+- src/
+- main/
@@ -138,7 +85,8 @@
<h3><a name="Recipe"></a>Recipe</h3><section>
<h4><a name="Add_maven-plugin-testing-harness_dependency"></a>Add <code>maven-plugin-testing-harness</code> dependency</h4>
<p>As usual, just add <code>maven-plugin-testing-harness</code> as following in your pom. Be sure to specify <code>test</code> scope.</p>
-<div class="source"><pre class="prettyprint linenums"><project>
+<div class="source">
+<pre><project>
...
<dependencies>
<dependency>
@@ -152,7 +100,8 @@
</project></pre></div></section><section>
<h4><a name="Create_a_MyMojoTest"></a>Create a <code>MyMojoTest</code></h4>
<p>Create a <code>MyMojoTest</code> (by convention) class in <code>src/test/java/org/apache/maven/plugin/my</code> directory. This class should extend <code>AbstractMojoTestCase</code> from <code>maven-plugin-testing-harness</code>.</p>
-<div class="source"><pre class="prettyprint linenums">import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+<div class="source">
+<pre>import org.apache.maven.plugin.testing.AbstractMojoTestCase;
public class MyMojoTest
extends AbstractMojoTestCase
@@ -198,7 +147,8 @@ public class MyMojoTest
<p><b>Note</b>: By convention, projects for unit testing your should be in the test resources directory.</p>
<p>Alternatively to extending <code>AbstractMojoTestCase</code> and when using Junit-4.10 ff., you may use a <code>MojoRule</code>, which just embeds an <code>AbstractMojoTestCase</code>.</p>
<p>When you do not need the functionality in every test method, you may use the <code>@WithoutMojo</code> annotation to skip rule executions.</p>
-<div class="source"><pre class="prettyprint linenums">
+<div class="source">
+<pre>
import org.apache.maven.plugin.testing.MojoRule;
import org.apache.maven.plugin.testing.WithoutMojo;
@@ -253,7 +203,8 @@ public class MyMojoTest
</pre></div></section><section>
<h4><a name="Configuring_project-to-test_pom"></a>Configuring <code>project-to-test</code> pom</h4>
<p>Just create a pom as usual. The names for groupId and artifactId don't really matter since this project will not be deployed.</p>
-<div class="source"><pre class="prettyprint linenums"><project xmlns="http://maven.apache.org/POM/4.0.0"
+<div class="source">
+<pre><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -287,28 +238,24 @@ public class MyMojoTest
</project></pre></div></section><section>
<h4><a name="Execute_test"></a>Execute test</h4>
<p>As usual, just call:</p>
-<div class="source"><pre class="prettyprint linenums">mvn test</pre></div></section></section><section>
+<div class="source">
+<pre>mvn test</pre></div></section></section><section>
<h3><a name="Resources"></a>Resources</h3>
<ol style="list-style-type: decimal">
<li><a class="externalLink" href="http://maven.apache.org/guides/plugin/guide-java-plugin-development.html">Guide to Developing Java Plugins</a></li>
<li><a class="externalLink" href="http://maven.apache.org/guides/mini/guide-configuring-plugins.html">Guide to Configuring Plugins</a></li></ol></section></section>
- </main>
</div>
</div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>© 2008–2023
-<a href="https://www.apache.org/">The Apache Software Foundation</a>
-</p>
- </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ Copyright © 2008–2024<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+. </div>
+ <div class="clear">
+ <hr/>
</div>
- </footer>
-<script>
- if(anchors) {
- anchors.add();
- }
-</script>
+ </div>
</body>
</html>
\ No newline at end of file
Added: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/collapsed.gif
==============================================================================
Binary file - no diff available.
Propchange: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/collapsed.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/expanded.gif
==============================================================================
Binary file - no diff available.
Propchange: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/expanded.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/external.png
==============================================================================
Binary file - no diff available.
Propchange: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/external.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/icon_error_sml.gif
==============================================================================
Binary files - no diff available.
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/icon_info_sml.gif
==============================================================================
Binary files - no diff available.
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/icon_success_sml.gif
==============================================================================
Binary files - no diff available.
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/icon_warning_sml.gif
==============================================================================
Binary files - no diff available.
Added: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/newwindow.png
==============================================================================
Binary file - no diff available.
Propchange: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/images/newwindow.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/index.html
==============================================================================
--- maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/index.html (original)
+++ maven/website/components/plugin-testing-archives/LATEST/maven-plugin-testing-harness/index.html Wed Jun 26 07:49:26 2024
@@ -1,135 +1,64 @@
<!DOCTYPE html>
-
-
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/index.apt at 2023-11-07
- | Rendered using Apache Maven Fluido Skin 1.11.2
+ | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/index.apt at 2024-06-26
+
+ | Rendered using Apache Maven Default Skin
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<meta name="author" content="Vincent Siveton" />
<meta name="date" content="February 2008" />
<title>Maven Plugin Testing Mechanism – Introduction</title>
- <link rel="stylesheet" href="./css/apache-maven-fluido-1.11.2.min.css" />
+ <link rel="stylesheet" href="./css/maven-base.css" />
+ <link rel="stylesheet" href="./css/maven-theme.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
- <script src="./js/apache-maven-fluido-1.11.2.min.js"></script>
-
- <!-- Matomo -->
- <script>
- var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
- (function() {
- var u="https://analytics.apache.org/";
- _paq.push(['setTrackerUrl', u+'/matomo.php']);
- _paq.push(['setSiteId', '3']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
</head>
- <body class="topBarDisabled">
- <div class="container-fluid">
- <header>
- <div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../images/apache-maven-project.png" alt="Maven Plugin Testing Mechanism" style="" /></a></div>
- <div class="pull-right"><a href="../../" id="bannerRight"><img src="../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
- <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
- <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
- <li><a href="../index.html" title="Maven Plugin Testing">Maven Plugin Testing</a><span class="divider">/</span></li>
- <li><a href="index.html" title="Maven Plugin Testing Mechanism">Maven Plugin Testing Mechanism</a><span class="divider">/</span></li>
- <li class="active ">Introduction <a href="https://github.com/apache/maven-plugin-testing/tree/maven-plugin-testing-4.0.0-alpha-2/maven-plugin-testing-harness/src/site/apt/index.apt"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-11-07</li>
- <li id="projectVersion" class="pull-right">Version: 4.0.0-alpha-2</li>
- </ul>
- </div>
- </header>
- <div class="row-fluid">
- <header id="leftColumn" class="span2">
- <nav class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
- <li class="active"><a><span class="none"></span>Introduction</a></li>
- <li><a href="getting-started/index.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
- <li><a href="apidocs/index.html" title="JavaDocs"><span class="none"></span>JavaDocs</a></li>
- <li><a href="xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li>
- <li><a href="faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
- <li class="nav-header">Examples</li>
- <li><a href="examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters"><span class="none"></span>Testing Complex Mojo Parameters</a></li>
- <li><a href="examples/multiproject.html" title="Testing Multiproject"><span class="none"></span>Testing Multiproject</a></li>
- <li><a href="examples/repositories.html" title="Testing Repositories"><span class="none"></span>Testing Repositories</a></li>
- <li><a href="examples/artifact.html" title="Testing Project Artifact"><span class="none"></span>Testing Project Artifact</a></li>
- <li class="nav-header">Project Documentation</li>
- <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-down"></span>Project Information</a>
- <ul class="nav nav-list">
- <li class="active"><a><span class="none"></span>About</a></li>
- <li><a href="summary.html" title="Summary"><span class="none"></span>Summary</a></li>
- <li><a href="dependency-info.html" title="Dependency Information"><span class="none"></span>Dependency Information</a></li>
- <li><a href="team.html" title="Team"><span class="none"></span>Team</a></li>
- <li><a href="scm.html" title="Source Code Management"><span class="none"></span>Source Code Management</a></li>
- <li><a href="issue-management.html" title="Issue Management"><span class="none"></span>Issue Management</a></li>
- <li><a href="mailing-lists.html" title="Mailing Lists"><span class="none"></span>Mailing Lists</a></li>
- <li><a href="dependency-management.html" title="Dependency Management"><span class="none"></span>Dependency Management</a></li>
- <li><a href="dependencies.html" title="Dependencies"><span class="none"></span>Dependencies</a></li>
- <li><a href="dependency-convergence.html" title="Dependency Convergence"><span class="none"></span>Dependency Convergence</a></li>
- <li><a href="ci-management.html" title="CI Management"><span class="none"></span>CI Management</a></li>
- <li><a href="plugin-management.html" title="Plugin Management"><span class="none"></span>Plugin Management</a></li>
- <li><a href="plugins.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="distribution-management.html" title="Distribution Management"><span class="none"></span>Distribution Management</a></li>
- </ul></li>
- <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
- <li class="nav-header">Maven Projects</li>
- <li><a href="../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
- <li><a href="../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li>
- <li><a href="../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li>
- <li><a href="../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
- <li><a href="../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
- <li><a href="../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
- <li><a href="" title=""><span class="icon-chevron-down"></span></a>
- <ul class="nav nav-list">
- <li><a href="../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
- <li><a href="../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
- <li><a href="../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
- <li><a href="../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li>
- <li><a href="../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
- <li><a href="../index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
- <li><a href="../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
- <li><a href="../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
- <li><a href="../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
- <li><a href="../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
- <li><a href="../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
- <li><a href="../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
- </ul></li>
- <li class="nav-header">ASF</li>
- <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
- <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
- <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li>
- <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
- <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
- </ul>
- </nav>
- <div class="well sidebar-nav">
- <div id="poweredBy">
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
-<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
- </div>
- </div>
- </header>
- <main id="bodyColumn" class="span10" >
+ <body class="composite">
+ <div id="banner">
+<div id="bannerLeft">Maven Plugin Testing Mechanism
+</div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+ <div class="xleft">
+ <span id="publishDate">Last Published: 2024-06-26</span>
+ | <span id="projectVersion">Version: 4.0.0-beta-2-SNAPSHOT</span>
+ </div>
+ <div class="xright"> </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+ <h5>Overview</h5>
+ <ul>
+ <li class="none"><strong>Introduction</strong></li>
+ <li class="none"><a href="getting-started/index.html" title="Getting Started">Getting Started</a></li>
+ <li class="none"><a href="apidocs/index.html" title="JavaDocs">JavaDocs</a></li>
+ <li class="none"><a href="xref/index.html" title="Source Xref">Source Xref</a></li>
+ <li class="none"><a href="faq.html" title="FAQ">FAQ</a></li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none"><a href="examples/complex-mojo-parameters.html" title="Testing Complex Mojo Parameters">Testing Complex Mojo Parameters</a></li>
+ <li class="none"><a href="examples/multiproject.html" title="Testing Multiproject">Testing Multiproject</a></li>
+ <li class="none"><a href="examples/repositories.html" title="Testing Repositories">Testing Repositories</a></li>
+ <li class="none"><a href="examples/artifact.html" title="Testing Project Artifact">Testing Project Artifact</a></li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+ </a>
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
<section>
<h2><a name="Maven_Plugin_Testing_Harness"></a>Maven Plugin Testing Harness</h2>
<p>The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojos, i.e. by pre-constructing the <a class="externalLink" href="http://plexus.codehaus.org">Plexus</a> components, providing stub objects for Maven functionality such as projects, and populating fields from an XML file that resembles the plugin configuration in the POM.</p>
@@ -141,23 +70,18 @@
<li><a href="./examples/multiproject.html">Testing Multiproject</a></li>
<li><a href="./examples/repositories.html">Testing Using Repositories</a></li>
<li><a href="./examples/artifact.html">Testing Project Artifact</a></li></ul></section></section>
- </main>
</div>
</div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>© 2008–2023
-<a href="https://www.apache.org/">The Apache Software Foundation</a>
-</p>
- </div>
- </div>
- </footer>
-<script>
- if(anchors) {
- anchors.add();
- }
-</script>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ Copyright © 2008–2024<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+. </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
</body>
</html>
\ No newline at end of file