我想将pom文件的依赖项复制到特定目录中。但其中一个依赖是包装类型" pom"我想在特定目录中复制此pom的依赖项。 我正在使用maven-dependency插件来复制依赖项。
我的项目pom.xml如下所示:
@media (min-width: 992px) {
.container {
width: 670px!important;
}
}
@media (min-width: 1200px) {
.container {
width: 670px!important;
}
}
另一件神器的pom看起来像f.ex.像这样:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<groupId>org.company</groupId>
<artifactId>any-artifact</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.company</groupId>
<artifactId>other-artifact</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/libs</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
我怎样才能达到,我也可以复制pom文件中的依赖项。