Upgrading to grails 1.1

Internationalized messages are not showing properly (RC1)

There's an issue at jira: GRAILS-4090. Already corrected on RC2

/test/unit/**/*Test.java files are ignored

There's also an issue at jira: GRAILS-4099. Please, also vote for it!!!

Integration tests can't see unit tests

Running tests of type 'integration'
  [groovyc] Compiling 1 source file to /home/oliver/tmp/deleteme/my/target/test-classes/integration
  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /home/oliver/tmp/deleteme/my/test/integration/AuthorItTests.groovy: 14: unable to resolve class AuthorTests 
  [groovyc]  @ line 14, column 16.
  [groovyc]        assertNotNull(new AuthorTests())
  [groovyc]                   ^
  [groovyc] 
  [groovyc] 1 error
Compilation Error: Compilation Failed
Error running integration tests: java.lang.ClassNotFoundException: AuthorItTests
java.lang.ClassNotFoundException: AuthorItTests

This has been reported at GRAILS-4168. Vote for it!!!

Integration tests should use a plural suffix (*Tests.groovy)

Only tests using *Tests suffix are detected to be run. The solution is to rename your integration classes from *Test to *Tests.

Packaged integration tests don't have acces to domain classes

Integration tests located into a package won't compile if they are referencing domain classes.

This has been reported at GRAILS-4168. Vote for it!!!

war:war fails

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'war'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Callcenter web
[INFO]    task-segment: [war:war]
[INFO] ------------------------------------------------------------------------
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[callcenter] in [/home/oliver/prog/groovy/factory/callcenter/target/callcenter-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in[180 msecs]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error assembling WAR: Deployment descriptor: /home/oliver/prog/groovy/factory/callcenter/target/callcenter-0.0.1-SNAPSHOT/WEB-INF/web.xml does not exist.

This is caused because the grails maven plugin requires an empty src/main/webapp/WEB-INF/web.xml file. I solved the issue this way:

$ mkdir src/main/webapp/WEB-INF -p
$ touch src/main/webapp/WEB-INF/web.xml
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License