Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Main job - abc
Reference Job - abc_ref
Job design
abc = tjava -> abc_ref
mvn command to build the job
mvn -f MAIN_PROJECT/poms/pom.xml deploy -pl jobs/process/abc_0.1 -am
Getting below error
[ERROR] Child module /var/lib/jenkins/workspace/Test_Build/MAIN_PROJECT/poms/../../REF_PROJECT/poms of /var/lib/jenkins/workspace/Test_Build/MAIN_PROJECT/poms/pom.xml does not exist
It is complaining that REF_PROJECT/poms doesnt exist within the MAIN_PROJECT. How to include reference project in the build process? Is there a maven option to include it?
@sarora , check the below solution work for you.
go to File>>edit project settings>>Build>>Maven>>click on Force full re-synchronize poms>>ok>> and push the code and build and see.