Clean task on Maven

Hello all,

The clean task on the maven project for vaadin 7 also builds the widgetset which takes like 10 minutes! Is there any task on the pom that only clean the classes and not the widgetset?

Regards

Hi Bruno,

You can configure the maven-clean-plugin to exclude the widgetset files. See
this maven-clean-plugin example
for how to exclude files.

After excluding the widgetset, you can use mvn vaadin:clean to clean the widgetset and vaadin:compile to build it.

You might also want to consider moving the vaadin-maven-plugin to the pluginManagement section, which causes it to never be automatically run, but only when you perform the mvn vaadin:compile command.

HTH,
/Jonatan

I have a sample pom.xml file for proper Maven/Vaadin compilation:
https://vaadin.com/forum/-/message_boards/view_message/2493837

it works fine for Vaadin 6.8 - I don’t know if you’re still on Vaadin 6 or switched to 7. (I’m having problems with GWT compilation in 7)

You should remove the gwt-maven-plugin as John suggests in that thread. vaadin-maven-plugin is a complete replacement for gwt-maven-plugin and will always have the correct dependencies as long as you use the same version of the vaadin-maven-plugin as the framework (e.g. 7.0.0).

Compilation is then performed with mvn vaadin:compile instead of mvn gwt:compile

HTH,
/Jonatan