Re: Classpath entries not considered when running GWT module from Eclipse

51 views
Skip to first unread message

Venkatkalyan Solasa

unread,
Jul 26, 2012, 12:37:29 AM7/26/12
to google-we...@googlegroups.com
hi any help

On Wednesday, 25 July 2012 19:41:40 UTC+5:30, Venkatkalyan Solasa wrote:
I am using maven-gwt plugin to convert my existing ant GWT project to maven.

1. Added the gwt maven entry as below and ran mvn eclipse:clean eclipse:eclipse, but still GWT SDK is not getting added to the generated eclipse project
          <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>2.4.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Work Around followed : add it directly from the Project --> Google --> WebToolKit

2. After doing work around, build is fine and now able to run the web application. But Spring-tx jar which is present in the buildpath is not copied/considered while launching the application using jetty and hence throwing errors validating the application-context xml file. Infact none of the jars in java build path(dependencies defined in pom.xml) are being picked for runtime by Eclipse when launching in Jetty. But when running mvn clean install, all jars are copied to the web-inf/lib directory properly

Can you please help on both the issues

Juan Pablo Gardella

unread,
Jul 26, 2012, 12:44:39 AM7/26/12
to google-we...@googlegroups.com


2012/7/26 Venkatkalyan Solasa <solasa...@gmail.com>

hi any help

On Wednesday, 25 July 2012 19:41:40 UTC+5:30, Venkatkalyan Solasa wrote:
I am using maven-gwt plugin to convert my existing ant GWT project to maven.

1. Added the gwt maven entry as below and ran mvn eclipse:clean eclipse:eclipse, but still GWT SDK is not getting added to the generated eclipse project
          <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>2.4.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Work Around followed : add it directly from the Project --> Google --> WebToolKit

Yes, this is the way. At the moment I don't know that is automatically added.
 

2. After doing work around, build is fine and now able to run the web application. But Spring-tx jar which is present in the buildpath is not copied/considered while launching the application using jetty and hence throwing errors validating the application-context xml file. Infact none of the jars in java build path(dependencies defined in pom.xml) are being picked for runtime by Eclipse when launching in Jetty. But when running mvn clean install, all jars are copied to the web-inf/lib directory properly

Can you please help on both the issues

Do mvn eclipse:clean and remove .settings/ folder. Then import the project using  Import as a Exists Maven Project (this is an option that appears if you have sonatype maven plugin, provided out of in Eclipse Juno).-
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BO7AIvpHO5oJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages