-1
https://developer.atlassian.com/static/javadoc/jira/4.1.2/reference/com/atlassian/jira/user/util/UserManager.html 我在atlassian庫中找不到UserManager接口。 誰知道圖書館可以找到什麼?其中庫是com.atlassian.jira.user.util?
import com.atlassian.jira.user.util.UserManager;
找不到它
<repositories>
<repository>
<id>central</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-core</artifactId>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugins.rest</groupId>
<artifactId>atlassian-rest-common</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>0.28.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.crowd</groupId>
<artifactId>crowd-integration-client</artifactId>
<version>2.9.0-m6</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-api</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-plugin</artifactId>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-user-profile-plugin</artifactId>
<version>3.0.5</version>
</dependency>
</dependencies>
運行>mvn clean install
> [ERROR] Failed to execute goal on project TaskPlanning: Could not resolve dependencies for project TaskPlanning:TaskPlanning:jar:1.0-SNAPSHOT: Failed to collect dependencies for [com.atlassian.jira:jira-api:jar:7.0.0 (provided),
com.atlassian.jira:jira-core:jar:7.0.0 (provided),
com.atlassian.plugins.rest:atlassian-rest-common:jar:1.0.2 (provided),
com.atlassian.activeobjects:activeobjects-plugin:jar:0.28.7 (provided),
com.atlassian.crowd:crowd-integration-client:pom:2.9.0-m6 (compile),
com.atlassian.fugue:fugue:jar:2.2.1 (compile),
com.atlassian.jira:jira-rest-java-client-api:jar:4.0.0 (compile),
com.atlassian.jira:jira-rest-plugin:jar:7.0.0 (provided),
com.atlassian.jira:jira-rest-java-client-core:jar:4.0.0 (compile),
com.atlassian.jira:jira-user-profile-plugin:jar:3.0.5 (compile),
mysql:mysql-connector-java:jar:5.1.36 (runtime),
log4j:log4j:jar:1.2.17 (compile),
org.apache.httpcomponents:httpclient:jar:4.4.1 (compile),
net.sf.flexjson:flexjson:jar:2.1 (compile)]: Failed to read artifact descriptor for jta:jta:jar:1.0.1: Could not transfer artifact jta:jta:pom:1.0.1 from/to central (https://m2proxy.atlassian.com/repository/public): Connect to m2proxy.atlassian.com:443 [m2proxy.atlassian.com/54.210.154.80,
m2proxy.atlassian.com/23.22.66.118,
m2proxy.atlassian.com/52.21.63.114] failed: Connection timed out: connect -> [Help 1]
的IntelliJ IDEA 2016 Maven3
好吧,請閱讀錯誤。當maven嘗試從m2proxy.atlassian.com下載時,您會看到連接超時。如果你可以連接到https://maven.atlassian.com/repository/public,那麼只要保持該回購併刪除m2proxy。有關Atlassian Maven Repositories的更多信息,請訪問:https://developer.atlassian.com/docs/advanced-topics/working-with-maven/atlassian-maven-repositories – GlennV
無法加載依賴關係。 此回購修復它 {代碼 Atlassian的基團公開 https://maven.atlassian.com/content/groups/public/ 真 從未 updatePolicy> 警告 checksumPolicy> 真 警告 CH ecksumPolicy> code} –