Gitlab CI/CD package repository not accessible in another project

Gitlab CI/CD package repository not accessible in another project

I have created a maven package registry. Registry created in package repository success full. But when other projects try to get that jar file in the project it gives an error

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[32](http://xxx:8880/xxx/exception-handler/-/jobs/122#L32)[FATAL] Non-resolvable parent POM for com.xxx:xxx:0.0.2-SNAPSHOT: Could not find artifact com.xxx:xxx-bom:pom:0.0.2-SNAPSHOT in zyapaar-bom-ci-maven (http://xxx:8880/api/v4/projects/10/packages/maven) and 'parent.relativePath' points at wrong local POM @ line 4, column 11
  • *Add the CI configuration from .gitlab-ci.yml
deploy:
  stage: deploy
  image: maven:3.6-jdk-11
  script:
    - mvn compile
    - 'mvn deploy -s settings.xml'
  only:
    - test-flow
  tags:
    - ci