I have hard times learning Maven those days, it seems more difficult than learning all 4-5 programming languages I know altogether. However first steps are made and I succeeded to build a first Java REST services project based on Jersey in Eclipse with m2eclipse plugin. As I tried to do that I added a bunch of global repositories most of which are either irrelevant or incorrect and somehow I added all of them to 'Effective POM' instead of project POM so there are number of garbage repositories globally. Now the question:
How can I edit/manage 'Effective POM' in order to remove those repositories? I tried to do that with built in POM editor but it shows it as read-only, also tried to remove them through 'Maven Repositories' tab but there is no such option at all.
Maybe there is some way to edit it manually, where does global POM resides in file system?
In 'Effective POM' I can see added repositories duplicated in both tags <repository>
and <pluginRepository>
. What is the difference between those tags? If I remove them manually, should I remove both?