getting started with vaadin plugin for roo

Hi,

I just trying to start with vaadin and I come across the vaadin plugin for Roo. Unfortunately, I could make it work. I’ve already installed the vaadin plugin for Eclipse (STS 2.7.1) but when I try to install the vaadin plugin from the Roo shell I get the following message:


    ____  ____  ____  
   / __ \/ __ \/ __ \ 
  / /_/ / / / / / / / 
 / _, _/ /_/ / /_/ /  
/_/ |_|\____/\____/    1.1.5.RELEASE [rev d3a68c3]



Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
roo> pgp trust --keyId 0xBF0451C0
Added trust for key:
>>>> KEY ID: 0xBF0451C0 <<<<
     More Info: http://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=index&search=0xBF0451C0
     Created: 2009-ago-14 11:54:20 +0000
     Fingerprint: cc57399d74cd7e4768ed6fa4ca62973fbf0451c0
     Algorithm: DSA
     User ID: Artur Signell <artur@vaadin.com>
          Signed By: Key 0xBF0451C0 (Artur Signell <artur@vaadin.com>)
     Subkey ID: 0x17EBEE72 [ELGAMAL_ENCRYPT]


roo> download accept terms of use
Thank you. All Spring Roo download features have now been enabled.

roo> addon install bundle --bundleSymbolicName com.vaadin.spring.roo.addon
Could not find specified bundle with symbolic name: com.vaadin.spring.roo.addon

One more thing, I read the roo tutorial and it uses the calendar addon on it, what it makes me wonder which calendar addon version will be downloaded and if you can choose your prefered one.

BTW, My computer config is:
Mac OS X 10.5.8
java version “1.6.0_26”
STS 2.7.1 (Eclipse 3.7)
Roo version 1.1.5

Thank you in advance,
Tchüss!!

Hi again,

I’ve find a workaround to solve this problem out. Instead of getting the vaadin plugin for roo as follows:

addon install bundle --bundleSymbolicName com.vaadin.spring.roo.addon

I have used:


addon list
Successfully downloaded Roo add-on Data
67 found, sorted by rank; T = trusted developer; R = Roo 1.1 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 - Y 0.7.0 Dynamic configuration allows you to manage diferent values by
       environment along different project files
02 - Y 0.1.1.RELEASE An add-on that enables webapp analytics and error
       tracking.
03 Y Y 1.1.1.RELEASE Provides POM configuration inheritence for standard Roo
       SCR-requiring modules.
04 Y Y 0.1.1.RELEASE A simple add-on to allow execution of native OS commands
       from the Roo shell
05 Y Y 6.7.0.0010 #jdbcdriver driverclass:com.ibm.as400.access.AS400JDBCDriver.
       This bundle wraps the standard Maven artifact: jtopen-6.7.
06 Y Y 8.4.702.0020 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
       This bundle wraps the standard Maven artifact:...
07 Y Y 2.3.0.0010 This bundle wraps the standard Maven artifact:
       protobuf-java-2.3.0.
08 Y Y 2.1.6.0010 #jdbcdriver driverclass:org.firebirdsql.jdbc.FBDriver. This
       bundle wraps the standard Maven artifact: firebird-2.1.6.
09 - Y 0.7.0 Uncaught Exception Handler Management for Spring MVC based web
       layer.
10 - Y 1.1.8 Addons that adds Content Negotiating View Resolver configuration
       to your application context: MVC multiple representations By default...
11 Y Y 1.0.0.0010 AOP Alliance JAR. This bundle wraps the standard Maven
       artifact: aopalliance-1.0.
12 - Y 9.0.0.801_jdbc4_0001 PostgreSQL #jdbcdriver
       driverclass:org.postgresql.Driver. This bundle wraps the standard...
13 Y Y 1.6.1 The slf4j NOP binding
14 - Y 0.7.0 JasperReport support for Spring MVC based projects. With
       JasperReport support you give to the project the feature of create...
