<div style=""><div><blockquote type="cite"><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">The problem is that most Scala packages are built using sbt or mill, and nothing you can do (to my knowledge) will make sbt or mill ignore maven and use .deb installed libraries.</span></p>
<br><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">Likewise with any scala-cli scripts.</span></p>
<br><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">So unless you can solve the centralized cache problem and force all build systems to use it you are not going to be able to do it your way.</span></p></blockquote><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br></p><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">sbt, scala-cli can be forced to ignore maven central and resolve everything from one local repository, offline with Dsbt.override.build.repos=true, and adding a repositories file</span><br><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">e.g.:</span><br><br><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;"> [repositories]</span><br><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">    debian: file:///usr/share/maven-repo</span><br><br><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">What I can see from your point is the cost: each application still needs its whole dependency tree packaged at compatible versions,  but still having the compiler and core libraries are a finite job and the foundation for the rest.</span><br><br><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">I might be missing something though,  let me know if you anything wrong.</span><br><br><span style="font-family: Arial, sans-serif; font-size: 14px; line-height: normal; font-weight: 400;">Juan</span></div></div>