我使用Maven的依赖-plugin插件解压依赖性。解压罐子:: Android项目
运行
MVN依赖的时候,我可以看到解压缩罐(那些需要在编译阶段)目标/依赖下:解压依赖性
但是相反,如果我跑
mvn clean install
我收到编译错误。
我怎能让行家知道,要使用这些解压罐子编译和安装时?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>com.group</includeGroupIds>
<includeArtifactIds>zippedArtifact</includeArtifactIds>
<includes>x.jar,y.jar</includes>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
我需要用罐子,什么是使用Maven的依赖,插件,如果它仍然必须去与唯一来源? – nish1013