You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/02/08 18:11:03 UTC

[GitHub] [maven-dependency-plugin] rmannibucau commented on pull request #188: adding sort option for build-classpath

rmannibucau commented on pull request #188:
URL: https://github.com/apache/maven-dependency-plugin/pull/188#issuecomment-1032913546


   @michael-o well you should consider these points:
   
   1. if not sorted then nothing is reproducible in java world so the build-classpath mojo requires a postprocessor or replacement for all consumer of the output (downstream mojo, custom runtime code etc) - including a `java -cp @<cp from build-classpath> MyMain` kind of commands or jib based builds or CDS archive build ...
   2. tomcat has solutions for that - mainly custom webapploader/classloader or OS specific stuff - even if tomcat itself does not want to do the integration out of the box for the same reason so even if the project rejects the features some users rely on it
   
   I'm not 100% sure if we need more flexibility on the ordering but not sorting the output is quite useless for any pipeline relying on the classpath dump (it is fine for other use cases) so hope we can find a way to sort somehow whatever the order is.
   
   Hope it makes sense.


-- 
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: issues-unsubscribe@maven.apache.org

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