How to download mvn dependency as a single jar with it's dependencies embedded inside ?
My use case:
Downloading(org.apache.felix.http.servlet-api:1.1.0) and then copying it into a folder.
From MVN repository(http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.http.servlet-api) can get it as a single jar.
In local build I use maven-dependency-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>/Users/user/dev/fun/felix-framework-5.0.0/bundle</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
Now, it copies org.apache.felix.http.servlet-api not as a single jar, but as 2 jar's. First jar is the (org.apache.felix.http.servlet-api), second jar is tomcat-servlet-api. Which is mentioned in the dependency list of my dependency.
How can I just download and copy to a folder org.apache.felix.http.servlet-api as a single jar(same format as download from mvn repository) ?