I am new in using maven and jenkins. I am trying to inherit the dependencies from parent pom to child pom it shows the following errors:
[ERROR] COMPILATION
You should declare dependencies you want to inherit under a section to achieve this. is used for definitions that must be referenced later, whenever needed, within the of a particular child to become effective.
UPDATE: Be careful when declaring dependencies that every child pom will inherit. Very quickly you can end up having dependencies you don't really need just because they are declared in the parent. As mentioned by other commenters, may be a better choice, although it isn't what you wanted originally.