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 - spring

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.

Related

How to get version 4.0 spring jar on maven?

I searched spring on maven, and I find it at this page :http://mvnrepository.com/artifact/org.springframework/spring. The problem is I want to download 4.0 version but there is no 4.0 version in the chart.
Newer version of Spring can be found under group id org.springframework - Spring 4+
There is no reason to include all features of Spring Framework in one .jar. Spring is huge and you will probably won't use every feature of Spring. Including everything will cause unnecessary overhead. Pick what components you need add them to pom.xml and Maven will download them. If you found out later you need additional dependency just add it on the fly...
As an alternative you can use Spring Boot which will generate project for you with default set up. You can generate such a project using Spring Initializr Spring Boot Initializr. At the bottom click Switch to the full version. Pick what you need and hit generate project.

spring-security is not part of the spring framework bom file [duplicate]

Please what is the compatible release version for Spring Security for Spring 3.2.8 release ?
There is little dependancy between Spring Security versions and Spring Framework versions. I have already used Spring Security 3.1.x with Spring Framework 3.1.x and 3.2.x.
If you have no reason to do differently (portability of code) you should choose the more recent General Available version that is compatible with your other components.
Doc for latest GA (4.0.1) says that it builds against Spring Framework 4.1.6.RELEASE, but should work with 4.0.x => no good.
Doc for previous GA (3.2.7) says that is builds against Spring Framework 3.2.13.RELEASE, but is also tested against Spring Framework 4.1.6.RELEASE
It would be my first choice, but if you use maven, you will have to control what is actually imported via transitive dependancy and eventually force 3.2.8 versions for all used Spring Framework components to avoid mixing different versions, or better upgrade to 3.2.13 since it is only a patch level different version.
Of course, you can also make use of the fact that previous Spring Security version (3.2.6) explicitely builds against Spring Framework 3.2.8.RELEASE, as said by #zeisi
According to the Docs it would be 3.2.6, see Spring Security Docs

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.

Which spring security version is compatible with spring 3.2.8

Please what is the compatible release version for Spring Security for Spring 3.2.8 release ?
There is little dependancy between Spring Security versions and Spring Framework versions. I have already used Spring Security 3.1.x with Spring Framework 3.1.x and 3.2.x.
If you have no reason to do differently (portability of code) you should choose the more recent General Available version that is compatible with your other components.
Doc for latest GA (4.0.1) says that it builds against Spring Framework 4.1.6.RELEASE, but should work with 4.0.x => no good.
Doc for previous GA (3.2.7) says that is builds against Spring Framework 3.2.13.RELEASE, but is also tested against Spring Framework 4.1.6.RELEASE
It would be my first choice, but if you use maven, you will have to control what is actually imported via transitive dependancy and eventually force 3.2.8 versions for all used Spring Framework components to avoid mixing different versions, or better upgrade to 3.2.13 since it is only a patch level different version.
Of course, you can also make use of the fact that previous Spring Security version (3.2.6) explicitely builds against Spring Framework 3.2.8.RELEASE, as said by #zeisi
According to the Docs it would be 3.2.6, see Spring Security Docs

Spring framework version with Spring Data Neo4j

Is there a version matrix for Spring framework core with Spring Data Neo4j?
I am looking for the (least) version of Spring framework core that is compatible (should be used) with Spring Data Neo4j 2.0.0.
If you use maven, and add just spring-data-neo4j, it will fetch all dependencies automatically. Even if you don't use maven, you can check the declared dependencies. From what I see in the pom file, it doesn't declare a specific version, which means it should be compatible with the latest version.

Resources