Oct 28th, 2009, 05:54 PM
How to use roo with existing Maven Project? NullPointerException Dependency.java:95
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>( Dependency.java:95)
Oct 28th, 2009, 07:17 PM
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:
Oct 28th, 2009, 09:47 PM
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:
Oct 29th, 2009, 03:32 AM
I noticed https://jira.springsource.org/browse/ROO-319 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.
Tags for this Thread