Hi,
I have a lot of problems with dependencies, maybe it can be a permissions problem in the dspace build folder.
The solution to me for build Mirage2 theme, was to add in pom.xml this:
<jruby.version>9.1.17.0 </jruby.version>
And then run sudo mvn clean package -Dmirage2.on = true