How to create add-on jar with Maven?

The Vaadin Addon spec ( says you can create the Vaadin add-on jar with several tools like: Eclipse, Ant, Maven.

I want to publish an update to an addon but I’ve stopped using Eclipse. How do you do it with Maven?


There is an archetype called vaadin-archetype-widget that should be a good example. That has a separate project for demo/test, but I like to keep tests in the same project, but in test directory.
Example project
in github.

When updating existing add-on, you should make sure the Implementation-Title jar manifest entry matches with the previous.