I have decided to use a layout addon in my Vaadin project which is a maven project, but after taking the maven pom available on the addon page, it somehow fails to resolve from the maven repository.
Please can some tell me how to get a working maven pom or how I can get around this?
Here is the maven
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
<dependency>
<groupId>org.vaadin.alump.fancylayouts</groupId>
<artifactId>fancylayouts-addon</artifactId>
<version>0.2.1</version>
</dependency>
To make this addon work into your maven project layout, you need to download the project zip bundle from github.
Extract the zip content to any directory and cd into the addon folder:
Once there, using your favorite text editor, change the first lines of the
pom.xml. Replace the<parent>...</parent>tags along with its content with theversiontag (althoug the addon page in the vaadin directory says that the addon version is0.2.1the project code version for the downloaded bundle is0.3-SNAPSHOT). The first 14 lines of the file should look like this:Build the addon using:
mvn installIt should build successfully and install automatically into your local repository, to reference it from your project, add the following dependency:
Explanation of the workaround: If you try to install the addon using just
mvn installand then reference the dependency in yourpom.xml, maven will complain about not finding the parent pom for this library (something like:Cannot find parent: org.vaadin.alump:fancylayouts for project), thats why we have to delete theparenttag and rebuild the addon without it