You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2022/11/13 20:08:22 UTC
[maven-site] branch master updated: Simplify page (#335)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
The following commit(s) were added to refs/heads/master by this push:
new a2ce0a49 Simplify page (#335)
a2ce0a49 is described below
commit a2ce0a49617778503c545ab7c4018f8de62ff997
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Sun Nov 13 15:08:15 2022 -0500
Simplify page (#335)
@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>>>.
+----+