Tech-Today
How to configure jrebel in eclipse with maven
This page is a compilation of instruction on how you can configure your eclipse with maven to autodeploy an ear or war using jrebel.
Prerequisites:
1.) eclipse with maven
2.) jrebel with license
Steps:
1.) Install jrebel plugin to eclipse using this guide:
http://zeroturnaround.com/software/jrebel/download/installing-jrebel-plugin-for-eclipse/
2.) You can ask jrebel to create your jrebel.xml file but for me it's much easier to create one and put it in your resources directory. Example with maven project: src/main/resources. For more details:
http://zeroturnaround.com/software/jrebel/how-to-configure-rebel-xml/
This is how my working configuration looks like:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath>
<dir name="C:\java\git\czetsuya-project\czetsuya-project\czetsuya-project-admin\web\target\classes" />
<dir name="C:\java\git\czetsuya-project\czetsuya-project\czetsuya-project-admin\web\src\main\resources" />
</classpath>
<web>
<link target="/">
<dir name="C:\java\git\czetsuya-project\czetsuya-project\czetsuya-project-admin\web\src\main\webapp" />
</link>
</web>
</application>
Hope it helps :-)
-
How To Generate Wadl Via Maven Plugin
So you've written your web service and would now want to create the wadl for it. Assuming you have your web project in eclipse with maven integrated this is what you have to do: 1.) Add the lines below to your pom, you may want to create it's...
-
Custom Application Context Or Name In Jboss Or Wildfly
As far as I know there are 3 ways to deploy an application in JBoss or Wildfly with a custom application context name. 1.) By adding jboss-web.xml in your web project WEB-INF folder; <?xml version="1.0" encoding="UTF-8"?> <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"...
-
How To Setup Your Google Code Repository To Be Accessible In Maven
This tutorial will teach us how we can setup a google code project, so we can make the artifact accessible via maven. Requirements: 1.) You should have an account in google code. The trick is just simply forming the correct url to be access by maven....
-
How To Clone A Project From Github And Import In Eclipse
This page will teach us how to clone a project from GitHub to your local repository and import in eclipse. Prerequisites: 1.) Windows/Ubuntu with JDK6/7. 2.) eclipse (I'm using Juno) with egit, m2eclipse, m2e-egit plugin (from eclipse marketplace)....
-
How To Setup Javarebel On Your Eclipse
Steps on how to setup javarebel on eclipse 1.) download javarebel, and extract in a directory 2.) buy a license and paste the jrebel.lic in the directory where you extract javarebel 3.) open JBoss Server View 4.) double click on Server 5.) click open...
Tech-Today