15 - Y 1.0.0 This project provides an addon for Spring Roo generates equals()
       and hashCode() methods. It uses Xtend2 for code generation.
16 Y Y 0.1.42.0010 This bundle wraps the standard Maven artifact: jsch-0.1.42.
17 Y Y 10.8.1.2_0020 Derby #jdbcdriver
       driverclass:org.apache.derby.jdbc.EmbeddedDriver. This bundle wraps...
18 - Y 1.1.0 Roo Addon for Graph Persistence using Spring-Data-Graph
19 Y Y 3.0.5.RELEASE 
20 Y Y 1.3.155.0020 H2 #jdbcdriver driverclass:org.h2.Driver. This bundle wraps
       the standard Maven artifact: h2-1.3.155.
21 - Y 0.1.4 The Http-Proxy Addon allows you to configure your web application
       to get around the Same Origin Policy restriction (e.g. cross-domain)....
22 Y Y 1.1.1.RELEASE Provides POM configuration inheritence for standard Roo
       SCR-requiring modules.
23 - Y 0.1.0.BUILD Russian language support for Spring Roo Web MVC JSP
       Scaffolding; #mvc,#localization,locale:ru
24 Y Y 1.6.2 
25 - Y 0.1.0.BUILD Hindi language support for Spring Roo Web MVC JSP
       Scaffolding; #mvc,#localization,locale:hi
26 Y Y 1.6.1 The slf4j API
27 Y Y 0.0.1.0010 Cloud Foundry Java client API. This bundle wraps the standard
       Maven artifact: AppCloudClient-0.0.1.A1-ROO.
28 Y Y 3.0.5.RELEASE 
29 - Y 0.7.0 Site structure management for Spring MVC based web layer
30 Y Y 1.1.5.RELEASE Provides VMware Cloud Foundry support for Spring Roo.
       #cloudfoundry
31 Y Y 3.0.5.RELEASE 
32 - Y 1.1.7 JAXB2 Schema complier addon. It adds the maven-jaxb2-plugin to
       your pom.xml. The plugin participates in the generate-code phase and...
33 Y Y 3.0.5.RELEASE 
34 - Y 0.91 Jolokia - Roo Addon
35 Y Y 3.0.5.RELEASE 
36 - Y 0.7.0 JPA Optimistic Control for Spring Roo. For those applications that
       starts with an unmodifiable schema and the tables don't have the...
37 - Y 0.3.0.RELEASE Addon for Spring Roo to provide generic DAO and query
       methods based on Hades.
38 Y Y 1.6.2 
39 Y Y 0.9.3.0010 This bundle wraps the standard Maven artifact: jgit-0.9.3.
40 Y Y 0.1.0.BUILD France language support for Spring Roo Web MVC JSP
       Scaffolding
41 Y Y 3.0.5.RELEASE 
42 Y Y 1.0.0 Spring Roo addon for creating rich internet applications with
       Vaadin.
43 - Y 0.7.0 Theme management for Spring MVC based web layer. A Theme is a set
       of JSP, TAG, CSS, etc that give you the ability to chage application...
44 - Y 0.7.0 MVC screen patterns management for Spring MVC based web layer. An
       screen pattern is ... TBC...
45 Y Y 2.5.0 Servlet Specification API
46 Y Y 1.6.4.0002 This bundle wraps the standard Maven artifact:
       velocity-1.6.4.
47 - Y 0.7.0 Service Layer for Spring Roo. Includes management for: Local
       services management, import remote services to local services and...
