Dav*_*ave 2 json jstl repository maven
我使用的是 Maven 3.1.1、Java 6 和 JBoss 7.1.3。我想将 JSP 上的对象呈现为 JSON,但是当我将它包含在我的 pom 中时
<dependency>
<groupId>json-taglib</groupId>
<artifactId>json-taglib</artifactId>
<version>0.4.1</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我收到这个通知...
[ERROR] Failed to execute goal on project myproject: Could not resolve dependencies for project org.mainco.subco:myproject:war:66.0.0-SNAPSHOT: Failure to find json-taglib:json-taglib:jar:0.4.1 in https://repository-myrepo.forge.cloudbees.com/release was cached in the local repository, resolution will not be reattempted until the update interval of cloudbees-private-release-repository has elapsed or updates are forced -> [Help 1]
Run Code Online (Sandbox Code Playgroud)
这个工件在任何公共仓库中都可用吗?我想避免下载工件或将其安装到只有我可以访问的存储库。或者,如果有一个可公开访问的库可以做同样的事情,我可以使用它。
编辑:根据给出的答案设置我的存储库指令,但仍然出现错误
<repository>
<id>atg-json-taglib</id>
<name>ATG JSON</name>
<url>http://maven.nuxeo.org/nexus/content/repositories/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
Run Code Online (Sandbox Code Playgroud)
您应该检查此存储库。
http://maven.nuxeo.org/nexus/content/repositories/public/atg/taglib/json/json-taglib/0.4.1/
您可以像这样添加 ths 存储库:
<repository>
<id>public</id>
<url>http://maven.nuxeo.org/nexus/content/repositories/public/</url>
</repository>
Run Code Online (Sandbox Code Playgroud)
并添加您的依赖项
<dependency>
<groupId>atg.taglib.json</groupId>
<artifactId>json-taglib</artifactId>
<version>0.4.1</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)