gemmellr commented on code in PR #5289:
URL: https://github.com/apache/activemq-artemis/pull/5289#discussion_r1799337518


##########
artemis-hawtio/artemis-console/pom.xml:
##########
@@ -76,9 +76,14 @@
         <artifactId>maven-war-plugin</artifactId>
         <configuration>
           <useCache>true</useCache>
+          <!-- exclude these jars as they are already shipped with the broker 
-->
           <packagingExcludes>
             **/lib/slf4j*.jar,
-            **/lib/log4j*.jar
+            **/lib/log4j*.jar,
+            **/lib/guava*.jar,
+            **/lib/commons-io*.jar,
+            **/lib/commons-logging*.jar,
+            **/lib/failureaccess*.jar

Review Comment:
   The comment added above this is "\<!-- exclude these jars as they are 
already shipped with the broker --\>"
   
   I think we need to be very clear what is meant by 'shipped with the broker' 
here, and in turn what it is is being expected/required that a user might need 
to provide to make the resulting war usable in their situation.
   
   The broker `artemis-server` module does not depend on or provide guava or 
commons-io, and neither does the `artemis-web` module this war is typically 
used via. The assembly distribution does include those things, but only due to 
_other_ included bits bringing them in, not the broker. So if we completely 
remove those deps, they wont in fact be provided necessarily, i.e this actually 
is likely to actually break non-assembly use cases.
   
   Previously we have entirely stripped some logging deps, but the _required_ 
API dep was certain to provided, either by the modules the war is most likely 
to be used with, or by the application itself (as is a logging implementation 
unless they have none configured). That isnt necessarily true for the other 
deps like these.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to