This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git

commit 6aeaa4ca3216dc491bcb231459b0de6fcba8b31c
Author: James Bognar <[email protected]>
AuthorDate: Fri Jul 17 12:56:18 2026 -0400

    fix juneau-distrib dependency resolution under `mvn clean test` — depend on 
sibling main JARs instead of the package-only `zip:bin` assembly artifacts 
(keeps the reactor-ordering edge that prevents the MDEP-187 race; 
`dependency:copy` still fetches the zip:bin by coordinate at `package`). 
Regression from TODO-252.
    
    Co-authored-by: Cursor <[email protected]>
---
 juneau-distrib/pom.xml | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/juneau-distrib/pom.xml b/juneau-distrib/pom.xml
index 455dffcc5a..6b60075f7d 100644
--- a/juneau-distrib/pom.xml
+++ b/juneau-distrib/pom.xml
@@ -261,21 +261,25 @@
                        <version>${project.version}</version>
                        <scope>provided</scope>
                </dependency>
-               <!-- These two are copied only as their assembly-produced 'bin' 
zip; match that exact artifact. -->
+               <!--
+                       These two are copied only as their assembly-produced 
'bin' zip (see the dependency:copy
+                       artifactItems below).  Do NOT declare the zip:bin 
artifact here: it is attached during the
+                       source module's 'package' phase, so a 'mvn test' 
reactor run (which stops before 'package')
+                       cannot resolve it and the build fails at 
dependency-resolution time.  Depending on the plain
+                       main jar instead still gives the reactor the 
module-ordering edge (forcing these modules to
+                       build, and thus package their bin zips, before 
juneau-distrib) while remaining resolvable
+                       during 'test'.  The dependency:copy execution fetches 
the zip:bin by coordinate at 'package'.
+               -->
                <dependency>
                        <groupId>org.apache.juneau</groupId>
                        <artifactId>juneau-examples-core</artifactId>
                        <version>${project.version}</version>
-                       <classifier>bin</classifier>
-                       <type>zip</type>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>org.apache.juneau</groupId>
                        <artifactId>juneau-petstore-jetty</artifactId>
                        <version>${project.version}</version>
-                       <classifier>bin</classifier>
-                       <type>zip</type>
                        <scope>provided</scope>
                </dependency>
        </dependencies>

Reply via email to