Peter, thanks for the reply. Yes I made a mistake and did not give any execution in the pom.
I have modified the pom. Now I'm getting 3 jars.
bls-inquiry-tracking-1.0-SNAPSHOT-jar-with-dependencies.jar
bls-inquiry-tracking-1.0-SNAPSHOT-sources.jar
bls-inquiry-tracking-1.0-SNAPSHOT.jar
The MF file in the 1st jar is
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 1.5.0_12-b04 (Sun Microsystems Inc.)
And when I try to run it I get the following error :
C:\projects\bls-inquiry-tracking\target>
java -jar bls-inquiry-tracking-1.0-SNAPSHOT-jar-with-dependencies.jar
Failed to load Main-Class manifest attribute from
bls-inquiry-tracking-1.0-SNAPSHOT-jar-with-dependencies.jar
The Mf file of bls-inquiry-tracking-1.0-SNAPSHOT.jar is still the same as what was in my previous post.
Here is my modified pom.xml