I have problems to run the project inside eclipse. I add this to the parent pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<wtpmanifest>true</wtpmanifest>
<wtpapplicationxml>true</wtpapplicationxml>
<manifest>${basedir}/src/main/resources/META-INF/MANIFEST.MF
</manifest>
<projectNameTemplate>
[artifactId]
</projectNameTemplate>
<wtpversion>2.0</wtpversion>
<workspace>${workspace.path}</workspace>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
So, the project is added as a dependency in the eclipse. With this I can run the client module, I change in shared project, refresh the browser and the changes happens. So I can remove in client module the part where use build-helper-maven-plugin to add sources. I don't know why, but in eclipse doesn't found this sources folder.
The problem that I facing now is, how I can run the server code too inside eclipse? I want to click on Run -> Web application and run in dev mode all modules to test server code too.
If run server module fails because don't found entry module:
Missing required argument 'module[s]'
Google Web Toolkit 2.4.0
DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s]
And if run client module fail because:
[WARN] 404 - POST /app/greet (127.0.0.1) 1395 bytes
And in my server module has:
<servlet-mapping>
<servlet-name>greetServlet</servlet-name>
<url-pattern>/app/greet</url-pattern>
</servlet-mapping>
Can someone help me to run inside Eclipse?
Thanks,
Juan
2012/6/1 Juan Pablo Gardella <gardellajuanpablo@gmail.com>
Thanks Thomas, Alexandre!
I try with -Dmaven.test.skip but run the test, I didn't know how skip, so I delete the tests :(. Thanks for the tip -Darchetype.test.skip.
After that, I can install and use it. Thanks for both!!
Juan2012/6/1 Thomas Broyer <t.broyer@gmail.com>
On Friday, June 1, 2012 9:09:43 AM UTC+2, Alexandre Ardhuin wrote:Hi Juan,
Was you triing with the latest version ?
Could you try to update "gwt-maven-archetypes" ( in gwt-maven-archetypes folder : git pull ) and reinstall the plugin ( mvn clean install ) ?
The latest version works fine for me.
Same here.Alternately, you could just skip tests: "mvn clean install -Darchetype.test.skip".archetype:integration-test is very sensible, and the parent POM, being generated/modified by archetype:generate, will *never* have an EOL at EOF. Given that my editors (I use mostly Vim on that project) insist in inserting such an EOL (which is fine the other 99.9% of the time), I have to revert them before launching the tests.I suppose you could have a similar issue depending on your Git configuration used when cloning the repo (core.eol, core.safecrlf, core.autocrlf).To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ty9V4cU780EJ.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment