I am using dependency management to refer a particular package in Nexus. It’s a multi-module project. Dependencies are referred in dependeny management of Parent POM. The packages are available on Nexus. When I build the project on the pipeline, I am getting error: Package doesn’t exist.
For other projects built on the pipeline, I am not getting this error.
If I do a local build, I am getting the same error as well. I deleted the entire m2 repo for local build but it’s able to download the other dependencies from Nexus and not this one.
But if my team-mate downloads the code from github and does a local build, his build is successfull.
What might be the issue?
Note: I cannot post POM as I have restricted access to Internet.
Thanks for the reply. I am getting error on the library that's internally developed. I can't post the code/pom here as I have only restricted access to the internet.
There are 4 libraries in the package. All these 4 libraries of the package are available on Nexus. All these libraries are jar files. I am refering all the 4 libraries and of which, 3 libraries, I am not getting error. For the fourth one, I am getting error, "Package "package name" doesn't exist.
These libraries are used by many projects and for the other project, with the same reference, I am not getting error. In my team mate system, the build is successful. I am getting this error both on the local build as well as on the pipeline as well.
To avoid confusion, please use 'package' to refer to a namespace for Java classes and resources, and 'artifact' to refer to the result of building a project.
We can't help you if you don't show us more. If you can't use internet at the office, crib down the relevant parts of the different POMs (at least 3 of them: the project that's giving you problems, the parent, and one of the projects that uses the same dependency and doesn't have issues), and also the complete and exact error message. We need to at least look at the <modules>, <parent>, <dependencyManagement> and <dependencies> of the POMs. It's fine if you use fake group and artifact names.
And then we all jump out and yell "surprise! we got you this tiny ad!"
Devious Experiments for a Truly Passive Greenhouse!