You need to run "mvn install" first.
Which directory do I need to be in to run this? Can this information be added to the README.txt file in the distribution? This isn't mentioned there.
I get a similar error when attempting to run mvn install from within one of the example directories:
MacBook:asyncdemo yeroc$ pwd
MacBook:asyncdemo yeroc$ mvn install
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project org.jboss.errai:errai-bus-demos-asyncdemo:1.2.2.Final (/Volumes/Macintosh HD/Users/yeroc/Downloads/errai-1.2.1/examples/asyncdemo/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find org.jboss.errai:errai-bus-demos:pom:1.2.2.Final in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 9, column 13 -> [Help 2]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
Thanks for your help.
Ah. Okay, I see what you mean. We are already aware there is a packaging problem with the zip that we're going to fix. I see now this is related to that.
In the meantime, you can just get the source version from git, which will work:
git clone https://github.com/errai/errai.git v1.2.2
Then, you can cd errai-bus-demos/asyncdemo/
Ok. I did as you suggested and now I'm able to run "mvn gwt:run" without errors but something's still not right. It does bring up the GWT dev mode window but when I launch the URL (http://127.0.0.1:8888/AsyncDemo.html?gwt.codesvr=127.0.0.1:9997) in my browser I'm getting a 404 error. There's one warning on the GWT console which may be relevant:
00:00:05.060 [WARN] Module declares 1 <servlet> declaration(s), but a valid 'web.xml' was not found at '/Volumes/Macintosh HD/Users/yeroc/Development/errai-v1.2.2/errai-bus-demos/asyncdemo/target/errai-bus-demos-asyncdemo-1.2.2-SNAPSHOT/WEB-INF/web.xml'
Indeed when I check in the WEB-INF there is no web.xml. Is that normal? Any idea what's wrong?
Can you try downloading the "Most Recent" again (not the "Nightly")? The problem should be fixed now. Be sure to do a "mvn clean install" before your "mvn gwt:run".
Thanks, the updated download appears to be working fine.