JPAContainer, Maven

Dear Vaadin friends,

I would like to try out the JPAContainer to work with java beans on the Tree / TreeTable. In the project we use Vaadin 7.1 and Maven.

In the add-on repository the maven reference is shown like this:

com.vaadin.addon jpacontainer 3.1.0

in the book a bit differently (see the artifact id):

com.vaadin.addon jpacontainer-addon 3.1.0

The first entry does not work because it is not yet in the maven repo (you can use LATEST, but it is 3.0…). The second seems to be wrong as well.

Could you please bring some hints?

Thanks
Dimitri

did you add the repository ?


<repository>
   <id>vaadin-addons</id>
   <url>http://maven.vaadin.com/vaadin-addons</url>
</repository>

I can confirm this one works


        <dependency>
            <groupId>com.vaadin.addon</groupId>
            <artifactId>jpacontainer</artifactId>
            <version>3.1.0</version>
        </dependency>

Downloading: http://maven.vaadin.com/vaadin-addons/com/vaadin/addon/jpacontainer/3.1.0/jpacontainer-3.1.0.pom

Downloaded: http://maven.vaadin.com/vaadin-addons/com/vaadin/addon/jpacontainer/3.1.0/jpacontainer-3.1.0.pom (12 KB at 5.1 KB/sec)
Downloading: http://maven.vaadin.com/vaadin-addons/com/vaadin/addon/jpacontainer/3.1.0/jpacontainer-3.1.0.jar

Downloaded: http://maven.vaadin.com/vaadin-addons/com/vaadin/addon/jpacontainer/3.1.0/jpacontainer-3.1.0.jar (209 KB at 43.2 KB/sec)

I’m was having a similar issue in my pom and I have the for vaadin-addons included along with the jpa

<repository> <id>vaadin-addons</id> <url>http://maven.vaadin.com/vaadin-addons</url> </repository> and then I was using the following jpacontainer dependency:

<dependency> <groupId>com.vaadin.addon</groupId> <artifactId>jpacontainer-addons</artifactId> <version>3.1.0</version> </dependency> which wasn’t working and the pom was complaining of a missing jpacomtainer.jar. Removing the ‘-addons’ has fixed this problem for me.

<dependency> <groupId>com.vaadin.addon</groupId> <artifactId>jpacontainer</artifactId> <version>3.1.0</version> </dependency> This correctly compiles and retrieves the jar file and adds it to the Maven dependency list. Thanks!

In my pom.xml file, I have this :

<repositories> <repository> <id>vaadin-addons</id> <url>http://maven.vaadin.com/vaadin-addons</url> </repository> <repository> <id>sonatype vaadin</id> <url>https://oss.sonatype.org/content/repositories/vaadin/</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.vaadin.addon</groupId> <artifactId>jpacontainer</artifactId> <version>3.1.1</version> </dependency> </dependencies> But I cannot retrieve the jar file…

      <version>3.1.0</version>

Is ok !

I’ve added following in my pom :

    <repository>
        <id>vaadin-addons</id>
        <url>http://maven.vaadin.com/vaadin-addons</url>
    </repository>

and

com.vaadin
vaadin-cdi
1.0.0.alpha1


com.vaadin
vaadin-themes
7.0.4


com.vaadin
vaadin-client-compiled
7.0.4

    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-shared</artifactId>
        <version>7.5.6</version>
    </dependency>

    <dependency>
        <groupId>com.vaadin.addon</groupId>
        <artifactId>jpacontainer</artifactId>
        <version>3.1.1</version>
    </dependency>

But the part with jpacontainer fails to download… ???