48 Y Y 1.1.5.RELEASE Support for the configuration and integration of OP4J
       (http://www.op4j.org/) functionalities through an AspectJ ITD.
49 - Y 0.1.1.BUILD Spring roo addon which adds audit time stamp fields.
50 - Y 0.1.3.RELEASE A Sitemesh 2 Roo Add on
51 Y Y 3.0.5.RELEASE 
52 - Y 1.0.0 The Executable WAR Addon configures the Maven project to makes it
       possible to create web applications that can be run from the command...
53 Y Y 3.2.3.0001 This bundle wraps the standard Maven artifact: jna-3.2.3.
54 - Y 0.7.0 Spain co-official languages support for Spring Roo Web MVC JSP
       Scaffolding; #mvc,#localization,locale:ca
55 - Y 1.0.0.0001 This bundle wraps the standard Maven artifact:
       google-collections-1.0.0.
56 - Y 0.7.0 gvNIX Property Editor Bindings Add-on
57 Y Y 1.1.5.RELEASE Offers GIT integration in the project. Each successfully
       executed command will be automatically committed to a local GIT...
58 Y Y 1.6.1 JCL 1.1.1 implementation over SLF4J
59 Y Y 1.2.4.0010 #jdbcdriver driverclass:net.sourceforge.jtds.jdbc.Driver.
       This bundle wraps the standard Maven artifact: jtds-1.2.4.
60 - Y 2.0.0.v201103151224 This bundle wraps the standard Maven artifact:
       org.eclipse.xtext.xtend2.lib-2.0.0.v201103151224.
61 - Y 1.3.2 This project provides an addon for Spring Roo which aims to
       generate equals() and hashCode() methods.
62 - Y 0.7.0 Spring Security settings for applications developed at Conselleria
       d'Infraestructures i Transport only
63 Y Y 5.1.13.0010 #jdbcdriver driverclass:com.mysql.jdbc.Driver. This bundle
       wraps the standard Maven artifact: mysql-connector-java-5.1.13.
64 Y Y 2.0.0.0001 This bundle wraps the standard Maven artifact: hsqldb-2.0.0.
65 Y Y 1.1.0.0001 This bundle wraps the standard Maven artifact: jansi-1.1.
66 - Y 0.1.0 Japanese language support for Spring Roo Web MVC JSP Scaffolding
67 - Y 2.0.0.v201103151224 This bundle wraps the standard Maven artifact:
       org.eclipse.xtext.xbase.lib-2.0.0.v201103151224.
--------------------------------------------------------------------------------
[HINT]
 use 'addon info id --searchResultId ..' to see details about a search result
[HINT]
 use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT]
 use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
roo> addon install id 42
roo> Target resource(s):
-------------------
   Vaadin Plug-in for Spring Roo (1.0.0)

Deploying...done.
 

The problem now is that althought the vaadin plugin is installed and I’ve restarted the roo shell (even the STS) I can execute two goals in the vaadin plug-in (vaadin setup and widget). There is no vaadin addon goal available. Surprinsingly if a type:


roo> vaadin addon install --artifactId vaadin-calendar
Command 'vaadin addon install --artifactId vaadin-calendar' was found but is not currently available (type 'help' then ENTER to learn about this command)
roo> help vaadin addon
Keyword:                   vaadin addon install
Description:               Add a dependency to a Vaadin add-on
 Keyword:                  artifactId
   Help:                   Maven artifact id for the add-on
   Mandatory:              true
   Default if specified:   '__NULL__'
   Default if unspecified: '__NULL__'

 Keyword:                  groupId
   Help:                   Maven group id for the add-on
   Mandatory:              false
   Default if specified:   '__NULL__'
   Default if unspecified: '__NULL__'

 Keyword:                  version
   Help:                   Maven artifact version number for the add-on or LATEST, defaults to the latest version number currently available
   Mandatory:              false
   Default if specified:   '__NULL__'
   Default if unspecified: '__NULL__'

* vaadin addon install - Add a dependency to a Vaadin add-on

** Type 'hint' (without the quotes) and hit ENTER for step-by-step guidance **

Unfortunately there is no id option as it was with vaadin plugin. Any idea?

Thanxs a lot !!,
Tschüss!!