Skip to main content

Posts

Showing posts with the label Maven

How To Solve "Error: Could not find or load main class org.codehaus.classworlds.Launcher while building Maven 3.0.4"

I was trying to solve this error in my Ubuntu. Since I need to build Hue /Spark Application and when run the "make apps" or "mvn --version" command on terminal, I was getting " Error: Could not find or load main class org.codehaus.classworlds.Launcher while building Maven 3.0.4 This error ate all my day almost. Finally found a solution on one website. Just you need to uninstall old maven versions or existing maven. and sudo apt-get purge maven maven2 maven3 sudo apt-add-repository ppa:andrei-pozolotin/maven3 sudo apt-get update sudo apt-get install maven3  Thanks a lot to those guys for a great help.

How to Install Maven ?

Nowadays its very common for Java developers to use Maven tool for building war or ear file their applications instead of ant tool. Since Maven provides an easiest way of building and managing version of applications and relieves you from build path configurations in your eclipse ide. Of course many people knows how to configure how to download and configure maven in their machines. But I want to post it on my blog for my reference and newbies in java world. Just follow the below steps:  Make sure Java (version 1.5 or 1.6 or 1.7 ) is installed on your machine and "JAVA_HOME" variable is added to environment variable list on windows as shown below image.(Windows start -> My Compuetr-> Right Click on ->Properties ->Advanced System Settings ->System Settings-> Click on "Environment Variables") Download latest version of Maven (apache-maven-3.3.3-bin.zip) from Apache Website: http://maven.apache.org/download.cgi to the directory on you...

Java.Warning - Build path specifies execution environment J2SE-1.6

When you creat a Java Maven Project in the Eclipse, your Eclipse may show the following warning " Build path specifies execution environment J2SE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment. " To get resolve from this project setup issue by following steps. Solution: Go to your project   ---> Properties ---> Java build path : Libraries --->Remove the "JRE System Library[J2SE 1.6]" ---> Click "Add Library" button -> JRE System Library ---> Select the new "Executin Environment" or Workspace default JRE Hope your problem is solved now.

What is Maven? What Are The Features It Has?

Maven, a Yiddish word meaning accumulator of knowledge, was originally started as an attempt to simplify the build processes in the Jakarta Turbine project. There were several projects each with their own Ant build files that were all slightly different and JARs were checked into CVS. We wanted a standard way to build the projects, a clear definition of what the project consisted of, an easy way to publish project information and a way to share JARs across several projects. The result is a tool that can now be used for building and managing any Java-based project. We hope that we have created something that will make the day-to-day work of Java developers easier and generally help with the comprehension of any Java-based project. Maven's Objectives Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal wi...

Java Libraries - Maven

Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. The following are the key features of Maven in a nutshell: Simple project setup that follows best practices - get a new project or module started in seconds Consistent usage across all projects means no ramp up time for new developers coming onto a project Superior dependency management including automatic updating, dependency closures (also known as transitive dependencies) Able to easily work with multiple projects at a time A large and growing repository of libraries and metadata to use out of the box, and arrangements in place with the largest Open Source projects for real-time availability of their latest releases