This Question is Answered

2 "helpful" answers available (2 pts)
12 Replies Last post: May 20, 2013 12:38 AM by Jim Collings  
Jim  Collings Newbie 47 posts since
Mar 11, 2009
Currently Being Moderated

May 17, 2013 1:13 AM

Help. Can't resolve maven dependency.

Problem is that even if I put the reference into the pom, it still  doesn't resolve. Worse: It builds fine from the commandline with no  changes at all.
Sure could use a clue or at least a methodology for getting one. Environment is Windows 7 + Cygwin.

 

The error is:

 

Couldn't find a version in [1.0.0.2, 2.0.0.1, 2.0.0.3, 2.0.0.4] to match range [1,2)
  net.collings.service.schema:Currency:tar.gz:null

 

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  nexus (http://central),
  thirdparty (http://mvnrepo.collings.net:6666/nexus/content/repositories/thirdparty),
  snapshots (http://mvnrepo.collings.net:6666/nexus/content/repositories/snapshots)

 

Path to dependency:
    1) com.collings.royalty:retardsApeAbility:jar:2.0-SNAPSHOT
    2) com.collings.royalty:royaltyApeAbilityInterface:jar:2.0-SNAPSHOT
    3) net.collings.service.retards:LZRetardsService:jar:1.0.0.6
    4) net.collings.service.retards:LZRetardsServiceTypes:tar.gz:model:1.0.0.6. Couldn't find a version in [1.0.0.2, 2.0.0.1, 2.0.0.3, 2.0.0.4] to match range [1,2)
  net.collings.service.schema:Currency:tar.gz:null

 

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  nexus (http://central),
  thirdparty (http://mvnrepo.collings.net:6666/nexus/content/repositories/thirdparty),
  snapshots (http://mvnrepo.collings.net:6666/nexus/content/repositories/snapshots)

 

Path to dependency:
    1) com.collings.royalty:retardsApeAbility:jar:2.0-SNAPSHOT
    2) com.collings.royalty:royaltyApeAbilityInterface:jar:2.0-SNAPSHOT
    3) net.collings.service.retards:LZRetardsService:jar:1.0.0.6
    4) net.collings.service.retards:LZRetardsServiceTypes:tar.gz:model:1.0.0.6.

Denis Zhdanov Expert 1,620 posts since
Oct 20, 2007
Currently Being Moderated
May 17, 2013 9:13 AM in response to: Jim Collings
Re: Help. Can't resolve maven dependency.

Hi Jim,

 

So, the problem is that target dependency is not found. Checked that it doesn't present at maven central and, according to the info you provided, it must be at http://mvnrepo.collings.net:6666/nexus/content/repositories/thirdparty. Could you check if it's really there?

 

Denis

Denis Zhdanov Expert 1,620 posts since
Oct 20, 2007
Currently Being Moderated
May 19, 2013 10:46 AM in response to: Jim Collings
Re: Help. Can't resolve maven dependency.

What do you mean under 'IntellJ still could not find them'? Could you provide a screencast wihch illustrates what you did?

 

Denis

Sergey Evdokimov Novice 174 posts since
May 11, 2010
Currently Being Moderated
May 19, 2013 5:17 PM in response to: Jim Collings
Re: Help. Can't resolve maven dependency.

Try to enable File -> Settings -> Maven -> Importing -> "Use maven3 to import project"

More Like This

  • Retrieving data ...