Maven Repo: Could not resolve dependencies ... - GitLab

文章推薦指數: 80 %
投票人數:10人

The problem is while building the parent project, it fails to find the dependency. Below are the repository settings for both: Dependency ... GitLab Projectinformation Projectinformation Activity Labels Members Repository Repository Files Commits Branches Tags Contributors Graph Compare LockedFiles Issues 43,719 Issues 43,719 List Boards ServiceDesk Milestones Iterations Requirements Mergerequests 1,363 Mergerequests 1,363 CI/CD CI/CD Pipelines Jobs Schedules TestCases Deployments Deployments Environments Releases Packages&Registries Packages&Registries PackageRegistry ContainerRegistry InfrastructureRegistry Monitor Monitor Metrics Incidents Analytics Analytics Valuestream CI/CD Codereview Insights Issue Repository Snippets Snippets Activity Graph Createanewissue Jobs Commits IssueBoards Collapsesidebar Closesidebar Opensidebar GitLab.orgGitLab Issues #36076 Closed Open CreatedNov11,2019bysb30@sb30 MavenRepo:Couldnotresolvedependencies-Couldnotfindartifact Hello, IamworkingonapipelineformyJava/Mavenprojects.WehaveahostedGitlabwithmaven-repoenabledandhavetwoprojectswhereoneisdependentontheother. ThedependencybuildsjustfineandIcanseetheartifactdeployedunderthepackagesfolderoftheproject.Theproblemiswhilebuildingtheparentproject,itfailstofindthedependency. Belowaretherepositorysettingsforboth: DependencyProject: my-repo https://gitlab.xyz.net/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven my-repo https://gitlab.xyz.net/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven ParentProject: my-repo https://gitlab.xyz.net/api/v4/projects/**dependency_project_id**/packages/maven my-repo https://gitlab.xyz.net/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven my-repo https://gitlab.xyz.net/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven OntheparentprojectpomItriedusingbothprojectlevel(withprojectidhardcoded)andgrouplevelurlsinthebutneitherseemtowork. Ialsotestedusinganexternalmavenrepo(Artifactory)andeverythingseemtoworkjustfine. Belowistheerrormessage: [ERROR]Failedtoexecutegoalonprojectparent:Couldnotresolvedependenciesforprojectcom.xyz.abc.io:parent:jar:0.0.1-SNAPSHOT:Couldnotfindartifactcom.xyz.abc.io:child:jar:0.0.1-SNAPSHOTinmy-repo(https://gitlab.xyz.net/api/v4/projects/**dependency_project_id**/packages/maven) Pleaseletmeknowifyouneedanymoreinfo. Assignee Selectassignee(s)Assignto Timetracking



請為這篇文章評分?