Spring Roo is an open-source software tool that provides rapid application development (RAD) for Java-based enterprise software. It applies convention-over-configuration principles to help developers build Spring Framework-based applications quickly and efficiently. The project has been deprecated, with active development having ended.
History and Development
Spring Roo was first demonstrated during the opening keynote at the SpringOne Europe developer conference on 27 April 2009, with an initial alpha release published concurrently. During the keynote, an application was built live on stage to allow conference attendees to vote on the preferred name for the project, then codenamed "Roo" within SpringSource. The name "Spring Roo" was ultimately chosen over alternatives such as Spring Boost, Spring Spark, Spring HyperDrive, and Spring Dart.
The first general availability release, Roo 1.0.0.RELEASE, was released in December 2009. Roo 1.1.0.RELEASE followed in October 2010, introducing an OSGi foundation with an add-on discovery model, support for incremental database reverse engineering, and additional technology integrations including Google Web Toolkit, Google App Engine, Apache Solr, and JSON.
In 2014, DISID took over leadership of the open-source project following a partnership agreement with Pivotal (which had acquired SpringSource). DISID and VMware deprecated Spring Roo and announced the end of active development in 2019, and the repository was archived in 2022. The final release was version 1.3.2 (September 2015), with a preview release of version 2.0.0.RELEASE published on September 30, 2019.
Purpose and Design
Spring Roo's stated mission was to "fundamentally improve Java developer productivity without compromising engineering integrity or flexibility." It was designed to allow developers to build enterprise applications entirely in Java, using their existing skills and standard Java enterprise technologies, without requiring them to learn a new language or platform.
Its main user interface was a command-line shell that provided tab-based command completion, online help, contextual hints, and awareness of changes made to project files. Roo monitored the file system and automatically generated and maintained code in response to developer actions.
Architecture
Spring Roo operated by generating AspectJ inter-type declarations (also known as mixins or introductions). This approach achieved separation of concerns because the code maintained by Roo existed in a different compilation unit from the code written by the developer. This allowed Roo to incrementally modify its generated code while leaving user-authored files intact.
The tool's functionality was implemented through "add-ons" running on an OSGi runtime system based on Apache Felix. Add-ons provided the project's main extensibility mechanism.
Key Design Characteristics
- No runtime component: Roo did not require any runtime API or specific runtime components. There was no Roo-related CPU, memory, or disk resource consumption at runtime, and no Roo JARs appeared in production classpaths.
- Avoidance of vendor lock-in: Roo could be removed from a project in a few minutes. Its
@Rooannotations had "source retention" only (meaning they were not preserved in compiled.classfiles), and its AspectJ inter-type declarations could be "pushed in" to standard.javacompilation units. - Use of stock-standard Java: Roo used mainstream Java enterprise technologies such as Spring Framework, Spring Security, Java Persistence API (JPA), Maven, AspectJ, and other widely adopted tools, allowing developers to reuse existing knowledge and experience.
Supported Technologies
Roo's default installation facilitated the creation of applications using a range of standards and technologies, including Apache Maven, Apache Tomcat, Hibernate and EclipseLink (as JPA implementations), Java Bean Validation (JSR 303), Java Message Service, Java Transaction API, JSON (REST support), JUnit, Spring Boot, Spring Data JPA, Spring Security, Thymeleaf, and others. The list could be augmented through additional Roo add-ons.
Status
Spring Roo was an established and documented open-source project, historically maintained by SpringSource and later by DISID in cooperation with Pivotal/VMware. It is no longer actively developed, and its source code repository has been archived under the organization "spring-attic" on GitHub. The project remains documented in archived reference materials and historical technical literature.