How to add GWT addon for Spring Roo 2.0 - spring

I am using Spring Roo 2.0 and I am not able to add GWT addon. These have got moved to Spring Roo community but I am not able to find the repository URL to download the add ons.

The GWT add-on has not been migrated to 2.0 version yet (see pom.xml).
If you or your organization are interested to do it look at the community add-on repository.

Related

Can I be able to run my Spring roo project developed in STS with Roo version 1.3.1 in the latest version of Roo

We have developed a Spring roo project in STS with roo 1.3.1. I have now updated my STS to the latest version and installed roo 2.0.0 in it. When I try to import the existing roo project does not build successfully.
Can some one please tell me whether there is any compatibility issues with different versions of roo?
It was complaining about 2 dependency jars. So I added the below code.
<!-- https://mvnrepository.com/artifact/org.springframework.roo.wrapping/org.springframework.roo.wrapping.inflector -->
<dependency>
<groupId>org.springframework.roo.wrapping</groupId>
<artifactId>org.springframework.roo.wrapping.inflector</artifactId>
<version>0.7.0.010</version>
</dependency>
the above dependency was not needed for older roo version.
Eventhough I added the above code it is not working as expected.
Sorry, there is no way to do that. Spring Roo 2.0 has changed all its architecture and there is no way to migrate a project from 1.3 to 2.0.
By example:
Generated project in 2.0 is build on top Spring Boot
Data access layer has been changed from Active Record pattern to Repository (using Spring Data)
Default UI layer in 2.0 is based on Thymeleaft instead of JSP and tagx
There is no support in 2.0 for Reverse Engineering feature
To see the differences just try to generated the clinic.roo script in both versions and compare the projects.

Will Spring Roo 2 support MongoDB?

According with the Spring Roo 1.3 Docs, MongoDB is supported, and can be configured with:
roo> mongo setup
But with Spring Roo 2.0.0.RC1 you get:
roo> mongo setup
Command 'mongo setup' not found (for assistance press TAB or type "hint" then hit ENTER)
Searching 'mongo setup' on installed repositories
0 matches found with 'mongo setup' on installed repositories
MongoDB persistence layer was removed? Can be added in some way?
In this task, during the Spring Roo 2.0 definition, we decided to create a smaller and easier to maintain Spring Roo distribution.
From 2.0, Roo will contain the runtime and the main addons only, so new versions could be released more frequently and being kept up to date with lastest Spring projects. This provide us the posibility of make a better separation between the Spring Roo runtime and the main addons. The Roo runtime APIs (classpath, metadata, support, etc.) must be kept as stable and backwards compatible as possible.
On the other hand, we moved the addons not classified as ”main addon” (GWT, JSF, Mongo DB ...) to their own Git repository
https://github.com/spring-projects/spring-roo-community-addons
These addons will be maintained by the Roo community.
From now on we will know this addons as “Spring Roo Community Addons”.
As you could see, these addons are not migrated to the Spring Roo 2.x version, so if you want to use the Mongo DB addon you should download from there and apply some updates. After apply changes, generate the .jar files and use the addon install commands to include them in the Spring Roo shell.
Hope it helps,

Why latest STS doesn't supprot latest Spring 4.2.4?

I just downloaded the STS (Spring Tool Suite) and created a simple Spring project.
But the supported Spring version is as below:
Why the latest Spring 4.2.4 is not listed? How can I add it?
I think, it's because they are in favor of Spring-boot. You can create a Spring Starter Project instead and it will come with the lastest version of spring.

Roo 2.0.0 how to add an addon from jar?

I want to use a Spring Roo addon for Timestamp. https://github.com/rcaloras/spring-roo-addon-timestamp
The instructions are
osgi start --url file://$PATH_TO_DOWNLOAD/com.rcaloras.roo.addon.timestamp-0.1.3-SNAPSHOT.jar
timestamp setup
timestamp all
But roo replies
Command not found for osgi. Has this changed for 2.0.0?
I have also tried addon install bundle, addon install url, but to no avail. I've downloaded the jar file, but don't know how to get roo to recognize the addon. OR, is there a way to install an addon via spring STS in eclipse?
This add-on is developed to install it on Spring Roo 1.2.5. You can't install it on 2.0. Spring Roo 2.0 has mayor changes that makes it impossible (included a OSGi upgrade and a new system to handle add-ons).
Also, keep in mind current Spring Roo 2.0.0 is a Milestone, not a final release. It's not recommended for production environments.
On another hand, gvNIX jpa add-on can help you. This is developed for Spring Roo 1.3.0, and includes a add-on which includes this functionality (jpa audit setup, jpa audit add and jpa audit all). In addition this add-on can integrate your application with Hibernate Envers to store all changes on your entities (jpa audit revisionLog).
Good luck!

how to create spring template project in sts-3.6.3?

please suggest if is there any other solution to do scaffolding of an app in STS.
In many examples/tutorials about creating web services using Spring MVC framework are using Spring MVC project template. I can't find it in my project tempaltes list. Am i missing some plugin installed?
The best way to create a new Rest service Spring app in STS 3.6.3 and beyond is to select the "Import Spring Getting Started Content". This allows you to get the guides from http://spring.io/guides directly into your workspace. If you look for "Rest Service" in the list of available guides, the wizard will download the initial and the completed version of this guide, showing you how to write a Rest service using the latest Spring versions. The completed version of the project could also be used for just creating a new Spring project and continue to do development from there.

Resources