问题标签 [versions]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
269 浏览

java - maven 版本没有看到 nexus 部署

我们使用 Hudson 和 Nexus,除了更新依赖的版本之外,它们运行良好。

在发布一个模块之后,我想升级其他一些模块以查看新发布的版本 - 比如说 Project-A-1.0.0-SNAPSHOT 依赖于 Project-B-1.0.0-SNASHOT,项目 B 被发布并成为项目-B-1.0.0,我现在希望项目 A 依赖于 B 的已发布版本。

为此,我们可以使用 maven 版本插件,并使用版本:使用最新版本。我在本地 Windows 命令行上执行此操作,Hudson/Nexus 基于网络。似乎只有在我删除本地存储库的 metadata.xml 文件(由版本插件使用)时它才会起作用,因为这与公司存储库最近发布的版本不是最新的。

我在这里做错了吗?通过运行versions:display-dependency-updates,很清楚maven会更新什么。有没有办法使 metadata.xml 过期或更新它(将 repo 上的更新设置设置为始终不是一个选项,因为这会减慢速度)

0 投票
0 回答
1934 浏览

devise - Cucumber BDD 与 capybara 并设计集成

作为我之前关于 SO的问题的后续,我已经按照https://github.com/RailsApps/rails3-devise-rspec-cucumber/wiki/Tutorial上的教程虔诚地尝试查明我的测试失败的根源。

我的基本情况失败:

这些是我的步骤:

即使我的测试用户已正确创建,登录也会失败。使用 save_and_open_page 表明 capybara 按预期填写表单,因此这似乎是一个设计问题。

我想知道组件是否存在集成问题,因为我使用的是 rails 3.0 设置(本教程在 3.1 上)。

我的环境正在使用以下内容:

  • 红宝石 1.8.7
  • 导轨 3.0.3
  • 水豚 1.0.0
  • 黄瓜 1.0.0
  • 设计 1.2.rc
  • 耙子 0.9.2
0 投票
1 回答
5495 浏览

python - 如何使用 boto 和 python 从存储桶中删除 s3 版本

当我尝试使用以下行删除存储桶时:

它告诉我我试图删除的存储桶不是空的。

存储桶中没有键。但它确实有版本。

如何删除版本?

我可以使用 bucket.list_versions() 查看版本列表

Java 在其 s3 连接上有一个 deleteVersion 方法。我在这里找到了该代码:

http://bytecoded.blogspot.com/2011/01/recursive-delete-utility-for-version.html

他这样做是为了删除版本:

博托有什么可比的吗?

0 投票
2 回答
119 浏览

iphone - 为 10 个不同的用户提供不同版本的同一 iPhone 应用程序

下面的要求可以吗?

如何为 10 个不同的用户制作 10 个不同版本的同一个 iPhone 应用程序?

0 投票
3 回答
10347 浏览

java - Maven 2 - 测试和编译中的不同依赖版本

我有一个依赖于 commons-httpclient [2.0](编译)的项目。

我想写一些 jbehave 测试 - jbehave-core 3.4.5 (test)。这两个依赖项都依赖于 commons-lang,但版本不同 - 1.0.1 和 2.5。

依赖

当我执行mvn package时,我在测试部分得到 [BUID FAILURE]。在surefire-plugin输出中我的测试用例有一个例外:

正如我在源代码中查看的那样——在 commons-lang 1.0.1 中——确实,没有 StringUtils.substringBeforeLast(...) 方法。为什么maven在测试中使用commons-httpclient(编译)而不是jbehave-core中的commons-lang?

我无法在 commons-httpclient 中排除这种冲突的依赖关系,因此它必须保持在编译时。

那么如何解决呢?- 测试中的 commons-lang 2.5 版本和编译时的 1.0.1。

0 投票
1 回答
1916 浏览

versions - 如何让 Management Studio 2008 Express R2 创建 SQL CE 4 文件

由于版本问题,我遇到了无法使用 SQL Server Management Studio 2008 Express R2 打开 SQLCE 4 数据库的问题。我已经检查过,我的程序文件中有 SQL CE 的“v3.5”和“v4.0”版本,所以我的 Management Studio 安装可能使用的是 3.5 而不是 4.0。如何强制 Management Studio 默认为 SQL CE v4.0?

我尝试删除程序文件中的“v3.5”文件夹,但是当我尝试通过管理工作室创建新的 SQL CE 数据库时,这会产生错误。

感谢大家的帮助...

0 投票
1 回答
349 浏览

java - JavaFX:为什么会有两种不同的风格?

