My company uses Nexus as its internal repository, and I'm trying to write a Groovy script that will pull dependencies from it. The issue though is that this repository is password protected. What does my GrapeConfig.xml file have to look like to make this work? Here is what I currently have.
<ivysettings>
<settings defaultResolver="downloadGrapes"/>
<credentials host="http://prdRepo:18900"
realm="prdRepo"
username="n"
passwd="n"
/>
<resolvers>
<chain name="downloadGrapes">
<filesystem name="cachedGrapes">
<ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
<artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
</filesystem>
<ibiblio name="blahblah" root="http://http://prdRepo:18900/nexus/foo/bar/blahblah m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>
And then when I try to install via the command line with
grape -d install com.microsoft msutil 2000
Which resides in that repository, it gives me a 401 error, unauthaorized URL. Could there be something syntactically wrong with my GrapeConfig?