I setup a Maven project from an existing project and copied over all the files including the new pom.xml.
I hit Run -> Maven package and watched as it took quite a while for it to build – I figured it was downloading repositories. But much to my dismay after a few minutes it came back with errors about missing 10 dependencies — all the ones in the pom!
I realized I was VPNed into a network which had a proxy, so it was likely a network issue.
I decided to unplug from the VPN and with normal network no proxy I tried again, but its like it didnt even try, it just bam instantly bopped the same 10 missing artifact errors. I think the result of the first attempt is cached, and it never tries again.
I want to force it to retry but I have no idea how. I tried right clicking project and saying Update Snapshots, Update dependencies, editing the pom, shutting down and restarting myeclipse … it just never retries! It always comes back instantly with missing artifact.
The pom has no special depository configured, and the scope is compile.
I now have to sit here manually installing each one of these – so frustrating! Only then does it work… 8 more to go now…