0
得到了一個Maven子模塊項目,其中包括主\ resoursces中的一組dll。我如何從我的其他模塊項目訪問?如何訪問Maven依賴庫的主要/資源?
Maven的輪廓檢測來賓操作系統和下載DLL的子模塊項目類似Resolving a Maven dependency differently if the JVM in use is x86 or x64?
得到了一個Maven子模塊項目,其中包括主\ resoursces中的一組dll。我如何從我的其他模塊項目訪問?如何訪問Maven依賴庫的主要/資源?
Maven的輪廓檢測來賓操作系統和下載DLL的子模塊項目類似Resolving a Maven dependency differently if the JVM in use is x86 or x64?
你可以在你的pom.xml文件中引入資源
<project>
<build>
<resources>
<resource>
<directory>${Submodule_path}</directory>
<includes>
<include>*.dll</include>
</includes>
<targetPath/>
</resource>
</resources>
</build>
</project>
其他選項是使用「build-helper-maven-plugin」,介紹有你想要的來源。