我开始使用 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/