Deploy using JBoss and Intellij - java

Currently I am deploying my Java Spring code using JBoss server. What I am doing each time I do a change to code is
build the project using mvn clean install
Copy created war file to \wildfly-10.1.0\standalone\deployments
Deploy using $ ./standalone.sh --debug 8787
This works fine but the procedure is too long. Is there a method easier than this using Intellij IDE or another method.

sorry i have no idea with Intellij and JBoss,
but with Maven project you should try JBoss Devstudio Red Hat JBoss Developer Studio
it's free and is Eclipse extended
you will can run instantly and debug your java code directly.

Related

Apache Netbeans 11.3 could not run web maven projects under Apache Tomee(plume, microprofile, plus)

Recently I have big problem, Netbeans could not run any web/maven project under TomEE.
Just create simple maven web project and run. TomEE server start but unable to deploy WAR.
Then you run TomEE from console and build WAR and copy to TomEE/webapps, it works.
JDK version is no matter, I have JDK 1.8 and 11.
From first run TomEE go to background and run as a separated thread.
Redeploy and rebuild does not help, you must restart netbeans, kill all java processes.
Installed all latest version of netbeans.
My OS Ubuntu Linux, my coworkers also have the same problem, this problem starts from last week.
all problem solved by installing apache netbeans 12

Connecting IntelliJ to weblogic server

I have a server that it has weblogic on its own. I develop my program with intelliJ. Can I connect intelliJ to the weblogic server and just run and deploy the project from intelliJ (just like when we use Tomcat application server on our local and start/stop that with intelliJ)?
You indeed can. You can create a Run/Debug configuration for WebLogic same way as for Tomcat, but you might see it as an option only after you click N items more (irrelevant), which is at the very bottom of the list.
Also, this is supported only in Ultimate edition. If you're using community edition, you can't do that from the IDE.
The process of configuration is also described in Intellij IDEA's guides

running spring mvc openshift application locally

I have created an Java app on openshift platform with JBoss Application Server 7 and MySQL 5.5 using eclipse and Jboss Openshift Tools. Now I wannt to run this application on localhost but I am unable to find any option to do so.
I googled and followed some links and was able to create jboss-as-7.1.1 server but cannot figure out how to run the application using this server as there is not option to select a server in Run As window of eclipse. Do i need to modify anything in project settings?
Did you create a server adapter for your jboss-as-7.1.1 in Eclipse? I assume you did so it looks like your project is missing the required Eclipse WTP nature. Maven project (like any OpenShift Java app) get those for free if you have m2e-wtp installed. To me it looks like you're missing that one (and eventually possibly Eclipse m2e) and need to install it.
Either use the Eclipse marketplace or point Eclipse to the following update site:
http://download.eclipse.org/m2e-wtp/releases/luna/

JBoss EAP 6.0 in Eclipse (Kepler): How do you run a custom script at startup?

I have a project that runs in JBoss EAP 6.0. However, it currently requires that a custom script (.bat) is run at startup.
This is possible in IntelliJ. When settings up a Run/Debug Configuration, a tab is provided titled "Startup/Connection" in which a "Startup script" can be targeted.
Eclipse is my preferred IDE but it does not appear to have this option. I have tried several things without any results.
I know in Eclipse, you can select which JBoss config file you choose to run on the Server view after you create a new Server config.
Alternatively, you can modify JBoss running scipt which will call your custom script.
Go to Eclipse Marketplace and try installing Jboss Tools and you should be able to start server and whole lot of other options.
Go to Help> Eclipse Marketplace and search "Jboss tools" and install the appropriate for your version of eclipse.

Is it possible to get the exact maven command from an eclipse build process?

Short Version:
Is there a way to get at/inspect the command that Eclipse uses to build my maven project, in order to run that command from the command line?
Long Version:
I'm trying to set up an automated build/deploy process, which uses maven from the command line. Basically what I want to do is:
Run a Maven Build
Kill the running server
Delete the current .war and exploded directory
Copy built .war file to server
Start the server
The build process on my developer machine is tightly integrated with Eclipse. I've attached a server (Tomcat 6) which I can stop/start/publish etc all within Eclipse.
However when I build from the command line using mvn clean package (still on my development machine), the package that is built does not seem to build correctly (the build is successful, but encounters errors upon deployment).
Now I could probably spend some time trying to figure out the perfect command to get it properly working, but I figured that if it works within Eclipse, I could probably find the exact command that is needed. But I can't seem to find it.
Is it possible to get at this command?
System Info:
OS: Windows 7
Eclipse Version: Juno Service Release 2 (Build id: 20130225-0426)
Server: Tomcat 6.0.32
Maven: 3.0.5
Java: JDK 6.0_43
I think, that it's quite impossible, since Eclipse uses mostly API calls (even for compiling your project, if you use the m2e plugin), not calls to some shell scripts or applications.
Of course you could request the API calls with some sort of profiling tools, but it wouldn't help you since you would have to implement the calls yourself.

Categories