:)
I don't know how the dependencies for those things look but since you don't use them in any way, maybe just load the desired java, have the (really easy to install) nextflow start script somewhere and run your stuff without messing with the packaged bits?