VOOZH about

URL: https://www.javacodegeeks.com/2015/05/wildfly-9-on-netbeans-eclipse-intellij-openshift-and-maven.html

⇱ WildFly 9 on NetBeans, Eclipse, IntelliJ, OpenShift, and Maven - Java Code Geeks


WildFly 9 CR1 was recently released. Lots of cool features are included:

And this is above the usual Java EE 7 compliance!

This blog is a quick check to verify that it works in all three major IDEs and OpenShift.

WildFly 9 and NetBeans

Lets start with NetBeans 8.0.x first. The screenshot shows WildFly 9 CR1 configured in NetBeans and started. The log is shown in the console.

πŸ‘ wildfly9cr1-netbeans801

Complete instructions to setup WildFly in NetBeans are in NetBeans 8 and WildFly 8.

WildFly 9 and Eclipse

Getting Started with JBoss Tools and WildFly 8 shows how to configure WildFly with JBoss Tools. Here are the series of snapshots that shows configuring WildFly 9 in JBoss Tools with Eclipse Mars M6.

A new experimental runtime …

πŸ‘ wildfly9cr1-eclipse-experimental

Specify the directory …

πŸ‘ wildfly9cr1-new-runtime-1024x671

Now WildFly 9 is configured as a Server in Eclipse …

πŸ‘ wildfly9cr1-eclipse-servers-1024x866

And finally the server is up and running …

πŸ‘ wildfly9cr1-eclipse-console-1024x678

Complete details, including download and update center coordinates, are explained at JBoss Tools Alpha 2 for Eclipse Mars.

WildFly 9 and IntelliJ

WildFly 8 and IntelliJ IDEA Screencast provide complete details on how to setup IntelliJ with WildFly. The snapshot below shows WildFly 9 configured in IntelliJ 14.1.2.

πŸ‘ wildfly9cr1-intellij14-1024x341

WildFly 9 and OpenShift

Creating an OpenShift application is pretty straightforward as well:

tmp> rhc app create wildfly -s https://raw.githubusercontent.com/openshift-cartridges/openshift-wildfly-cartridge/wildfly-9/metadata/manifest.yml
The cartridge 'https://raw.githubusercontent.com/openshift-cartridges/openshift-wildfly-cartridge/wildfly-9/metadata/manifest.yml' will be downloaded
and installed

Application Options
-------------------
Domain: milestogo
Cartridges: https://raw.githubusercontent.com/openshift-cartridges/openshift-wildfly-cartridge/wildfly-9/metadata/manifest.yml
Gear Size: default
Scaling: yes

Creating application 'wildfly' ... Artifacts deployed: ./ROOT.war
done

 WildFly 9 administrator added. Please make note of these credentials:

 Username: adminXXXXXXX
 Password: XXXXXXXXXXXX
 
 run 'rhc port-forward wildfly' to access the web admin area on port 9990.

Waiting for your DNS name to be available ... done

Cloning into 'wildfly'...
Warning: Permanently added the RSA host key for IP address 'NN.NN.NN.NN' to the list of known hosts.

Your application 'wildfly' is now available.

 URL: http://wildfly-milestogo.rhcloud.com/
 SSH to: XXXXXXXXXXXXXXXXXXXXXXXX@wildfly-milestogo.rhcloud.com
 Git remote: ssh://XXXXXXXXXXXXXXXXXXXXXXXX@wildfly-milestogo.rhcloud.com/~/git/wildfly.git/
 Cloned to: /Users/arungupta/tmp/wildfly

Run 'rhc show-app wildfly' for more details about your app.

This creates a new application and uses WildFly 9 as the underlying application server. Complete details about the OpenShift cartridge are at github.com/openshift-cartridges/openshift-wildfly-cartridge/tree/wildfly-9. You can find about how to create an OpenShift application with an existing application, how to connect to this WildFly instance using JBoss CLI.

WildFly 8 CR1 on OpenShift also provide more details.

WildFly 9 and Maven

WildFly Maven Plugin  provide the latest information about how to get started with WildFly Maven plugin.

But you just need to fire up a WildFly server as:

wildfly-9.0.0.CR1> ./bin/standalone.sh -c standalone-full.xml

And then deploy the Java EE 7 Movieplex application as:

mvn wildfly:deploy -DskipTests

And the plugin definition is very simple:

<plugin>
 <groupId>org.wildfly.plugins</groupId>
 <artifactId>wildfly-maven-plugin</artifactId>
 <version>1.0.2.Final</version>
</plugin>

Enjoy!

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

πŸ‘ Photo of Arun Gupta
Arun Gupta
May 6th, 2015Last Updated: May 6th, 2015
0 138 2 minutes read

Arun Gupta

Arun is a technology enthusiast, avid runner, author of a best-selling book, globe trotter, a community guy, Java Champion, JavaOne Rockstar, JUG Leader, Minecraft Modder, Devoxx4Kids-er, and a Red Hatter.
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz