java - 尝试使用 IntelliJ 添加对 Atlassian pom.xml 的依赖项

标签 java maven intellij-idea atlassian-crowd

我开始使用 IntelliJ,并且已经很多年没有使用 Java 了。我一直在.Net 世界工作。我正在使用 IntelliJ 创建 Atlassian Crowd 自定义连接器。我需要为 com.atlassian.crowd.manager.directory 包的 pom.xml 文件添加依赖项。我相信除了版本之外,下面的依赖项 block 是正确的。 Artifact 正确吗?我使用其他依赖项来导出它。如何找到正确的版本?

<dependency>
    <groupId>com.atlassian.crowd</groupId>
    <artifactId>manager-directory</artifactId>
    <version>2.8.8</version>
</dependency>

最佳答案

您似乎正在寻找以下依赖项 atlassian-crowd-components .

为了能够使用它,您必须将以下部分添加到您的 pom.xml

<repositories>
    <repository>
        <id>pentaho-releases</id>
        <url>http://repository.pentaho.org/artifactory/repo/</url>
    </repository>
</repositories>

将您的依赖项部分替换为以下部分:

<dependencyManagement>
 <dependency>
    <groupId>com.atlassian.crowd</groupId>
    <artifactId>atlassian-crowd-components</artifactId>
    <version>2.9.5</version>
    <type>pom</type>
 </dependency>
</dependencyManagement>

然后,在<dependencies>内POM 的部分添加所需的依赖项,而不指示版本,如下所示:

 <dependencies>
   <!-- other dependencies ... -->
   <dependency>
     <groupId>com.atlassian.crowd</groupId>
     <artifactId>crowd-core</artifactId>
   </dependency>
  </dependencies>

您可以从 this URL 找到所有依赖项

关于java - 尝试使用 IntelliJ 添加对 Atlassian pom.xml 的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41446517/

相关文章:

从文件加载 sqlite3 db 的 Java 系统命令失败

java - JRebel 不更新 HTML

java - Solr和java项目版本控制

java - 将项目转换为分面形式后导入无法解决

java - Intellij 13 在调试时不保存/编译

java - 新补丁后 Android Studio 无法启动

java - 在 Java 中自动处理电子邮件

java - 带换行符的 Bash 输入重定向

java - 如何通过单击 recyclerview 中的项目在具有 Web View 的新 fragment 上加载网站?

java - 由 : java. lang.NoClassDefFoundError : Could not initialize class org. elasticsearch.common.lucene.Lucene 引起