0

我有 java maven 项目,我在其中使用 opencv api。我必须设置 dll 的环境路径,这是在本地运行我的项目所必需的。现在我想在 openshift 的 tomcat 7 上安装我的应用程序,我需要通过我的战争以某种方式导出这些 dll。现在我得到不满意的链接错误。

我试图将 dll 作为 pom 文件的依赖项并将 dll 添加到 maven 本地存储库,但没有运气。我使用了这个命令:

mvn install:install-file -Dfile=filedll -DgroupId=com.file -DartifactId=file  -Dversion=2.45 -Dpackaging=dll -DgeneratePom=true

<dependency>
    <groupId>com.file</groupId>
    <artifactId>file</artifactId>
    <version>2.45</version>
    <scope>runtime</scope>
    <type>dll</type>
</dependency>

当我尝试建立战争时,出现以下错误:

远程:[错误] 无法在项目服务上执行目标:无法解析项目 pl.test:service:war:1.0 的依赖项:在 eap( http://maven)中找不到工件 com.file:file:dll:2.45 .repository.redhat.com/techpreview/all ) -> [帮助 1]

也许我应该在 pom 文件中设置?

我对你的所有想法持开放态度:) 谢谢,Wojtek

4

0 回答 0