建筑弹簧批量样品应用

Sha*_*ane 9 spring-batch

我正在尝试为春季批次2.1.6构建示例应用程序.(即spring-batch-2.1.6.RELEASE/samples/spring-batch-samples)使用maven但是因为缺少插件而出现此错误:

[错误]插件com.springsource.bundlor:com.springsource.bundlor.maven:1.0.0.RELEASE或其中一个依赖项无法解析:找不到com.springsource.bundlor:com.springsource.bundlor.maven: jar:http://repo1.maven.org/maven2中的1.0.0.RELEASE 被缓存在本地存储库中,在中心的更新间隔过去或强制更新之前,不会重新尝试解析 - >

我可以设置另一个存储库来获取此插件吗?我有点惊讶得到这个错误,因为这是春季批次的最新版本.

这是下载时pom中的存储库部分:

<repositories>
    <repository>
        <id>com.springsource.repository.bundles.external</id>
        <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle External</name>
        <url>http://repository.springsource.com/maven/bundles/external</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>
Run Code Online (Sandbox Code Playgroud)

Esk*_*ola 5

项目的父pom具有bootstrap包含必要的存储库定义的配置文件.使用该命令构建项目,mvn test -P bootstrap它将下载依赖项.

PS这在自述文件的说明中解释了如何构建Spring Batch.如果他们还会告诉如何在使用样本的说明中做到这一点会很好 - 也许您可以提交错误报告?

  • 啊! 我使用的是错误的Maven版本.我不得不使用Maven 2.2.x(我使用的是3.0.x).最后,我得到了它. (2认同)