Hello
I used smartgwt-starter (Maven) to try out some of the examples. The original HelloWorld (with IButton) example did build and compile fine.
I proceeded to add some of the SmartGWT showcase widgets to the starter application(ButtonAppearanceSample) and added all the dependencies.
Doing so causes compilation error running gwt:gwt Here’s portion of the console output.
C:\Dev\smartgwt-starter\src\main\java\com\hiva\sample\common\ShowcasePanel.java:[151,32] for-each loops are not supported in -source 1.3
(use -source 5 or higher to enable for-each loops)
for (String dataURL : dataURLs) {
That was my question. Like I mentioned I am using JDK 1.6 so I’m wondering where -source 1.3 is coming from. I have not made any major changes to smartgwt-starter only packaging and adding couple Buttons from the sample to try out. pom.xml and the rest are intact.
This is an issue with your build environment. I’m now sure what maven smartgwt-starter you’re referring to but please try to troubleshoot the issue yourself by running your maven build with the -X argument which will turn on verbose logging. Then look for the line where the java compiler is being invoked. Without any details its going to be hard to help.
Let’s start fresh because I am running to different problems using this starter. I am interested in maven build for smartgwt and this was the only option I could find. The simple Hellow World IButton in this app works just fine after maven finds all dependencies. The smartgwt dependecy portion of pom.xml reads:
Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects…
[INFO] ----------------------------------------------------------------------------
[INFO] Building GwtStarter Maven Webapp
[INFO] task-segment: [com.totsp.gwt:maven-googlewebtoolkit2-plugin:2.0-beta26:gwt]
[INFO] ----------------------------------------------------------------------------
[INFO] Preparing gwt:gwt
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/smartgwt/smartgwt/1.0b1/smartgwt-1.0b1.pom
Downloading: http://www.gwt-ext.com/maven2//com/smartgwt/smartgwt/1.0b1/smartgwt-1.0b1.pom
Downloading: https://gwtstarter.svn.sourceforge.net/svnroot/gwtstarter/trunk/m2repo//com/smartgwt/smartgwt/1.0b1/smartgwt-1.0b1.pom
Downloading: http://repo1.maven.org/maven2/com/smartgwt/smartgwt/1.0b1/smartgwt-1.0b1.pom
[INFO] [gwt:mergewebxml {execution: default}]
[INFO] copy source web.xml - C:\Dev\smartgwt-starter\src\main\webapp\WEB-INF\web.xml to build dir (source web.xml required if mergewebxml execution is enabled)
[INFO] establishing classpath list (buildClaspathList - scope = COMPILE)
[INFO] google.webtoolkit.home (gwtHome) set, using it for GWT dependencies - C:\Tools\gwt-windows-1.5.3
[INFO] Module file: C:\Dev\smartgwt-starter\src\main\java
et\sf\gwtstarter\sample\ui\gwt\Application.gwt.xml
[WARNING] No servlets found.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to C:\Dev\smartgwt-starter arget\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\Dev\smartgwt-starter\src\main\java
et\sf\gwtstarter\sample\ui\gwt\client\Application.java:[35,17] cannot find symbol
symbol : method setShowRollOver(boolean)
location: class com.smartgwt.client.widgets.ImgButton
C:\Dev\smartgwt-starter\src\main\java
et\sf\gwtstarter\sample\ui\gwt\client\Application.java:[36,17] cannot find symbol
symbol : method setShowDown(boolean)
location: class com.smartgwt.client.widgets.ImgButton
The app is pretty small, I’d be more than happy to send it to you but I’m sure you can try out the maven starter and see it for yourself
I’m running this in a maven build no problem. Post your whole pom and I can probably help. One guess is your repositories. I use the SC repo and the GWT-MAVEN repo: