我想从依赖项中获取资源文件并将其放到我的类路径或其他目录中。我尝试了 maven-dependency-plugin 但似乎我没有正确配置它。有谁知道该怎么做?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>get browsers.xml</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<includeGroupIds>ru.fad.autotests</includeGroupIds>
<includeArtifactIds>selenium-grid-browsers-local</includeArtifactIds>
<includes>browsers.xml</includes>
<outputDirectory>resources/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
我在另一个工件中有文件“browsers.xml”,并希望将其复制到我的目录中。