简体   繁体   English

无法使用 Gradle 导入 com.tibco.tibjms.TibjmsQueueConnectionFactory

[英]Cannot import com.tibco.tibjms.TibjmsQueueConnectionFactory with Gradle

so I've been working on migrating a Maven project over onto a Gradle one.所以我一直致力于将 Maven 项目迁移到 Gradle 项目上。 While doing so, I can across a class called TibjmsQueueConnectionFactory that I've been trying to figure out how trying to import.这样做时,我可以跨越一个名为TibjmsQueueConnectionFactory的 class,我一直在试图弄清楚如何尝试导入。 I've found most of my other imports on MVNRepository however, none of the ones I try for this one seem to work.我在MVNRepository上找到了我的大部分其他导入,但是,我为这个尝试的所有导入似乎都不起作用。

This is basically all I'm trying to do:这基本上就是我想要做的所有事情:

// https://mvnrepository.com/artifact/com.tibco/tibjms
    implementation group: 'com.tibco', name: 'tibjms', version: '1.0'

I did see somewhere that Tibco may not exist at that location at all, and maybe I'll have to download a jar file, but I'm not sure if this is the case or not.我确实在某处看到 Tibco 可能根本不存在于该位置,也许我必须下载 jar 文件,但我不确定是否是这种情况。 Has anyone else had this issue before?以前有没有其他人遇到过这个问题? How did you resolve it?你是怎么解决的?

A possible maven project pom dependency solution is available in this answer .答案中提供了一个可能的 maven 项目 pom 依赖解决方案。 You can get tibjms-4.1 from pom uploaded in openmindonline repo which has TibjmsQueueConnectionFactory .您可以从 pom 上传到具有TibjmsQueueConnectionFactoryTibjmsQueueConnectionFactory中获取tibjms-4.1 We are not able to access other version from icm .我们无法从icm访问其他版本。

Add openmindonline repo information in your repositories block in your build.gradle在 build.gradle 的存储库块中添加build.gradle存储库信息

repositories {
    // You can declare any Maven/Ivy/file repository here.
    maven {
        url "http://repository.openmindonline.it/"
    }
}

Then add implementation 'tibco-ems:tibjms:version:4.1' in dependencies block.然后在dependencies项块中添加implementation 'tibco-ems:tibjms:version:4.1'

If you have jar file available locally, you can follow solutions available in this question .如果您在本地有可用的 jar 文件,您可以遵循此问题中提供的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM