- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在尝试 ivy:install
时遇到异常jersey-bundle 1.19.1
模块到本地(基于文件系统)ivy 解析器。我已经成功地使用下面更短的代码重现了这个。
我在 ivysettings.xml
中定义了两个解析器以下。一是公众ibiblio
解析器,另一个是本地(基于文件系统的解析器),我想将 ibiblio
中的模块(及其依赖项)复制到其中。 :
<ivysettings>
<settings defaultResolver="public" />
<resolvers>
<ibiblio name="public" m2compatible="true" />
<filesystem name="fs-local">
<ivy
pattern="/tmp/local-ivy-repo/[organisation]/[module]/ivys/ivy-[revision].xml"/>
<artifact
pattern="/tmp/local-ivy-repo/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
</filesystem>
</resolvers>
</ivysettings>
使用上面的ivysettings.xml
然后我将以下 Ant 文件写入 ivy:install
我感兴趣的模块:
<project name="local repository importation" default="install-locally">
<target name="install-locally" description="import module from public Maven repository and install into local filesystem repository" xmlns:ivy="antlib:org.apache.ivy.ant">
<ivy:settings id="ivysettings-ibiblio-to-local" file="ivysettings.xml"/>
<ivy:install settingsRef="ivysettings-ibiblio-to-local"
organisation="com.sun.jersey"
module="jersey-bundle"
revision="1.19.1"
from="public"
to="fs-local"
transitive="true"
overwrite="true"/>
</target>
</project>
当我执行(使用 Ant
)上述文件时,我最终收到以下消息:
:: problems summary ::
:::: WARNINGS
module not found: org.eclipse.persistence#org.eclipse.persistence.moxy;2.3.2
==== public: tried
https://repo1.maven.org/maven2/org/eclipse/persistence/org.eclipse.persistence.moxy/2.3.2/org.eclipse.persistence.moxy-2.3.2.pom
-- artifact org.eclipse.persistence#org.eclipse.persistence.moxy;2.3.2!org.eclipse.persistence.moxy.jar:
https://repo1.maven.org/maven2/org/eclipse/persistence/org.eclipse.persistence.moxy/2.3.2/org.eclipse.persistence.moxy-2.3.2.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.eclipse.persistence#org.eclipse.persistence.moxy;2.3.2: not found
::::::::::::::::::::::::::::::::::::::::::::::
这显然是警告而不是错误(不确定这种情况下的差异有多重要)。寻找/tmp/local-ivy-repo/
目录中我看到许多模块和 jar(包括 jersey-bundle
)。
另一方面,如果我尝试拉下 jersey-bundle
来自公共(public)存储库的依赖项(不使用 ivy:install
在本地“安装”它),例如使用以下 Ant 文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant"
basedir="."
default="retrieve-ivy-deps"
name="foo">
<target name="retrieve-ivy-deps"
description="resolve and retrieve dependencies with ivy">
<ivy:settings file="ivysettings.xml"/>
<ivy:resolve file="ivy.xml"/>
<ivy:retrieve conf="with-transitive"
pattern="ivy-jars/[artifact]-[revision](-[classifier]).[ext]"
sync="true"
type="jar, bundle"/>
</target>
</project>
...以及以下 Ivy 文件:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="foo" module="bar"/>
<configurations>
<conf name="with-transitive" description="IVY jars with transitive dependencies"/>
</configurations>
<dependencies>
<dependency org="com.sun.jersey" name="jersey-bundle" rev="1.19.1" conf="with-transitive->default"/>
</dependencies>
</ivy-module>
...然后,我没有看到任何错误或警告,并且在操作结束时我在 ivy-jars
中看到两个文件目录:jersey-bundle-1.19.1.jar
和jsr311-api-1.1.1.jar
.
我的问题是:
ibiblio
拉取模块jersey-bundle 1.19.1
及其所有传递依赖项,不会失败,但无法 ivy:install
它?换句话说,为什么成功的案例会成功,失败的案例会失败?
default
配置: <dependency org="com.sun.jersey" name="jersey-bundle" rev="1.19.1" conf="with-transitive->default"/>
)。但只下载了 2 个 jar。与此相反,当我查看ivy-1.19.1.xml
时当我查看 /tmp/local-ivy-repo/
时,我看到大约 20 个依赖项,即使在失败的情况下也是如此。目录我看到了所有这些(除了 moxy 2.3.2
)。为什么会出现这种差异?最佳答案
在安装任务上使用如下配置:
<ivy:install organisation="com.sun.jersey" ... conf="compile"/>
包含配置映射始终是个好主意。该错误似乎是检索不存在的可选“提供”范围依赖项时出现的问题。
├── build.xml
├── ivysettings.xml
└── local-ivy-repo
├── com.sun.jersey
│ └── jersey-bundle
│ └── ivys
│ ├── ivy-1.19.1.xml
│ ├── ivy-1.19.1.xml.md5
│ └── ivy-1.19.1.xml.sha1
└── javax.ws.rs
└── jsr311-api
├── ivys
│ ├── ivy-1.1.1.xml
│ ├── ivy-1.1.1.xml.md5
│ └── ivy-1.1.1.xml.sha1
└── jars
├── jsr311-api-1.1.1.jar
├── jsr311-api-1.1.1.jar.md5
└── jsr311-api-1.1.1.jar.sha1
<project name="demo" default="build" xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="build">
<ivy:install organisation="com.sun.jersey"
module="jersey-bundle"
revision="1.19.1"
from="public"
to="fs-local"
transitive="true"
overwrite="true"
conf="compile"/>
</target>
</project>
<ivysettings>
<settings defaultResolver="public" />
<resolvers>
<ibiblio name="public" m2compatible="true" />
<filesystem name="fs-local">
<ivy pattern="${ivy.settings.dir}/local-ivy-repo/[organisation]/[module]/ivys/ivy-[revision].xml"/>
<artifact pattern="${ivy.settings.dir}/local-ivy-repo/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
</filesystem>
</resolvers>
</ivysettings>
关于java - org.eclipse.persistence.moxy;2.3.2 : not found when resolving jersey-bundle 1. 19.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44525727/
这个问题已经有答案了: Difference between $Bundle install and $Bundle update (2 个回答) 已关闭 9 年前。 bundle 之间有什么区别,
我正在尝试加载 Nib ,但不断收到以下错误: -[NSViewController initWithCoder:] could not instantiate an NSViewController
bundle有什么区别& bundler命令? bundle有什么区别& bundle install ? 如果没有区别,为什么有多个命令做同样的事情? 最佳答案 可执行文件 bundle & bun
我们有托管在应用程序中的单元测试。要加载测试资源,我们使用:Bundle(for: TestClass.self).path(forResource: "some-file", ofType: "js
我刚刚克隆了一个新的 repo 并尝试运行 bundle install但出现以下错误 Fetching gem metadata from https://abcderepos.net/api/ge
我添加了一个共享框架来在应用程序和 watch 扩展之间共享代码。后来我删除了共享框架,因为它会导致很多问题。我可以 build 并在 iphone 上运行我的应用程序并观看。然而,当我提交到应用商店
这个问题有点类似于 this one ,但不完全是。我有一个 C# 游戏引擎,我正在与一些想要使用我的引擎的人一起工作。最初我设计了引擎,以便所有 Assets 都是外部的——非程序员可以创建艺术、音
我正在尝试使用 OSGi 实现客户端-服务器模型。服务器应用程序是在计算机中运行的 OSGi 框架,客户端应用程序远程连接到其控制台并通过 Java 套接字发送命令并接收正确的响应。每个客户端应用程序
我目前正在将我的 Angular 2 应用程序与 WebPack bundle 在一起。我们仍在快速循环,因此我们不想在构建和应用程序加载过程中增加延迟,而是希望包括很少更改的 Angular 2 U
基本上,我有一个捆绑软件,经常在其他 View 中使用,加上其他js文件,因此我可以在保留其顺序的同时将这些文件添加到现有捆绑软件中吗? 最佳答案 我到处都在查找它,但找不到将两个捆绑软件合并在一起的
我有一个大约 12GB 的巨大 mercurial 存储库。我需要在另一台机器上克隆它,但是从网络中提取它需要花费很多时间。当我尝试将所有变更集 bundle 到一个 bundle 文件中时,文件的大
我可以使用 Sonata User Bundle 将 FOS 包集成到 sonata Admin 包中。我的登录功能正常。现在我想添加 FOSUserBundle 中的更改密码等功能到 sonata
如果我检查使用 angular-cli 创建的 angular 2 项目的 index.html 文件,我可以看到该页面仅包含 dist 文件夹中的 3 个文件: inline.bundle.js v
我从程序包管理器http://localhost:4502/crx/packmgr/index.jsp中从正在运行的AEM实例下载了一个zip文件。提取后的zip文件包含jcr_root和META-I
已经提出了有关捆绑名称和捆绑显示名称的类似问题,例如: What's the difference between "bundle display name" and "bundle name" in
我正在尝试在 iTunes 上上传我的应用程序。为此,我创建了一个应用程序 ID 并保留了一个包标识符。在我的项目中,我更改了 info.plist 文件中的包标识符。但是,当我尝试在 itunes
我想从 OSGI 包启动 OSGI 包。正如您所看到的,此代码通过从目录部署它来启动 bundle : private void installStartBundle(BundleContext bc
所以这真的让我头疼,我终于放弃了,在这里发表了问题。我正在尝试更新iTune商店中的一个客户端应用程序,并且在上传到App Store时遇到以下错误。 因此,我已经尝试通过两次使用包sid id创建新
我在 typescript 中使用 aurelia,我想避免使用像这样的相对导入路径: import { DialogBox } from '../../resources/elements/dial
有什么区别 ResourceBundle.getBundle("Bundle") 还有这个 ResourceBundle.getBundle("/Bundle") 最佳答案 来自the Java do
我是一名优秀的程序员,十分优秀!