I want to create a runnable jar using the below pom.xml and i dont get the expected jar. Please do the needful.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>testjar</groupId>
<artifactId>testjar</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<url>http://maven.apache.org</url>
<properties>
<jdk.version>1.5</jdk.version>
<lib>lib/</lib>
</properties>
<repositories>
<repository>
<releases />
<id>repository</id>
<name>repository</name>
<url>file:///data/apps/dev/projects/maven/repository</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${lib}/log4j.jar</systemPath>
</dependency>
</dependencies>
<build>
<finalName>testjar</finalName>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>testApp</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
</project>