我在Eclipse/Java-context中的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,相同的目标目录)的正确解决方案
我想选择一个目标目录,它在文件夹结构中与 {project.build.directory} 又名目标目录位于同一级别。我已经尝试过类似的东西:
${project.build.directory}/../src/doc
什么当然没有用。如果您有解决方案,那就太好了。
提前感谢!
我已经解决了这个问题,只需再添加一个<execution> ... </exection>
任务即可。这就是整个魔术。