Dennis Hoer Dennis Hoer - 6 months ago 113
Groovy Question

Execute Nexus 3 embedded groovy

I want use Nexus 3's embedded groovy instead of installing groovy package that installs openjdk java. Is there an easy way to do this?

I want to run this command using the embedded groovy:

groovy addUpdateScript.groovy -u "admin" -p "admin123" -n "raw" -f "rawRepositories.groovy" -h "http://localhost:8081"

This is to add groovy script support to Nexus3 Chef cookbook:


The groovy that is embedded in the Nexus Repository Manager is purely available on the classpath of the application. It will be easier to either install a client side groovy system or just upload the groovy script with a shell script that uses simple bash commands. Examples for that are also part of the script examples. You can find them in the examples repo at

I also put together a blog post and video demos of all this at

I hope that helps.