之内,并将其依赖关系作为一个单独的jar下载到内部的依赖关系中?将maven依赖关系作为一个单独的.jar下载到
我的使用情况:
下载(org.apache.felix.http.servlet-API:1.1.0),然后将其复制到一个文件夹。
从MVN仓库(http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.http.servlet-api)可以得到它作为一个单一的罐子。
在本地构建我使用Maven的依赖关系的插件:
<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>
现在,它复制org.apache.felix.http.servlet-API而不是作为一个单独的jar,但作为2罐子的。第一个jar是(org.apache.felix.http.servlet-api),第二个jar是tomcat-servlet-api。在依赖关系的依赖列表中提到了这一点。
我怎样才能下载并复制到一个文件夹org.apache.felix.http.servlet-api作为一个单一的jar(与从mvn仓库下载相同的格式)?
谢谢, 彼得