Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
book-of-vaadin.pdf
Скачиваний:
88
Добавлен:
24.03.2015
Размер:
13.43 Mб
Скачать

Using Vaadin Add-ons

IvyIDE immediately resolves the dependencies when you save the file.

6.Compile the add-on widget set by clicking the Compile Vaadin widgets button in the toolbar.

Figure 17.2. Compiling Widget Set in Eclipse

The vaadin-addons repository mentioned in the Maven POM declaration is included in the default ivysettings.xml file generated by the Vaadin Plugin for Eclipse. If you get Vaadin addons from another repository, such as the local repository, you need to define a resolver for the repository in the settings file.

17.4. Using Add-ons in a Maven Project

To use add-ons in a Maven project, you simply have to add them as dependencies in the project POM. Most add-ons include a widget set, which are compiled to the project widget set.

Creating, compiling, and packaging a Vaadin project with Maven was described in Section 2.6, “Using Vaadin with Maven”.

17.4.1. Adding a Dependency

Vaadin Directory provides a Maven repository for all the add-ons in the Directory.

1.Open the add-on page in Vaadin Directory.

2.Select the version.The latest is shown by default, but you can choose another the version from the dropdown menu in the header of the add-on details page.

3.Click the Maven POM to display the Maven dependency declaration, as illustrated in Figure 17.3. If the add-on is available with multiple licenses, you will be prompted to select a license for the dependency.

388

Using Add-ons in a Maven Project

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]