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
Post a Comment