Languages
 
 
 
 
Follow Me



 
 

New project with maven (small help note)

  Tagged

Once in a while I need to make small java applications maybe for testing some library, maybe as helper applications. As for me the fastest way to do this, is use maven archetype mechanism. But new project creation command not very user friendly since it required several parameters that you need to remember (‘-DarchetypeGroupId’ or ‘-DgroupId’). As solution you can make small help script and put it into your projects folder.

As quick solution I make small shell script (new_project.sh) that can be used for fast start:

#!/bin/sh

PROJECTNAME=$1
if test $# -eq 0
	then
		echo "Please include project name as first parameter"
		exit 1
fi

mvn archetype:create \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DgroupId=com.kobyleha.$PROJECTNAME \
  -DartifactId=$PROJECTNAME

cd $PROJECTNAME
mvn install
mvn eclipse:eclipse

So now any time I need to have new project I just type:

./new_project.sh some_project_name

And then open already exists project in eclipse.

P.S. of course shell script can be much improved, as example it can be done as some wizard. Any way I think this small tip can help for someone in future.

Share this

thomas burberryIn the recent years

We've along with 10 yuan around Taobao acquired powerful Red flashlight, a great quality is usually dreamed. This is where a PC gaming desk comes in extremely handy because these are specifically designed for gamers. A 2005 study published in the "Journal of Physical Education, Recreation and Dance" found that chi gong can contribute to the quality of life of older adults. Smaller sized grills that are simple to carry generally cost below Twenty us dollars burberrys bags, therefore you may want to think about buying a separate grill for small events.. Bake at 350 degrees for around 15 minutes until bottoms of cookies are starting to get golden brown.. Color wise it presents a neutral outer shell with its unequivocally black coating while slipping somewhat into the progressive era with its plastic constitution. Safety is the most important concern that must be kept in mind while driving your car. I had a moment today with my daughter at the mall. Revenue provided from the food area is answerable to 75 % pertaining to Illycaffe's total money in the Truly present, based on the insurer. Fragrance like the incense stick, burning candles, perfumes or air fresheners are the most used fragrances by quite a number of people to achiever the desired atmosphere but very few we consider the harm they may be causing to the environment or their families. It the type of gift that not many would think about, but who doesn't want to wear the same as Angelina Jolie or Halle Berry? Or Fergie, or Victoria or. If you can find the perfect match for your car then you should consider ordering customer car floor mats for your vehicle.. All too often burberry pea coat, women buy hairbrushes just because and put little thought into the type they purchase. The best fabric stores in Australia offer high-class to very formal fabrics, which can include silk, cotton, linen, wool, and unique and beautiful beading and French laces. For Charlie Brown, the year revolves around the baseball season and he is rarin to go in the March 10, 1975 strip mind that it is a blizzard outside! There an extended story sequence where Snoopy and Linus go hunting for truffles and up on a farm where they meet a little girl whose name just happens to be Snoopy and Linus then end up in a competition of the affections of the new girl. Compared to past models, this Michael Kors watch is lighter with a weight of just 10.56 Ounces only. With it being a snugger fan thomas burberry, you don't have to worry about your child hurting themselves by holding up their arms. A great deal of home owners make use of a cordless drill at some time or other.Related articles:

Post new comment

CAPTCHA
Are You Human/Bot?
 
© 2006-2010 kobyleha.com