Install Eclipse Maven plugin and import maven project

With new versions of Eclipse old m2e plugins have become absolute now you need to install eclipse plugins from eclipse market place. Follow below steps to install m2e plugins along with required GWT plugins. I have tried below steps with Eclipse (Kepler) Install GWT eclipse plugin Help -> Eclipse Marketplace. Search with string GWT install Google Plugin for eclipse 4.3. Install maven plugin open Eclipse Marketplace and search for m2e-wtp look for Maven Integration for Eclipse WTP Juno (1. [Read More]

maven properties not being substituted inside resources

You need to add following configuration which indicates those resources need to be processed and property values will be replaced. By default Maven resources plug-in will not do property value substitution (filtering), so it will need to be enabled within the <build> section of the pom.xml file. Filtering value true will enable the resources processing and substitute property values. In addition to that one can include/exclude the resources <build> ..... . [Read More]

Advantage of using Maven over ant.

What is Maven? It is a tool that can be used for build process and managing Java project. The way ant is used for build process of Java projects. But it does it very smartly and you can set-up your Java project very fast. Advantage of using Maven over Ant. With ant you have to do everything on your own, you have to write lot of code/configuration in build.xml. Where as maven is simple, easy and with minimal code you can start. [Read More]

Start with maven

Start with Maven To start with Maven lets create a sample application which will result into artifact packaged into .jar. Maven being build system for Java application, you need to have following software’s installed on your machine and set few environment variables. JDK may be latest version at least jdk 1.6. Maven installation download latest version. Set Maven’s bin directory into path variable so that it is accessible from anywhere. Set JAVA_HOME environment variable pointing to required JDK installation It is very easy to create simple jar project with the help of Maven archetype (in short it is a Java project templating tool, which has different templates to create different kinds of projects. [Read More]

Create Maven GWT project and setup eclipse project

Using Maven archetype you can very easily create the gwt project in Maven. Follow below steps to create the same. Assumption: You have latest version of maven installed (Tried the below steps with 3.0.3 version) mvn archetype:generate It will ask for archetype to use specify 258 (gwt-maven-plugin). Then it will ask for other details like any other archetype asks for, enter the required details. And it will create the given GWT project with the details you have entered with a sample application. [Read More]

Setup eclipse project from a Maven project

Note: Below steps will work for 2.x and later version’s of Maven project. Assumption: You know eclipse. Eclipse version details: I would recommend to use latest version of Eclipse (Helios was the latest version while writing this blog and steps are tried with the same). If you know how to install eclipse plugin then you can skip install steps and install following two plugins http://m2eclipse.sonatype.org/sites/m2e http://m2eclipse.sonatype.org/sites/m2e-extras Install maven eclipse plug-in for more details refer. [Read More]