Я использую Eclipse Indigo на Win XP, Maven 3.0.3 и GWT 2.4. Я создал проект GWT-Maven и импортировал его в Eclipse, следуя приведенным здесь инструкциям - http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html. После того, как я добавил дополнительную исходную папку (target / генерируемый-источник / gwt, шаг, не упомянутый в инструкциях), я щелкнув правой кнопкой мыши по моему проекту, выбрал «Запуск от имени» -> «Веб-приложение» и получил эту ошибку ...
Loading modules
com.myco.clearing.product.ProductPlus
[ERROR] Unable to find 'com/myco/clearing/product/ProductPlus.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
У вас есть идеи, как я могу настроить Eclipse для решения этой проблемы? Я не сделал ничего, кроме упомянутых мною шагов.
Файл .gwt.xml создается архетипом и находится в каталоге src / main / resources / war. Его содержимое
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='ProductPlus'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<!-- We need the JUnit module in the main module, -->
<!-- otherwise eclipse complains (Google plugin bug?) -->
<inherits name='com.google.gwt.junit.JUnit' />
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard' />
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='war.client.ProductPlus' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
</module>
Спасибо, - Дейв