我正在学习 JavaFX。我正在将它添加到 Java 桌面应用程序中,并且我正在使用 Netbeans 7 执行此操作。我一直在互联网上搜索 JavaFX 示例以了解我想做的任何事情(嵌入摇摆、设置背景、添加渐变、合并动画。 ..)。我发现了两种 JavaFX 样式。

我还发现这个http://netbeans.org/features/javafx/composer.html说 JavaFX 支持目前在 NetBeans IDE 7.0 中不可用。屏幕截图正在处理我在 Netbeans 7 中无法选择制作的 FX 项目。我确实有可以制作的示例 FX 项目,但这些确实是包含 FX 的 Java 项目(第一种 FX 风格)。

我的猜测是 JavaFX 在最新版本 JavaFX 2 中进行了一些重新设计。第二个示例是较旧的样式,而第一个示例是较新的样式。在我看来,第一个示例更像是对 Java 的补充,而不是一种单独的语言。

我猜对了吗?这两种风格的FX是怎么回事?

0 投票
2 回答
149 浏览

ios - 只有 4.3 SDK,也要 3.x

我知道这之前已经讨论过,但我没有引用大多数答案。正如您在这里的其他问题中所看到的那样,在使用 XCode 创建应用程序时,我是一个完全的新手。我只有 iOS 4.3 的 SDK。

我的一个朋友想要我的应用程序,但他只有 iPhone 3。他还没有升级到 iOS4。我看不出我的应用程序无法在较低的 iOS 版本上运行的任何原因,这很简单。

所以我想知道的是如何将以前的 SDK 添加到我的 XCode 库中?我是否只需下载带有 SDK 的先前版本的 XCode 并安装它?会砖XCode吗?如果是这样,那又如何?有什么我能做的吗,我真的很希望在编写时考虑到 3.x 及更高版本。

非常感谢没有行话的最简单,更直接的答案!

谢谢!

0 投票
1 回答
1204 浏览

macos - Shoebox / Library applications with Auto-Save & Versions in OS X Lion

We have a shoebox-style application that we want to make a first-class citizen in Lion. This means integrating Auto-Save & Versions among other things. Currently we don’t have a document-centric model and we just use a plain Core Data stack.

UIPersistentDocument provides a really easy way to integrate both Auto-Save & Versions and I see two options we could choose from to integrate with the new APIs:

  1. “Abuse” NSPersistentDocument for our shoebox-style application. Technically it would be a document-based application, but the user interface would still be the same iPhoto-like library. This makes conceptually not a lot of sense, but we would get a lot of functionality for free.
  2. Keep the current plain Core Data stack and implement Auto-Save & Versions manually.

I heard contradicting opinions from Apple representatives about the approach we should take and it would be great to clarify things before we start our implementation. While I think that 1. shouldn’t be used it’s also very tempting, because we get a lot for free. I couldn’t even find sufficient documentation on manually implementing Auto-Save & Versions in a Core Data application.

I would really tend to use 1. but I see some problems:

  • I’m worried about file-system-level conflicts when using versions and only one database-file. I couldn’t find any documentation regarding this topic.
  • I’m worried about performance issues in Versions when browsing through “space”.
  • We can’t enforce only one instance of the open database, since Versions has to open several instances. I’m worried about side-effects and concurrency issues. Conceptually it looks like a hack and I don’t like hacks.

If we would only want to integrate iCloud sync I definitely wouldn’t think about using a document-centric model for our application, because Core Data supports it directly. I’m mostly worried about the developer overhead we would have if we would stick to our current non-document based paradigm.

Do you have any advice or ideas how shoebox applications should be integrated in the new Lion world?

0 投票
1 回答
172 浏览

dll - 有意混合 opencv 版本

我有一个使用 OpenCV1.1 的项目,现在已经转为使用 OpenCV2.2。这个项目使用了opencv的人脸检测,这在2.2版本中恰好比1.1慢两倍左右。这种减速正在影响该项目的实时性能。

我想知道我是否可以在 1.1 中使用面部检测器,同时将 2.2 用于项目的其他非时间关键部分。所以我尝试了几件事,但效果有限。首先,我尝试在同一个项目中使用这两个版本,但我遇到了各种无法解决的构建问题。然后我尝试在 1.1 中仅使用面部检测器制作一个 dll,并在使用 2.2 的项目中使用此 dll。这行得通,但奇怪的是,尽管我可以测量人脸检测的速度增加(它是包装在 dll 中的 opencv1.1),但项目中的其余部分似乎已经放慢了速度。我不知道发生了什么,可能是opencv版本之间的一些内部冲突,死锁或类似的东西。

以前有人试过吗?任何帮助,将不胜感激

马丁。