I'm trying to find out which version of hibernate the project depends on (this is orthogonal to my question).
We have a parent project with several sub projects, and I know this is defined in one or more pom.xml. The problem is that when it prints a match all it's telling me is the line and that it was found in pom.xml, I want to know which sub project pom.xml.
How can I get grep to print the relative path (absolute would work too but less pretty)? If it's not possible alternative suggestions welcome.
$ grep -rI -3 org.hibernate pom.xml