Skip to content

Commit dcaa544

Browse files
authored
Update maven-test-reuse.asciidoc
1 parent aed95f6 commit dcaa544

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

documentation/build/maven-test-reuse.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ This slows down the coding experience in your IDE and since this is not tested a
7676
* **Overhead**: +
7777
Typically you add the test jar generation to your top-level POM and therefore you build test-jar artifacts for all your modules that all get created, installed, and deployed.
7878
This can be avoided by only adding this maven config in dedicated POMs where actually required but this again causes duplications (violates DRY).
79+
* **Broken Build**: +
80+
As a maven user, I would expect that I can run `mvn compile` or `mvn test` or `mvn package` to build the project without installing it to the local repository.
81+
However, when using `test-jar` dependencies this will stop working and you get errors like `Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact «groupId»:«artifactId»:jar:tests:«version»`.
7982

8083
== Test Modules
8184

0 commit comments

Comments
 (0)