【发布时间】:2019-03-23 04:18:54
【问题描述】:
我正在尝试在 IntelliJ 上导入旧版应用程序,并且大多数模块都依赖于 com.ibm.tools.target.was 和 com.ibm.tools.target.portal 工件。
我在 IntelliJ 的 Maven 窗口中得到这个:
这是我在 mvn install 上收到的错误消息:
无法在项目 xxx-managers 上执行目标:无法解析项目 com.xxx.xxx.xxx-managers:xxx-managers:ejb:0.0.1-SNAPSHOT 的依赖关系:找不到 com.ibm.tools。 http://repo.maven.apache.org/maven2 中的 target:was:pom:8.0.0 已缓存在本地存储库中,直到 Central 的更新间隔已过或强制更新后才会重新尝试解析
我尝试模仿在 IBM 网络知识中心 (https://www.ibm.com/support/knowledgecenter/en/SSHR6W/com.ibm.websphere.wdt.doc/topics/install_server_apis.html) 中找到的类似程序,但没有成功。
我将 was_public.pom 添加为 maven 项目,并将该项目作为依赖项导入到我的其他模块。
我还尝试将 WebSphere 添加为库依赖项:
没有任何效果。
请帮忙,在此先感谢。 编辑:这是我的 settings.xml(我从应用程序工作的其他环境复制它),它包括 IBM 存储库:
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
<id>ibm-maven-repo</id>
<name>ibm-maven-repo</name>
<url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
<id>ibm-maven-repo</id>
<name>ibm-maven-repo</name>
<url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
</pluginRepository>
</pluginRepositories>
<id>standard-extra-repos</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>standard-extra-repos</activeProfile>
</activeProfiles>
</settings>
【问题讨论】:
-
我认为您需要在本地 repo 中安装依赖项,基于 WAS 的本地安装。试试这个链接developer.ibm.com/answers/questions/169427/…
标签: maven deployment websphere