Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

removing dependencies.dependency.version errors

I am working with a mavenised java project in Eclipse with several modules which fails to build throwing the error from the pom file:

Project build error: 'dependencies.dependency.version' for cml:jumbo-converters-molecule-xyz:jar is missing.

These errors relate to the sub-modules. They do not carry version numbers. It does not happen for all cases of submodules

Does this mean I have to add version numbers to all pom files and all references in pom files? Or can I add something which neglects the version number until I get it built?

like image 648
peter.murray.rust Avatar asked Feb 07 '12 14:02

peter.murray.rust


1 Answers

You need to add a dependencyManagement section to the parent POM, and specify version numbers there. See http://maven.apache.org/ref/3.0.4/maven-model/maven.html#class_dependencyManagement

like image 102
parsifal Avatar answered Oct 01 '22 22:10

parsifal