could not resolve dependencies for project

From this page https://github.com/serenity-bdd/serenity-demos i downloaded the file which I imported to eclipse. I tried to run tests from the «jbehave-webtests» project. During running these tests I’m getting following error:

I run the test with this goal: clean verify I think that base directory is correctly set «$«

How can I resolve this problem? Thanks for any advice.

Содержание

  1. 2 Answers 2
  2. Not the answer you’re looking for? Browse other questions tagged maven maven-3 serenity-bdd or ask your own question.
  3. Related
  4. Hot Network Questions

2 Answers 2

As you can see on the maven repository: serenity-bdd,

There is no version 1.1.22 available. Only rc versions are available for download. Either you can change the dependency to use one of those 1.1.22-rc.x jars or you can upgrade to 1.1.24 and above series.

When you get such error it means jar is not downloaded from MVN repo due to some reason, Reason can be wrong version or no connection etc.

Try to find proper version in MVN repo in link shared below, and also try to check in .m2 folder if jar is downloaded

Some time is maven fails to download a jar file if .lastupdated extension is created. Make sure you delete that file before update.

Never build your project without resolving all dependencies.

Add this in your POM,

Or find required version from list here

Not the answer you’re looking for? Browse other questions tagged maven maven-3 serenity-bdd or ask your own question.

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 4.0 with attribution required. rev 2019.11.15.35459

I have a problem with building a project Farma-rest which depends on my other project Farma. I put dependency in my pom.xml but it couldn’t resolve dependencies for the project. It shows me this error message:

Failed to execute goal on project Farma-rest: Could not resolve dependencies for project sk.upjs.ics:Farma-rest:jar:1.0-SNAPSHOT: Could not find artifact sk.upjs.ics:Farma:jar:1.0-SNAPSHOT -> [Help 1]

Here is the pom of the first project:

And here is the POM of the project which I want to build:

I tried to clean and build the project but it didn’t helped.

This is supposed to be a working project from my friend. He demonstrated the project right in front of me, and then I copied the project, imported it as an existing maven project (I’m using m2eclipse plugin).

And then, this error occurs. This error can be reproduced every time I try to build something with maven.

Doing mvn dependency:tree, dependency:list, or the usual build package, will result in the same error.

The error from running the ‘package’ build from eclipse is:

And here is the content of the pom.xml :

I’ve tried downloading the newest version of maven, and included it in the eclipse helios, but still the same problem. The same error message happens even when I run it it in the shell command line (outside eclipse).

Источник: computermaker.info

Понравилась статья? Поделиться с друзьями:
Ок! Компьютер
Добавить комментарий