grails uninstall-plugin maven-publisher
grails install-plugin releaseAll seemed ok. It installed release plugin 1.0.0.RC3. There I tried this:
grails maven-installIt gave me this NPE bug:
java.lang.NullPointerException: Cannot get property 'file' on null objectThankfully this bug was already logged and a patch attached too. See http://jira.grails.org/browse/GPRELEASE-23 for more details. Anyway, I decided to go back to the old maven-publisher for now. So I did:
grails uninstall-plugin release
grails install-plugin maven-publisherNow, I was trying to maven-install again, and I get this error:
[...] Dependencies resolved in 2207ms. Running script /home/tlee/.grails/1.3.7/projects/myhumbleproject/plugins/maven-publisher-0.8.1/scripts/MavenInstall.groovy Error executing script MavenInstall: No such property: releasePluginDir for class: MavenInstall groovy.lang.MissingPropertyException: No such property: releasePluginDir for class: MavenInstall at MavenInstall.run(MavenInstall:17) at MavenInstall$run.call(Unknown Source) at gant.Gant.prepareTargets(Gant.groovy:606) Error executing script MavenInstall: No such property: releasePluginDir for class: MavenInstallI tried this:
grails warIt asked if I wanted to uninstall svn-1.0.0.M1 which was installed by release plugin before. I said yes, and grails war script continues and builds the war file. I run:
grails maven-installand I again get the same error as before. I tried removing entire $HOME/.ivy2/cache folder, and I still got the same error. And then, I tried removing entire $HOME/.grails/1.3.7/projects/myhumbleproject/ folder. Then:
grails maven-installresulted in grails asking me back for clarification.
Running pre-compiled script Script 'MavenInstall' not found, did you mean:
5) Init Please make a selection or enter Q to quit: QHa! Ok. I ran:
grails maven-installFinally, it worked! It seems a compiled script remains even after uninstalling the release plugin.