Hi I'm giving a try of Spring Roo, I have STS installed with eclipse.
if I do new-> Dynamic Web -> add spring roo nature, the spring roo shell keep showing message of "Not spring roo installed" (actually I have it installed in preference->spring roo)
if I do new->spring Roo project, the project generated is a java standard application and not a web application :S but the ROO console works
and I do "controller all --package ~.web" command it only generate web.xml but still missing the option run as.. -> server
screenshot: http://i54.tinypic.com/14mqu8h.jpg
any idea?
Please run the perform eclipse Roo command in your Roo Console on your project and see.
You should probably run your Roo project with m2eclipse addon installed. Use tomcat:run as your Maven goal.
There is a series of articles on the starting from the following link which would address most of your questions related to eclipse configuration.
http://blog.lckymn.com/2009/05/17/roo-so-cool-01/
Cheers!!!
Related
I have the latest version of Eclipse and am creating a basic Spring Boot Web project.
When I use the New -> ... -> New Maven Project and use the dialog to browse Maven Central for the Spring-Boot-Starter-Web artifact it isn't listed.
Why is Eclipse not listing it?
The configured repository is https://repo1.maven.org/maven2 (Maven Central) which is where Spring-Boot-Starter-Web is meant to reside. (https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web/2.2.4.RELEASE)
I know how to use https://start.spring.io/ to create a spring boot start application so my question is not about how to create one.
What I want to know is what is it about Eclipse, or Maven, that prevents the Spring Boot Starters showing up. I am concerned that there may be plenty of other artefacts that are not visible here and would like to understand the rational for this so I can anticipate what may not be visible.
I appreciate I'm assuming here that a logical reason exists and apologises if it has more to do with how Eclipse feels about things to do with Spring Framework.
You can add in Eclipse from the Help -> Eclipse Marketplace the Spring tools plugin (probably you'll find a newer version of the plugin):
After install it, you'll be able to create a Spring Boot project managing the dependencies at creation time. Select Spring Boot -> Spring Starter Project:
Then you can select which maven dependencies to add:
it lists certain Maven archetype which Spring Boot starters aren't.
It's that simple.
Also, if you have archetypes (e.g. your company makes its own) you can add them to the list of archetypes known to your IDE.
I cannot create Spring Roo project is Spring tools Suit 4. Do I need to install a plugin? I tried to install Spring Roo plugin from Eclipse market place but no user. Please Help.
The Spring Roo integration from Spring IDE is not part of the Spring Tools 4 for Eclipse distribution. It still comes as part of the Spring Tool Suite 3 for Eclipse, which can be downloaded from https://spring.io/tools3/sts/all, but it is not in active development anymore and receives minimal maintenance only.
I have spring-boot mvc project - maven.
Specifically I want to debug #Controller class.
I converted it to eclipse project with
mvn eclipse:eclipse -Dwtpversion=2.0
Then in eclipse, I tried to Debug it on Server (Tomcat 7), but got an error
The server does not support version 3.1 of the J2EE Web module
specification.
In Facets configurations, it doesn't allow me to choose any other version of 'Dynamic Web Module' from 3.1.
I also tried to debug like that: from project root I ran:
mvndebug spring-boot::run
And then connected debug-remote, but when I opened the page in browser, break point of the controller didn't trigger.
You should not use eclipse:eclipse cause it's deprecated very long time...If you like to debug the Spring Boot application you can do this via:
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
You need to start Eclipse via Debug configuration.
The execution mvnDebug... will debug Maven itself which is not what you want to do.
There seems to be no option in STS 3.6.1 to create a Roo app. While Googling I noticed this question for the same problem in version 3.5.0, and the sloution was to install Roo to STS manually as it is no longer included. Sweet, so I did that.
I installed it from the STS dashboard and after installation was complete and STS was re-started the dashboard shows this (so the installation was successful):
And lo and behold... still no option to creat a Spring Roo app!
So... how can I find the option to create a Spring Roo app from within Spring tool Suite?
You must install "Spring IDE - Roo Extension" too:
Then "Create Roo Project" will be ready:
Try to use Help -> Install new software And select SpringSorce Update Site to install Spring-Roo related features.
Anyway, you could run the Spring Roo shell on the systems shell to create the project (STS is great tool, but it isn't required to work with Roo).
Good luck!
I have this SpringRoo repository I have just cloned and imported on my Eclipse workspace. The Eclipse I'm using now is a newly download Eclipse Standard 4.3.2. I have installed the WTP (3.5.2) and SpringSource (all of them) plugins. Also I have installed a new Apache Tomcat 7 on my terminal.
The problem is that after importing the SpringRoo project (via Maven) on the workspace and resolved some issues with pom.xml, I can't get to run the application because I can't see Run As Server option on the Run As menu. How could I get the project/eclipse to have this feature again?
Spring Roo doesn't run in a server ... you should read the reference guide and understand what is Roo.
Any way, you can "Run As ..." the applications you create with Roo, not Roo itself.