Maven- Creating a Jar together with its dependency Jars into a single executable Jar file Suppose your boss comes and ask you to create a standalone JAVA application. Assuming you being a MAVEN lover, you created a JAVA application using MAVEN dependency management tool. Now suppose you have some MAVEN dependencies that are needed by your JAVA application. Since, it’s ... Read More »
Tag Archives: maven
Differences between the commands “mvn clean package” and “mvn clean install”
Well, both will clean. That means they’ll remove the target folder. Package will compile your code and also package it. For example, if your pom says the project is a jar, it will create a jar for you when you package it and put it somewhere in the target directory (by default). Install will compile and package, but it will ... Read More »
Create a J2EE Web Application project with Apache Maven
In this tutorial, we will learn how to create a J2EE Web Application project with Apache Maven, imports it into the Eclipse IDE, and package the Java project into a war file. Tools used : Maven 3.2.5 (For how to install, click here) Eclipse (Kepler Release) JDK 7 A. Create a Java Project from Maven Template In a terminal (*uix ... Read More »
Create a Java project with Apache Maven
In this tutorial, we will learn how to create a Java project with Maven, imports it into the Eclipse IDE, and package the Java project into a jar file. Tools used : Maven 3.2.5 (For how to install, click here) Eclipse (Kepler Release) JDK 7 A. Create a Java Project from Maven Template In a terminal (*uix or Mac) or ... Read More »
Installing Apache Maven on Ubuntu & Windows
To install Apache Maven on Ubuntu and Windows machine we need to take the following steps- Download the current stable version of Maven from http://maven.apache.org/download.cgi. Once downloaded follow the istallation steps – Installation Instructions A. Unix-based Operating Systems (Linux, Solaris and Mac OS X) Extract the distribution archive, i.e. apache-maven-3.2.5-bin.tar.gz to the directory you wish to install Maven 3.2.5. These ... Read More »
Jkoder.com Tutorials, Tips and interview questions for Java, J2EE, Android, Spring, Hibernate, Javascript and other languages for software developers