Search code examples
javaspringspring-roo

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


Solution

  • 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'