Announcement Announcement Module
No announcement yet.
How to use roo with existing Maven Project? NullPointerException Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use roo with existing Maven Project? NullPointerException

    What do I need to use roo with an existing Maven Project?

    If I type roo in the project home, I get a NullpointerException:

    ____ ____ ____
    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.0.0.RC2 [rev 321]

    Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
    NullPointerException at org.springframework.roo.project.Dependency.<init>(

  • #2
    Apparently all plugins (including default) require a groupId.

    Making sure all plugins had a groupId resolved this.

    FYI: This is the plugin that was causing my problem:



    • #3
      Yes you are correct. This is because Roo parses the pom in order to anaylyse your exisiting dependencies (this way we can make sure that Roo won't install duplicate dependencies). I am not aware of any case where you don't need a groupId, so I am surprised this plugin worked before including the groupId. Looking at your specific plugin the usage example also has a groupId in use:



      • #4
        I noticed was logged for this bug. I have just marked it as resolved, as I encountered this problem when working on ROO-287 and already committed the necessary fix in SVN revision 339. It will therefore be included in Roo 1.0.0.RC3.