Can I have Spring Tool Suite and Eclipse at the same time ? - java

I want to develop my own Spring Boot Application using Spring Tool Suite, but at the moment I am using my Laptop for work where I use Eclipse (I'm working with a big project that is using Spring MVC). I am wondering if there will be complications whenever I start working with my own Spring Boot app using STS.

STS is eclipse (actually it's some plugins for eclipse). But, yes. You can have as many eclipse installations as you like; just don't mix workspaces and everything will "just" work. You can also use m2e and maven to get spring-boot working with-out the STS plug-ins.

Related

JDeveloper 12.2.1.2 configuration for spring project

We are swapping between intellij idea project to JDeveloper (not funny :( )
And I have to configure JDeveloper for it.
For now I installed tomcat extension http://blogs.oracle.com/shay/resource/TomcatExtension_11.1.2.zip
and Installed Spring support via Help > Check for updates
I'm looking for some tutorial/Documentation/blog post etc how to configure JDeveloper for technologies like maven, spring, tomcat, hibernate, js.
Do you guys have any ideas or experience?
All what I can find on internet is already deprecated(For example from 2006) or in Brazilian language
Which version of JDeveloper are you using?
JDev 12.2.1 has maven built in.
To get Spring and Hibernate in just click the tools->manage libraries and add libraries with the right jar files.
Then add these libraries to the project properties for the projects that require them.

How to run Vaadin 7.3.9 Projects having IvyDE and Annotation servlet configuration with RunJettyRun in Eclipse?

Prior to the actual version of Vaadin (7.3.9) it was possible to create and run Vaadin 7 projects in a fancy way just using the RunJettyRun -> https://code.google.com/p/run-jetty-run/ plugin.
Now that Vaadin has migrated its configuration from web.xml to annotations (Java Servlet API 3.0), I noticed that if I deploy a Vaadin 7 project created with the vaadin 7 eclipse plugin New Vaadin 7 Project wizard (the one which uses Ivy as the dependency manager and build automation tool, below a screenshot of the project structure):
When I select Debug as -> Run Jetty and run the project, I get a 404 Not Found either for the http://localhost:8080 or for the http://localhost:8080/project-name URLs.
I can use Tomcat, but sometimes the deployment gets really really slow, Tomcat hangs and every time I deploy a new project in Tomcat I need to restart it before the new project can be ran on the server. With Jetty local deployment is simpler and faster IMHO.
I can also use Jetty together with Maven, but I need to work with Ivy, i.e. create Vaadin projects through the plugin's wizard.
How can I still use the Jetty speed when I develop a Vaadin 7 application now?
Create a new Vaadin 7 Project with Servlet API 3.0 using the wizard
Resolve dependencies and compile everything
Select Run as/Debug as -> Run/Debug Configurations
Select Jetty Webapp -> New launch configuration
Select a Jetty Version: -> 8.x or newer (required for Servlet API 3.0)
Hit Run/Debug

Include Spring MVC in Netbeans 7.3

Using Netbeans 7.3, Spring MVC does not seem to be bundled with the IDE. I thought this would be the case, but only JavaServer Faces and Hibernate are included when it comes to web frameworks. Do I have to activate it somehow? In Eclipse it is easy to download additional frameworks from within the IDE. How do I do this in Netbeans? I use glassfish locally, but that's OK with Spring MVC isn't it?
I just created a Web Project like the one in your comment and Spring MVC is there in NB 7.3. (Windows, Java 7)
Anyway, the following steps should help you recover it:
Open the Tools > Plugins window and go to Installed tab
Check the Show details box and look for Spring Web MVC ,it might be installed but deactivated. In that case activate it.
In case is not installed then go to the tab Available plugins
Look for Spring Web MVC and install it
Restart NetBeans
I would use maven too.
You don't have to master it, just add dependencies for the time being. And it would still work in case you switch your IDE.
NetBeans includes full Maven support since version 6.7. I would use Maven to pull in the spring dependencies by adding them in the pom.xml file.

What plugins do I need for Dynamic Web Project or Spring MVC development in Eclipse

I am looking for what plugins I need for Dynamic Web Project or Spring MVC development. The Eclipse installed my package manager of Arch Linux doesn't have that (as expected), and I don't want to download Eclipse EE if possible. I am sure I can accomplish the same result using the Eclipse I have now.
I believe Dynamic Web Project will suffice, how do I get it up
Also tried to install the Spring Toolkit but I keep getting dependencies errors (I suppose I should start with getting Dynamic Web Project up first ...)
Go download the Eclipse Java EE package.
Go into Help -> Eclipse Marketplace -> Search for Spring Source Tool Suite and install it.
This is all you need. Hope it helps.

How to install jetty with eclipse on Mac

I am a newbie w.r.t. jetty and RESTful API's.
I want to create REST services using Jetty and wants to use embedded jetty with eclipse.
Can anyone suggest me any HowTo for installing Jetty/ Jetty plugins with Eclipse in Mac OS.
Regards,
If you're looking for an Eclipse plugin that will allow you to start your web app in Jetty via the Debug/Run menus, you may want to take a look at the run-jetty-run plugin.
If you happen to be using Maven, there's a Maven plugin you can use to start your app in Jetty as well. This can be configured to run via a launcher in Eclipse or can be launched via the command line.
Edit - Added more info about the jetty-maven-plugin:
If you're just talking about local development, then you don't have to download Jetty separately for use with the Maven plugin. The Maven plugin handles the download of the dependencies that you need by simply running mvn jetty:run. This will start your web app in Jetty (by default) at http://localhost:8080. If you use this, then there's really no need for the Eclipse plugin, either. As far as versions go, these are the available versions. I'd recommend sticking with a fairly recent version unless you have a need to use an older version of Jetty (it looks like the most recent version is a release candidate--8.0.0.RC0).
There's also an example of usage in a project on Github that I just found, but you may want to update the plugin version used.

Categories