I followed the steps described at the docs for Cloud Tools for IntelliJ, I got installed the plugin, and I also created a project following the wizard:
This is what the skeleton generated:
I go to the run/debug configs
And there's the server, but no deployment
I add my code to src folder, idk if it's necessary to create the main>java>com.example.project structure
And here's where I'm stuck, how do I generate openApi specs? how to I build and deploy to App Engine? I've seen configurations with gradle and maven, but don't know that much about each one, If any of both is needed I would prefer to work with gradle, but I would like the steps to do it.
Related
I am using VS Code to compile and debug my Spring Boot Java project with help of Gradle. I recently added Redis dependency to my project. The project compiles in Eclipse, but throws error in VS Code.
I'm not sure this answer becomes helpful to you or not but,
Normally VS code is not comes with default configurational setting of spring boot.
Spring boot project not able to run without dependencies.
So Because of your project not able to find relevant dependencies so it is generate this errors.
It solved using download plugin of vscode-spring-initializer and / or others.
If you need more detail then,
Try recognize your spring boot project in different IDE like IntelliJ or Eclipes. You see that there is some extra files are there like following,
External Libraries - which handle by maven kind of tool for load dependency.
.iml file in intellij : File which handle development module(contain plugins, module and other details).
This files are not existing there so that it generate issue.(That are different based on IDE)
If you have recently modified the pom.xml or build.gradle config file, you need right click on pom.xml or build.gradle file and then run the menu "Update project configuration" to force the language server to update the project configuration/classpath. Otherwise, the java language server cannot recognize the newly added dependency.
I'm trying to migrate a netbeans/ant gwt project to an eclipse/maven gwt project.
For that I used the archetype gwt-maven-archetypes, to create a maven project, and after that I copied the sources.
I had succesfully been able to run codeserver and the application itself, using maven comands, as suggested by the archetype author. I even can debug on chrome dev console.
The problem, is that I want to debug from eclipse, and it seems eclipse gwt plugin, doesn't support the current structure.
Any ideas?
Thanks
I ended up, giving up this archetype, and I'm using now simple webapp maven archetype. I figured it out, but still a little tricky on my project.
So, as #ElHoss, has suggested I'm using SDBG. Besides that, I'm not using jetty, but my own tomcat installation, so I've followed this video instructions, together with the SDBG page video's instruction.
At the end, I have 3 Running Configuration items:
The one that starts Tomcat;
The one that starts codeserver;
Chrome Launcher, as instructed on SDBG page.
If you need plus information, please comment.
Thanks.
can anyone give me the right scenario to make a maven web project and deploy a war using it in intellij idea with maven 3.2 and tomcat 7/8 and java 8.i'm having trouble with configuring and the folder structure about it and deployment of the web mainly
from memory if you ask IntelliJ to create a new project you should be able to select maven project from the options and then use the maven web app arche type to have it create a skeleton web project for you.
This is from IntelliJ 15 CE but I doubt its that much different in 14. Notice the checking of the create from archetype box
I'm new to Java EE development and I heard that If I have to learn the Java EE then the Spring MVC is best choice to learn and get Command of.
After downloading STS 3.6 bundle I'm having some troubles/issues in creating Maven Project. My STEPS are
1- Create new project
2- Error Dialog
It appears that you either don't have Maven installed, or your IDE is not aware of the installation. For the former problem, have a look here. For the latter problem, view this page for IDE you are using:
Eclipse
I would also like to recommend to get started with Spring using the Spring Tool Suite by using Spring Boot and the guides at http://spring.io/guides. You can import those guides directly into STS and start from there.
I also face with this thing too, but I found a solution that just update Maven project by right click on project -> Maven-> Update Project... or (Alt+F5) then check on force to update as image below :
It works perfect for me.
NOTE** internet connection is required
I have created project using Spring Tool Suite IDE, with below navigation.
New -> Spring Starter Project
But outcome was always simple maven M2 project with error symbol.
After project build completion I have updated maven project with option "Force Update of Snapshots/Release".
It turned my project M2 project into M2S Project
Thanks
we recently migrated to Maven Build manager & git hub repository for our Java web-app. Also i switched to eclipse as eclipse has good set of plugins.
As a new bie, i am simply running mvn clean package from terminal at the code root directory. And then moving the compiled code i.e., /target/SNAPSHOT/* to tomcat/webapps/ROOT location.
And then starting Tomcat7 server. The process is time taking especially when i do code changes in Java & configuration .xml files.
I want to do it completely in IDE environment as i did earlier in Netbeans, update code -> build and run in debug mode, -> do code changes and then commit.
Heard of egit & m2e in eclipse for maven & github integration, but not sure how to use it.
Please walk me through the steps required in doing so. I am completely new to eclipse.
--
Thanks
You might want to consider using maven-jetty-plugin http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin for running the webapp. You will not need to copy over stuff to tomcat. After configuring this plugin, you can simply run your application by doing mvn jetty:run
I generally do not like running webapps inside Eclipse. It's a personal prefrence, but it is always nice to have an IDE neutral way of building and running your applications. If you have m2e things should work simply fine. I have seen maven-jetty-plugin having hot pluggability where if you changed your web.xml, jetty would reload your application.
We use Git for version control and Maven for dependency management and build automation. Once your project has successfully imported into Eclipse and recognized as a valid java web project, you don't need either Git or Maven in order to build/run it inside IDE. Just creat a server using you existing tomcat installation, add the project to server, then select Run as > Run on Server.
The Complete Guide:
Creating a server
Adding projects to a server
Starting a server
For more details, check out Testing and publishing on your server.