我在 Eclipse/Java 上下文中的 download-maven-plugin 遇到问题。我已经运行了,但在剩下的两点上需要帮助,我无法找到解决方案。
首先,这是我的 pom.xml 中的代码片段:
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://testserver.com/svn/development/documents/Operations_Manual.docx</url>
<outputFileName>Operations Manual.docx</outputFileName>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
- 我没有找到关于如何下载两个文件而不是一个文件(相同的 src-dir,相同的 target-dir)的正确解决方案
我想选择一个目标目录,它在文件夹结构中与 {project.build.directory} 又名目标目录位于同一级别。我已经尝试过类似的方法:
${project.build.directory}/../src/doc
什么当然不起作用。如果您能找到解决方案,那就太好了。
提前致谢!
最佳答案
我已经解决了这个问题,只需再添加一个 <execution> ... </exection>
任务。这就是全部的魔力。
关于java - "download-maven-plugin"- 要下载多个文件并重新定位输出目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46832794/