为JBehave教程项目指定了哪些正确的maven依赖项?

时间:2015-06-25 01:51:47

标签: java spring maven jbehave

我想在https://github.com/jbehave/jbehave-tutorial学习Jbehave-tutorial项目的java spring部分。

README.MD陈述了底层建筑的要求:

Building the tutorial has been tested with Maven 3.0.5-3.2.1 and JDK 1.6-1.7. Newer versions of Maven and JDK should work but could also present issues.If you find any, please report them via JIRA

在我的计算机上我的计算机我正在运行Maven版本:3.3.3和STS版本:3.6.4用于64位Windows 7。

如果我可以在StackOverflow上解决此问题,我真的不想创建Atlassian帐户来解决此问题。

所以这些是我在我的机器上构建JBehave-tutorial所采取的步骤:

  1. git clone https://github.com/jbehave/jbehave-tutorial.git
  2. mvn clean install -Pstable#在主父文件夹'jbehave-tutorial'中发布 enter image description here
  3. 作为现有的maven项目导入Spring Tool Suite(STS)。
  4. 在STS收到以下错误: enter image description here
  5. enter image description here

    这让我相信maven没有正确下载和构建这些依赖项,所以我查看了.m2 \ repository \ org \ jbehave文件夹,这就是我所看到的。 enter image description here

    有没有人让这个工作? 有什么变通方法? 在pom.xml中为JBehave教程项目指定了哪些正确的maven依赖项?

2 个答案:

答案 0 :(得分:0)

我没有立即明确您的具体情况,但这里是使用没有Spring的JBehave所需的依赖项。 (例如下面的pom - 如果你的用户场景是小黄瓜,你只需要小黄瓜)。

https://stackoverflow.com/questions/30685909/jbehave-dependencies-not-available-in-central-maven-repo

我也会冒这样的猜测,你需要在适当的版本中使用以下内容。

<dependency>
    <groupId>org.jbehave</groupId>
    <artifactId>jbehave-spring</artifactId>
    <version>4.0.3</version>
</dependency>

答案 1 :(得分:-1)

Maven找不到&#34; SNAPSHOT&#34;依赖。 您需要google&#34; Maven +依赖名称,而不指定版本&#34;并检查它们的最新版本,并在pom文件中进行适当的更改。

例如,我有jbehave-web-runner版本3.6-beta-2 NOT 3.6-SNAPSHOT

相关问题