My apologies for not providing enough information. I am attaching my pom at the time I posted this ticket (pom-original.xml).
The project was generated using the archetype instructions here: http://www.grails.org/Maven+Integration
It seems that the version was 1.1-SNAPSHOT according to the pom. I don't see 1.1-beta1 mentioned anywhere in the pom. Should I be looking elsewhere?
What I meant by jetty being unaware of the project context was that I was getting an HTTP 503 when I navigated to the app after running 'mvn grails:run-app'. That is, Jetty was running by did not recognize my app as deployed.
I added the dependencies that you posted and the app now does indeed deploy. I see the Grails Welcome screen when I start Jetty.
Unfortunately, some changes seem to have been made to the archetype since the last time I posted. I created a new app today (see next attached pom, pom-no-domain-class.xml). The 'mvn grails:create-domain-class' call fails with the following:
GPSs-MacBook-Pro:gps-test gstathis$ mvn grails:create-domain-class
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'grails'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - org.gps:gps-test:war:1.0-SNAPSHOT
[INFO] task-segment: [grails:create-domain-class] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[WARNING] Attempting to build MavenProject instance for Artifact (org.grails:grails-maven-plugin:0.4-20081212.162203-7) of type: maven-plugin; constructing POM artifact instead.
[INFO] [grails:create-domain-class]
Running pre-compiled script
Environment set to development
null name not specified. Please enter:
Foo
Unable to load script 'CreateDomainClass' (error: java.io.FileNotFoundException: class path resource [src/grails/templates/artifacts/null.groovy] cannot be opened because it does not exist)
Run 'grails help' for a complete list of available scripts.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Grails returned non-zero value.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Mon Dec 15 09:21:33 EST 2008
[INFO] Final Memory: 20M/1016M
[INFO] ------------------------------------------------------------------------
Notice the path src/grails/templates/artifacts/null.groovy
I can create a new issue in Jira for this one if it helps you track it better. The Jetty issue is resolved, as log as the artifact contains the dependencies you mentioned. Hope this helps.
Best Regards.
Tested in both OS X 10.5.5 and Win XP Pro. Steps to reproduce:
Jetty is running but is unaware of the project context.
- Use grails-maven-archetype to create new project
- CD into new project
- mvn grails:create-domain-class Foo
- mvn grails:generate-all
- mvn clean package
- mvn grails:run
Jetty is running but is unaware of the project context.