project.version folder is created in local
maven repository - when the maven build is run in jenkin (in Windows 32) .
It works perfectly when manually done in console. (also it works fine with jenkin in Win 64)
The build error shown is :
Could not resolve dependencies for project x.y.z.ABC:jar:4.13-SNAPSHOT: The following artifacts could not be resolved: org.apache.httpcomponents:httpclient:jar:${project.version}, com.github.scribejava:scribejava-java8:jar:${project.version}: Could not find artifact org.apache.httpcomponents:httpclient:jar:${project.version} in central (
https://repo.maven.apache.org/maven2) -> [Help 1]
PS: the pom file has explicit version mentioned for all jar libs. but above httpclient & scribejava-java8 are transitive dependencies
Yes of course : Could not find artifact org.apache.httpcomponents:httpclient:jar:${project.version}
because the maven generates above with hardcoding ${project.version} (interestingly it doesnt do such when run manually or when jenkin runs in other platforms)
Version Info : Apache Maven 3.8.4 ,
Java 17.0.1 , Windows 6.1 x86