I just wanted to spend half an hour to try out spring roo - but failed miserably.
The Spring roo project page on spring.io simply tells to add a maven dependency. But I'm not aware of any public maven repository providing it
The Project page on github includes all the sources, but the readme starts with
These instructions are aimed at experienced developers looking to
develop Spring Roo itself. If you are new to Spring Roo [..] we recommend that you visit
the Spring Roo home page and download an official release: http://www.springsource.org/roo
Needless to say, this url points back to the github page..
Is there any pain-free way of installing spring roo? (let's assume Windows 7, JDK 1.7)
I know that in the time of writing this I could have installed it from source - but I think a rapid prototyping framework should do better.
Adding the jar to your project is not enough, because you need the Roo shell/console to run while you are developing your project.
Its quite simple using the Spring IDE/Roo plugin. You can download the Spring Source Tool Suite or add the update site (same link at the bottom) to your Eclipse version (I did not test the update site so far).
In your IDE click File -> New -> Spring Roo Project. Be sure to set the appropriate top level package here, i.e. com.yourdomain.projectname (thats where roo will create its artifacts; like a home directory in Linux it can be abbreviated by typing ~ in the roo console). Select "war" as the packaging provider.
Unfortunately the project might not get the "Dynamic web project" facade and not all maven related source folders might have been created (seems to be a bug?). In that case right click the project name -> preferences -> Project Facets -> Dynamic Web Project 3.0. Be sure to click the "Further conf..." link at the bottom and insert 'src/main/webapp' as the content directory.
After that right click your project again -> Spring Tools -> Open Roo shell. And wait for the console to load. Then you can finally start with the "quick" start tutorial at line four, typing in 'hint' in the console. Also try crtl+space for content completion.
Have you tried this repository : http://spring-roo-repository.springsource.org/ ?
You can download the .zip file from here http://docs.spring.io/downloads/nightly/snapshot-download.php?project=ROO
Source: http://forum.spring.io/forum/spring-projects/roo/722228-where-to-download-spring-roo-command-line-shell-in-zip
Related
I want to create a Spring Boot project from scratch in IntelliJ IDE. As there is also a way to use Spring Initializr to create a Spring Boot project and then download the zip and import to IDE.
As it is bit time consuming process to do that every-time, so I checked over the internet to see if there exists a plugin for the same which automatically loads Spring Initializr onto IntelliJ and found there is one named with Spring Assistant.
But this plugin is not visible in IntelliJ Plugins Marketplace. So I went over to JetBrains site for this plugin and landed on this page. This url is the download link for this plugin and is available for all versions. I am using the Community version.
https://plugins.jetbrains.com/plugin/10229-spring-assistant/versions
After downloading and importing the plugin, Spring Assistant option was visible under the File -> New Project section. But after specifying the project details, the dependency screen was not loading up (shown in last image) and I also get errors at the bottom of my IDE which says the plugin doesn't belongs to JetBrains. After this I also seem to feel IntelliJ IDE getting hanged. I have attached images for better understanding.
As anyone else faced a similar problem, because if this doesn't work then the only option is to go to Initializr every time.
Unfortunately, the plugin that served part of the idea/spring community, stopped maintaining. I took the liberty of creating a fork, we fixed bugs and added new features.
the same can be found directly in the search for Intellij or in the marketplace.
Spring Initializr and Assistant
You can use
https://github.com/eltonsandre/intellij-spring-assistant
Its a fork of the original plugin, according to the comments here, seems to work with 2020.3.1, 2021.1(those are the tested versions, check in the comment section).
Here the changelog of the forked plugin
I am trying to get OIDC working with Java Spring Boot. Specifically the example app
here.
I am a newbie to this stuff, so can anyone give me brief instructions on how to run that app?
I have it in Eclipse (with STS4) as existing maven project (as per these instructions). When I run it I pick 'Java application' which gives me some examples including version, Licence, roller etc etc. I do not know which, if any, of these is correct, nor how do I pass parameters etc. Any pointers are gratefully received.
I think example code is not Spring boot app. (just Spring web app) You can run it via Eclipse / Tomcat.
If you review below link you can see details in section 6;
Eclipse allows us to embed servers to add web project deployment in the normal workflow without navigating away from the IDE
Check this out: tomcat-deploy-war
From the project overview list, pick the Application class. Right-click on it to open the context menu and choose "Run as -> Spring Boot App". Have fun.
In eclipse Project Explorer, right click the project name -> select "Run As" -> "Maven Build..."
In the goals, enter spring-boot:run
then click Run button.
In STS right click on Project > Run as > Spring Boot App
If you are not getting any option then just run the main method which is in the class SampleSpringBootApplication. Spring Boot will take care of all the rest (starting the embedded tomcat which will host your sample application).
Is it possible to automatically reload a Java AppEngine project (which uses Maven) after making changes to the code? I.e. after making a change to the code (such as a JSP) I'd like to see those changes straight away in a web browser without having to re-run the project. Is this possible?
I have done the following:
Created a Maven project using the Google's tutorial
Imported it into Eclipse using Google's instructions.
Enabled the "Build Automatically" setting on my project in Eclipse (which this article suggests is required).
Run the dev server inside the ear project (mvm appengine:devserver)
However, changes to JSPs aren't automatically reflected when I view the page in a web browser. I can only see the changes by installing (mvn clean install) and then re-running the dev server.
Projects created using the Google Eclipse plugin reload automatically however, I'd prefer to use Maven as it'll make it easier to install other software (such as the Spring Framework).
I think I've got to the bottom of this:
Import only the web Maven project (not the main project) into Eclipse (as suggested in the Eclipse Web Tools documentation)
Create a server as per Google's documentation. The web site should automatically reload 15 seconds after you make a change to the code. To change this...
Open the "servers" tab, right-click on your server and select "open".
Expand the "Publishing" section and decrease the value for "Automatically public after a build event.
Note: the "auto scan for resources change setting" doesn't seem to make any difference.
I want to start using AngularJs and Java Spring for development purpose.I am using Eclipse as IDE . I want to configure my Eclipse to have these frameworks working seamlessly.
I know I may be asking too much,but trust me I have done much research on my part and you guys are my last resort.Any help would be much appreciated.
You'd first wanna make sure you have the JSDT installed.
Next thing is to install some dedicated tools for the job, so check out AngularJS Eclipse Tools. The AngularJS Eclipse Templates might be of help, too, and here's a visual guide written for it to get you started.
Also see the AngularJS Eclipse getting started page.
Since this answer had been posted, the AngularJS Eclipse plugin was released, as other answers stated. You might wanna check it out first.
Install JavaScript Development Tools (JSDT) and AngularJS Eclipse plug-in in eclipse from Eclipse Marketplace or Update site angularjs-eclipse-0.5.0,
Right Click on your project --> Configure --> Convert to Angularjs Project (as shown below)
Now you can see the Angularjs tags available as shown below.
.
Make sure the project is extracted on your hard disk.
In Eclipse go to the menu: File->New->Project.
Select "General->Project" and click on the next button.
Enter the project name in the "Project name:" field
Disable "Use default location" Click on the "Browse ..." button and select the folder that contains the project (the one from step 1)
Click on the "Finish" button
Right-click with the mouse on you're new project and click "Configure->Convert to AngularJS Project.."
Enable you're project goodies and click on the "OK" button.
Netbeans 8.0 (beta at the time of this post) has Angular support as well as HTML5 support.
Check out this Oracle article: https://blogs.oracle.com/geertjan/entry/integrated_angularjs_development
Since these previous answers above, there is now a release of an Eclipse Plugin to assist with development using AngularJS:
https://marketplace.eclipse.org/content/angularjs-eclipse
https://github.com/angelozerr/angularjs-eclipse/wiki/Installation---Update-Site (take a look around the other Wiki pages for information on features)
The release at the time of the answer is 0.1.0.
Please also checkout JSDT (http://www.eclipse.org/webtools/jsdt/) and also Eclipse VJET (http://eclipse.org/vjet/). The VJET project appears to be an attempt to provide better feature sets to the editor without being encumbered by the JSDT project (open source politics at play I guess).
Download angular js from this link and add as new software in eclipse
http://oss.opensagres.fr/angularjs-eclipse/0.6.0/
Configuration worked with Eclipse Mars 4.5 version.
1) Install Eclipse Mars 4.5 from
https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2
This comes with Tern and embedded Node.js server
2) Install AngularJS Eclipse plugin from Eclipse Marketplace
3) Configure node.js server to the embedded nodejs server within Eclipse (found in the eclipse plugins folder) at Windows-> Preferences -> JavaScript -> Tern -> Server -> node.js. No extra configurations are required.
4) Test configuration in a html or javascript file.
https://github.com/angelozerr/angularjs-eclipse
With current Angular 4 and 5 versions, there is an IDE for that.
Go to eclipse market place any search for 'Angular'. You will see the IDE and install it.
After that restart eclipse and follow the welcome messages to choose preferences.
How to start using eclipse with angular projects?
Considering you already have angular project and you want to import it into eclipse.
go to file > import > choose Angular Project
and It would be better to have your projects in a separate working set so that you will not confuse it with other kind of (like java)projects.
With Angular IDE You will have a terminal window too.
To open this type terminal in eclipse search box(quick access) on the top right corner.
Hi Guys if u are using angular plugin in eclipse that time is plugin is limited periods after that if u want to used this plugin then u pay it so i suggest to you used webstrome and visual code ide that are very easy and comfort to used so take care if u start and developed a angular app using eclipse
Earlier I was using Netbeans,and it had all framework in it like struts ,spring,hibernate.As Eclipse is used mostly in industry,so i downloaded Eclipse Indigo java ee ,but i am not able to find option to create application using framework like sturts or hibernate or spring. I am gonna use them in future. as i am in learning phase,also if it does not support these framework,please give me link which eclipse to download as eclipse website contain number of eclipse version which to download i don't have idea.
It depends upon which type of application you want to create and i am taking an example of web-application
to create a web-application all you need is to create a dynamic web-project in eclipse by
Right click on the project explorer/ file->new.
Crete a web-application by following the wizard.
and you are all set to start your development>regarding suport for Spring/Hibernate,they provide there plugin for eclipse all you need to do either
Go to market place by Help->marketplace
Go to respective website say spring source and Hibernate
search for the plugin and install them in your eclipse and you are all set to go
Hibernate Tool
Spring IDE
Will suggest you to install using marketplace i.e help->marketplace
Eclipse is plugin based. WTP is the generic webapp plugin. Hibernate tools for hibernate and maybe Akrogen for struts. (Search for 'xxx eclipse plugin' with your favorite search engine, in the future)
You can look into Maven if you want, Maven has a whole range of archetypes for almost every combination of projects.