Spring Assistant plugin not found in IntelliJ IDE - java

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

Related

SpringToolSuite is unable to recognize spring boot annotations

I got a project from GitHub which is a Java spring boot application running with Maven dependencies.
I am so confused why I can't run the application successfully on STS.
There's no longer a problem on my old laptop. Because I just changed my laptop, this problem only occurred on this laptop.
The details / symptoms of the issue are:
When I typed "SpringToolSuite" on my start panel, no applications were being recognized. So I have to open STS manually from Downloads (ie. its original file location). But anyways, it is just a minor issue.
In STS, annotations such as the lombok log and most of the getter/setter methods were unrecognized.
Failed to perform "Run as Spring Boot App" from STS, but it is successful when I tried to perform "mvn clean install" to create a Maven build from command prompt.
Error message: "log cannot be resolved"
I tried finding results from other posts here but to no avail.
The steps that I import the project is:
Create another folder as the workspace.
Open STS by selecting the created folder as the workspace.
Click File > Import and import as existing Maven project (as it is a Maven-built application).
I also tried to create a Maven build from command prompt, which is successful eventually.
As the situation was so strange here, please advise further what I can do. Thanks.
Lombok has a plugin for Eclipse (and therefore STS as well) that enhances the IDE with direct support for Lombok: https://projectlombok.org/setup/eclipse
Without that extension the IDE is not really able to recognize and support Lombok.
Thanks so much for your suggestions.
First of all, I've made sure my STS the latest version. I installed it from the official site https://spring.io/tools.
I downloaded the Windows one. See image.
I executed the spring-tool-suite-4-4.16.1.RELEASE-e4.25.0-win32.win32.x86_64.self-extracting.jar file afterwards. A folder with STS application inside has been generated.
Referring to your second question, I am sure I have the lombok dependency.
This is part of my pom.xml. See image.
I also performed again the "mvn clean install". It is success and error-free.
Fyi, I also make sure every setup is right, such as:
It is pointing to the same java version as what Maven points to.
In STS, the Java compliance level is the same as the java version I defined in PATH environment variable.
Also in STS, the Installed JRE is pointing to the right folder.
But as the STS is still not recognizing Spring Boot annotations. That's why it seems weird here. For example, logs are underlined red with an error message on the IDE. Getters and Setters of #Data fields are not implicitly referenced with that spring boot annotation since they're also underlined with error.

Eclipse RCP - Shere javadocs and attached sources of dependencies among projects in workspace

I'm working on a set of plugins for a commercial Eclipse RCP Application "FOO_APPLICATION",
which comes with html javadocs for api plugins and without sources.
I'm using Eclipse 4.5.2 and the target "FOO_APPLICATION" is based on an older version of Eclipse, 3.6
Everything seems fine but I'm experiencing this annoying issue:
If I attach javadocs or sources to plugin dependecies (for eclipse standard plugins I can also attach sources, because I have also the original 3.6 sdk sources jar)
Eclipse does not remember this setup and I have to do this again at every startup. :(
What I'm missing here?
But consider also this point: I'd really like to solve this problem from a wider point of view: since I have many projects (in the same workspace) that share the same dependencies of "FOO_APPLICATION",
is there a way to setup sources or javadocs once and made them available throughout the whole workspace?
If the sources are present in the target platform as individual Source Bundles, the source is automatically displayed.
As far as I know, there's nothing comparable for Javadoc.

Vaadin: error when trying to load add-on

I am developing an application in Java using Maven and Vaadin 6 for some time now.
I've come to a point where I need to add an add-on (Vaadin calendar 1.3.0 - for Vaadin6).
I've added the maven dependency and repository in my pom.xml file as suggested on the link attached, Maven did download my dependency jar file and it is in the WEB-INF/lib directory.
However, when I try to load the page with the add-on I get the following error message (in browser):
Widgetset does not contain implementation for com.vaadin.addon.calendar.ui.Calendar. Check its #ClientWidget mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions. Unrendered UIDL:
From what I understood the widget set is not compiled. But I do not know how to do this...
I tried to install the Vaadin-plugin in Eclipse. It says on their website that when the vaadin plugin detects a widgetset in the path, it is automatically compiled.
I've also tried to follow the tutorial for using vaadin addons, but still no luck: http://vaadin.com/directory/help/using-vaadin-add-ons
Did you run into similar problems? What should I do? How do I compile the widget set?
Some useful tips please? :)
Your help is very appreciated.
UPDATE: I've tried to follow the steps from this tutorial: https://vaadin.com/book/vaadin6/-/page/addons.maven.html
now whenever I try to load the application I get the following error:
Failed to load the widgetset:
/myproj/VAADIN/widgetsets/...../TheNewFileCreatedAsInTutorial.nocache.js
If you already have installed the eclipse vaadin plugin, try compiling manually as described in section 16.2.2.

Installing roo in 5 minutes

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

GAMA agent based modeling 1.5.1 issue with Eclipse Indigo sr2 and PDE plugin "unable to open editor" message

I am using the GAMA framework for agent based modeling, which relies on Eclipse Indigo SR2. I was not sure if this was a GAMA issue or an Eclipse issue, so I am posting to both the GAMA help as well as Stackoverflow.
So I am using Eclipse Indigo Modeling Framework and I cannot seem to load the .product file for the Plugin. Whenever I try and load it, it just shows "unable to open editor" in the Product Configuration Editor window. There is really no message or error indicated, so I am not sure how to debug this one. I thought I might be missing a plugin, but it seems that the GAMA svn project will download all of the plugins necessary. Any suggestions would be appreciated. I have included a picture to demonstrate the issue.
Figured this one out. In this case, you need to click on the Java perspective before it will work. So the omission was simply changing the perspective. Good lesson though.

Categories