【发布时间】:2014-08-18 02:19:04
【问题描述】:
有一个 maven 子模块项目,包括 main\resources 中的一组 dll。如何从我的其他模块项目访问?
maven profile检测来宾操作系统并下载类似于Resolving a Maven dependency differently if the JVM in use is x86 or x64?的dlls子模块项目
【问题讨论】:
有一个 maven 子模块项目,包括 main\resources 中的一组 dll。如何从我的其他模块项目访问?
maven profile检测来宾操作系统并下载类似于Resolving a Maven dependency differently if the JVM in use is x86 or x64?的dlls子模块项目
【问题讨论】:
你可以在你的 pom.xml 文件中引入一个资源
<project>
<build>
<resources>
<resource>
<directory>${Submodule_path}</directory>
<includes>
<include>*.dll</include>
</includes>
<targetPath/>
</resource>
</resources>
</build>
</project>
其他选项是使用“build-helper-maven-plugin”并在那里介绍您想要的来源。
【讨论】: