java - Could not find parent artifact xxxxx:pom:2.0-SNAPSHOT -


i have parent project xxx-third, has nothing pom declaring dependencies , build configurations.

after deploy nexus , can find in nexus web,i declare xxx-thrid parent project of myproject.

howerver, still have maven error complaining cound not find artifact com.mycom:xxx-third:pom:2.0-snapshot @ com.mycom:myproject.

but if install locally code, problem resolve, annoying! why , how solve it?

it because artifact in local .m2 repository on local machine, can't downloaded remote respository build server. local repostiory in path:

{user_home}\.m2\repository\ 

you can copy required dependency local repository local repository on build server, read jar dependecy local repo instead of fetching remote repo.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -