I have a project managed by maven and few JARs in local lib directory.
<dependency>
<groupId>opencv</groupId>
<artifactId>org.opencv</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/opencv-249.jar</systemPath>
</dependency>
I need this jar will be included in resulting jar-with-dependencies file.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
Unfortunately maven seems to omit this dependency and is missing in the resulting file.