Ömer Faruk Almalı
Ömer Faruk Almalı

Reputation: 3822

Spring Roo Project Command Error

When I try to enter below command from roo shell:

project --topLevelPackage com.ch.core

It tries to create pom.xml and fails:

Created ROOT\pom.xml
Undo create ROOT\pom.xml
No enum constant org.springframework.roo.project.DependencyScope.PROVİDED

What can be the reason that prevents to initialize project? Using STS didn't make any difference. Thanks for helping.

Windows 8, JDK 7. Roo 1.2.4

Upvotes: 0

Views: 371

Answers (3)

mdanaci
mdanaci

Reputation: 96

If you are using STS you can edit sts.ini and add the following after -vmargs

-Duser.language=en

You don't need to change your locale.

Upvotes: 0

Ekrem
Ekrem

Reputation: 483

This is a Turkish Locale issue..

No enum constant org.springframework.roo.project.DependencyScope.PROVİDED

it is verry common when a framework uses toUpper to look up an enum class with letter i.

'i' becomes 'İ' not 'I' in Turkish Locale environments and 'No enum constant' error occures.

you can try to force java to use english locale with

 java -Duser.country=US -Duser.language=en

or you can just change your windows' system locale to english

another solution would be using capital letters when setting dependency scope if you can set it in your xml files.. 'PROVIDED' instead of 'provided'

Upvotes: 4

Solubris
Solubris

Reputation: 3763

Perhaps the package contains a reserved keyword?

Upvotes: -1

Related Questions