Vaadin 7 - compile widgetset with maven

Hi,

is there some kind of documentation how to compile vaadin 7 widgetsets with maven?

Best,
Florian

Hi,

take a look at the creating Vaadin 7 project with maven: https://vaadin.com/wiki/-/wiki/Main/Creating%20a%20Maven%20project

You need to have Vaadin Maven Plugin in your dependency resolution. GroupId is com.vaadin and artifact id vaadin-maven-plugin. You also want to have vaadin-client-compiler available which contains the actual gwt compiler.

use Maven goal vaadin:compile to compile the widgetset. One good example of Maven pom that has proper configuration is for example with Vornitologist application created by Matti Tahvonen: http://dev.vaadin.com/browser/svn/branches/vornitologist3/pom.xml

Thanks a lot!

The build works so far now in combination with OSGi bundle packaging. Thanks for your help.

But i got another question. Where can i find a documentation about the available properties for the vaadin build?
Like webappDirectory, hostedWebapp,…

<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>7.0-SNAPSHOT</version>
<configuration>
		<extraJvmArgs>-Xmx1024M -Xss1024k</extraJvmArgs>
		<!-- <runTarget>mobilemail</runTarget> -->
		<!-- We are doing "inplace" but into subdir VAADIN/widgetsets. This 
				way compatible with Vaadin eclipse plugin. -->
		<webappDirectory>${basedir}/resources/VAADIN/widgetsets
		</webappDirectory>
		<hostedWebapp>${basedir}/resources/VAADIN/widgetsets
		</hostedWebapp>
		<noServer>true</noServer>

For interestes about the build:

https://github.com/lunifera/lunifera-examples/tree/master/runtime-web/org.lunifera.examples.runtime.web.vaadin.standalone.widgetset

Thanks,
Florian

Practically all of them work identically with those of the GWT plug-in - see
here
.

This configuration works pretty well for me but YMMV:

<plugin>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-maven-plugin</artifactId>
        <version>${vaadin.version}</version>
        <configuration>
        <strict>true</strict>
        <force>true</force>
        <!-- Enable during development to speed compiling. --> 
        <!-- <draftCompile>true</draftCompile>
        <style>DETAILED</style> -->
        <!--<userAgents>ie8</userAgents>--> 
        <!-- <userAgents>gecko1_8</userAgents> -->
        <!-- End development options -->
        <webappDirectory>src/main/webapp/VAADIN/widgetsets</webappDirectory>
          <modules>
            <module>org.somepackage.MyWidgetset</module>            
          </modules>
        </configuration>
      </plugin>

Then run “mvn vaadin:compile”.

-mike

hi dear,
i am using maven with spring boot ,i just install vaadin7 connect with spring.
Issue:
1)Gwt.xml file not created.
2)i just add chart add-ons in pom.xml , i update maven and click wigdetset icon in eclipse ,its show error.
any one can help to solve this issue.
Error:
[ERROR]
No plugin found for prefix ‘vaadin’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
available from the repositories [local (/home/e0000079/.m2/repository), spring-snapshots (https://repo.spring.io/snapshot), spring-milestones (https://repo.spring.io/milestone), central (https://repo.maven.apache.org/maven2)]
→ [Help 1]

[ERROR]
To see the full stack trace of the errors, re-run Maven with the -e switch.

Thanks Henri! The
http://mojo.codehaus.org/gwt-maven-plugin/
link is dead; the new location is
https://gwt-maven-plugin.github.io/gwt-maven-plugin/plugin-info.html