This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch elharo-patch-4 in repository https://gitbox.apache.org/repos/asf/maven-site.git
commit 036e5f5faaeaa3c1d831436f639a050213161bda Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Sun Nov 13 13:10:18 2022 +0000 Simplify page @michael-o --- content/apt/guides/mini/guide-attached-tests.apt | 36 ++++-------------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/content/apt/guides/mini/guide-attached-tests.apt b/content/apt/guides/mini/guide-attached-tests.apt index 07953e9e..8b4b720f 100644 --- a/content/apt/guides/mini/guide-attached-tests.apt +++ b/content/apt/guides/mini/guide-attached-tests.apt @@ -28,9 +28,9 @@ Guide to using attached tests - Many times you may want to reuse the tests that you have created for a project in another. For example if you have - written <<<foo-core>>> and it contains test code in the <<<$\{basedir\}/src/test/java>>> it would be useful to package - up those compiled tests in a JAR and deploy them for general reuse. To do this you would configure the + You can reuse the tests that you have created for one project in another. For example, suppose + <<<foo-core>>> contains test code in the <<<$\{basedir\}/src/test/java>>>. To package + up those compiled tests in a JAR and deploy them for general reuse, configure the <<<maven-jar-plugin>>> as follows: +----+ @@ -54,34 +54,10 @@ Guide to using attached tests </build> </project> -+----+ - -* Installing the attached test JAR - - In order to install the attached test JAR you simply use the standard <<<install>>> phase by executing - the following command: - -+----+ - -mvn install - -+----+ - -* Deploying the attached test JAR - - In order to deploy the attached test JAR you simply use the standard <<<deploy>>> phase by executing - the following command: - -+----+ - -mvn deploy - -+----+ - -* Using the attached test JAR +The attached test JAR can be installed and deployed like any other Maven artifact with - In order to use the attached test JAR that was created above you simply specify a dependency on the main - artifact with a specified type of <<<test-jar>>> and the <<<classifier>>>. +To use the attached test JAR, specify a dependency on the main +artifact with a specified type of <<<test-jar>>> and the <<<classifier>>>. +----+
