I have a similar issue here, there seems to be a problem with the
hibernate plugin and Windows 7.
When upgrading existing project on Windows 7 (64) + Java JDK 6+7 (most
recent):
D:\workspaces\templib\mf\myProjectEE>grails upgrade --verbose
Base Directory: D:\workspaces\templib\mf\myProjectEE
| Configuring classpath
| NOTE: Your application currently expects grails version [2.1.0], this
target will upgrade it to Grails 2.2.0.RC1
>
WARNING: This target will upgrade an older Grails application to
2.2.0.RC1.
Are you sure you want to continue?
[y,n] y
y
[delete] Deleting directory
C:\Users\fatzopilot\.grails\2.2.0.RC1\projects\myProject\resources
[copy] Copying 1 file to
D:\workspaces\templib\mf\myProjectEE\web-app\WEB-INF
[copy] Copying 1 file to
D:\workspaces\templib\mf\myProjectEE\web-app\WEB-INF
[copy] Copying 4 files to
D:\workspaces\templib\mf\myProjectEE\web-app\WEB-INF\tld
| Resolving plugin hibernate. Please wait...
> You currently already have a version of the plugin installed
> [myProjectEE]. Do you want to update to [hibernate-2.2.0.RC1]? [y,n] y
[delete] Deleting directory D:\workspaces\templib\mf\myProjectEE
| Error Error installing plugin: Unable to delete file
D:\workspaces\templib\mf\myProjectEE\lib\asm-3.1.jar
So it assumes the project dir to be the hibernate plugin dir an deletes
the project folder until it cannot proceed... :(
A similar thing happens when upgrading a brand new 2.1.1. project:
This is done wiht Grails 2.1.1 in the path
D:\workspaces\templib\mf>grails create-app test
| Created Grails Application at D:\workspaces\templib\mf/test
D:\workspaces\templib\mf>cd test
This is done with Grails 2.2.0.RC1 in the path
D:\workspaces\templib\mf\test>grails upgrade --verbose
Base Directory: D:\workspaces\templib\mf\test
| NOTE: Your application currently expects grails version [2.1.1], this
target will upgrade it to Grails 2.2.0.RC1
>
WARNING: This target will upgrade an older Grails application to
2.2.0.RC1.
Are you sure you want to continue?
[y,n] y
y
[delete] Deleting directory
C:\Users\fatzopilot\.grails\2.2.0.RC1\projects\test\resources
[copy] Copying 1 file to D:\workspaces\templib\mf\test\web-app\WEB-INF
[copy] Copying 1 file to D:\workspaces\templib\mf\test\web-app\WEB-INF
[copy] Copying 4 files to
D:\workspaces\templib\mf\test\web-app\WEB-INF\tld
| Installing zip hibernate-2.2.0.RC1.zip....
| Installing zip hibernate-2.2.0.RC1.zip.....
[unzip] Expanding:
C:\Users\fatzopilot\.grails\ivy-cache\org.grails.plugins\hibernate\zips\hibernate-2.2.0.RC1.zip
into C:\Users\fatzopilot\.grails\2.2.0.RC1\projects
| Downloading:
C:\Progra~1\grails\current\lib\javax.validation\validation-api\jars\validation-api-1.0.0.GA.jar
| Error Error installing plugin: null
[delete] Deleting directory
C:\Users\fatzopilot\.grails\2.2.0.RC1\projects\test\plugins\hibernate-2.2.0.RC1
| Downloading:
C:\Progra~1\grails\current\lib\javax.validation\validation-api\jars\validation-api-1.0.0.GA.jar.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email