Did you notice, that you need a blank before the plus sign?
$ find . -name pom.xml -exec grep '<repository>' {}+ $ find . -name pom.xml -exec grep '<repository>' {} +
For example, if find finds the files a/pom.xml and b/pom.xml, it will try to build the exec part as:
$ grep '<repository>' a/pom.xml b/pom.xml+
instead of
$ grep '<repository>' a/pom.xml b/pom.xml
leaving the + for find as special option.
Did you notice, that you need a blank before the plus sign?
$ find . -name pom.xml -exec grep '<repository>' {}+
$ find . -name pom.xml -exec grep '<repository>' {} +
For example, if find finds the files a/pom.xml and b/pom.xml, it will try to build the exec part as:
$ grep '<repository>' a/pom.xml b/pom.xml+
instead of
$ grep '<repository>' a/pom.xml b/pom.xml
leaving the + for find as special option.