我开始使用IntelliJ,并且多年没有使用Java。我一直在.Net世界中工作。我正在使用IntelliJ创建Atlassian Crowd Custom Connector。我需要为pom.xml包的com.atlassian.crowd.manager.directory文件添加一个依赖项。我相信下面的依赖项块是正确的,除了版本。人为因素正确吗?我使用其他依赖关系来推导这一点。如何找到正确的版本?

谢谢,
汤姆

<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>


然后,在POM的<dependencies>部分中添加所需的依赖关系,而无需像下面那样指示版本:

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


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

10-07 18:59
查看更多