Satish
Satish

Reputation: 1933

Spring Roo says "Version is required for org.apache.maven.plugins:maven-compiler-plugin"

I am trying out Spring Roo 1.2.2 and can't get past this error:

roo> hint

Version is required for org.apache.maven.plugins:maven-compiler-plugin

My maven version: Apache Maven 2.2.1

Appreciate any help.

Update:
Changing the directory and trying again makes it disappear! But I would still like to know what it was looking at, thanks.

Upvotes: 3

Views: 1934

Answers (2)

Andrii Karaivanskyi
Andrii Karaivanskyi

Reputation: 2002

Roo 1.2.2 has issues working with maven plugin versions. You will need to make sure that all your plugin declarations in every module have version tag specified. Similar problem is described here http://forum.springsource.org/showthread.php?132520-Multimodule-application-issue-Spring-Roo-1-2-2

Besides that I assume that you are trying to use Roo 1.2.2. on existing codebase. Than you need to follow this http://static.springsource.org/spring-roo/reference/html/existing.html

Although it is not said in this documentation, you possibly will need Maven 3 (3.0.4 comes with Roo/STS distribution) I suggest using this. It would be better first to migrate your project to Maven 3.

Upvotes: 5

rmuller
rmuller

Reputation: 12859

You should always start roo in an empty directory (or already existing roo project directory) because the working directory is scanned by roo. In your case a POM is probably detected. Also notice that roo becomes very slow when working from a "crowded" directory.

Upvotes: 4

Related Questions