How can we build and refer bom in same pom How can we build and refer bom in same pom jenkins jenkins

How can we build and refer bom in same pom


Yes, good question. One option is definitely that, you could have the BOM project build first using a separate job in Jenkins and that way when you build your main Parent project it finds that dependency. I do have some projects configured that way and it should work fine.The other option I think is you could have your BOM project as a module in another Parent project say B, and then include this Parent project in your main Parent project as a module. Honestly I haven't tried the second approach, but you could maybe this a shot.

HTH


Instead of using < version>${project.version}< /version>

try with providing explicit version like,

< version>0.0.1-SNAPSHOT< /version>

You can refer http://www.baeldung.com/spring-maven-bom