【发布时间】:2018-03-31 15:54:17
【问题描述】:
我在 Eclipse/Java-context 中的 download-maven-plugin 有问题。我让它运行起来了,但在剩下的两点上需要帮助,我无法找到解决方案。
首先,这是我在 pom.xml 中的代码 sn-p:
<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
当然没用。如果您对此有解决方案,那就太好了。
提前致谢!
【问题讨论】:
-
为什么需要使用下载插件来下载构建期间使用的工件?这听起来不对...此外,这意味着您的构建在版本控制中没有正确表示...
-
嗨,我的设置是:一个 git 存储库,其中包含所有代码和包含我的计划文档的 subversion,以及我想注入到最终包中的 Releaseletter 和操作手册。到目前为止,这两个 .docx 文件都包含在 git 存储库中,我想将其解绑,以便能够通过在 subversion 中打开它们来编辑这些文档。我的想法很糟糕吗?还有其他可能吗?
标签: java eclipse maven maven-plugin