java - How to resolve issue with Maven dependencies "Failed to execute goal on project" -


i have got following structure in eclipse of maven projects:

mainmavenproject ---myproject ---mproject-client ---mproject-xyz ---mproject-web ... 

in eclipse, use jboss 7.1 run mproject-web:

jboss

now, want run jetty project. directory /mainmavenproject/myproject run command

mvn -djetty:port=8081 jetty:run 

it has been finished error:

[error] failed execute goal on project myproject: not resolve dependencies project ***.*****.myproject:myproject:war:0.0.1-snapshot: following artifacts not resolved: ***.*****.********:myproject-client:jar:1.0. 1-snapshot, com.*****.********:mproject-xyz:jar:1.0.1-snapshot: failure find ***.*****.********:myproject-client:jar:1.0.1-snapshot in https://*********.*****.com/nexus/content/groups/development cached in local repository, resolutio n not reattempted until update interval of *****-central has elapsed or updates forced -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

in myproject, use depedencies other ones:

<dependency>     <groupid>com.*****.********</groupid>     <artifactid>myproject-client/artifactid>     <version>1.0.1-snapshot</version> </dependency>  <dependency>     <groupid>com.*****.********</groupid>     <artifactid>mproject-xyz</artifactid>     <version>1.0.1-snapshot</version> </dependency> 

how can check, happend , after that, how fix it?

thank in advance

try running mvn install on main project first.

your project missing other modules, have never been installed local repository.

not have run install every time before running jetty:run.

an alternative use eclipse, right click myproject -> run -> maven build..., enter -djetty:port=8081 jetty:run in goals field , check "resolve workspace artifacts".


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -