I have a locally created jar: scp-commons.jar classes of which I want to package in my executable jar: main.jar
package structure in scp-commons.jar: com.sample.commons.*
Package structure in main.jar: com.sample.client.*
When I build with maven, the build is successful , but the classes of scp-commons.jar are not packaged in my main.jar due to which the jar throws a class not found exception.
Given below is my pom.xml from main.jar project
`<dependencies>
<dependency>
<groupId>_GroupID1_</groupId>
<version>1</version>
<artifactId>scp-commons</artifactId>
<scope>system</scope>
<systemPath>${user.lib.path}\src\main\webapp\WEB-INF\lib\scp-commons.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${compiler.version.source}</source>
<target>${compiler.version.target}</target>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>toola-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assemblytoola.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>com.sample.client.pat.toola.CpatToolA</mainClass>
</manifest>
</archive>
<finalName>CPATToolA</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>`
Any help in this regard would be appreciated.