Hi to everyone
First of all i'm pretty new to maven, i really started to read about
it some days ago, so maybe the error i get is simple incorrect use of
maven
I'm tryng to use this tutorial
http://shinetech.com/pages/viewpage.action?pageId=1396
to understand gwt+spring+maven
but i get error...
First of all i didn't understand extacly what i have to do to set
correct use of gwt-maven
the tutorial say:
Once installed, we need to enable Maven for GWT. GWT support for Maven
is still pretty much in its infancy, so the best we can do is follow
the manual setup procedures from the Maven GWT Project. This requires
a separate download of the GWT Toolkit outside of Maven. However, this
is still relatively straightforward to do:
1. Download the GWT Toolkit and install it. This is usually as
simple as unzipping it. On a Mac, for example, you might unzip it to /
Applications/java/gwt-mac-1.4.61
2. Add a profile to your Maven settings.xml file (if you are using
the default local repository location, this file will be under your
home directory at .m2/settings.xml) and point the profile to where you
installed the toolkit. It'll end up looking something like this:
<settings>
<profiles>
<profile>
<id>gwt-1.4.61</id>
<properties>
<google.webtoolkit.home>/Applications/java/gwt-mac-1.4.61</
google.webtoolkit.home>
<!-- XstartOnFirstThread needed only on the mac -->
<google.webtoolkit.extrajvmargs>-XstartOnFirstThread</
google.webtoolkit.extrajvmargs>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>gwt-1.4.61</activeProfile>
</activeProfiles>
</settings>
I alredy have gwt on my pc
all i have to do is put the code above on setting.xml on ".m2"
directory?
and what about gwt-maven plugin? where i have to put it?
otherwise, i continued the tutorial... everything it seams to work
I'd checkout
http://shine-reference.googlecode.com/svn/trunk/shine-reference
and that's worked
i did mvn source:jar install and that's worked
i did mvn jetty:run-war and it seams to work... i don't know exactly,
if i use this code, maven it start to work, download something,
compile something and sayd me
[INFO] started Jetty Server
[INFO] Started scanner an interval of 60 seconds
and the cmd it stop here...
if i go to
http://localhost:8089/Shine-Spring-Sample (not
http://localhost:8080/Shine-Spring-Sample as tutorial say) i get a
page with a logo (wthout nothing more)
but when i try
mvn gwt:gwt
i get build error
[ERROR] build error
[INFO] unable to merge web.xml
embedded error: unknown protocol: c
can someone helpme?