I'd love if someone can help me here, I'm about to give up on Maven2, its so
frustrating :)
Anyway, the problem is that I can have everything working one day, then come
back the next day and find out that my project isn't compiling anymore.
It generally comes in the form of a transitive dependency missing from my
local repository. For example, the latest problem was not having version
1.0.0 of jfreecharts. I checked and I have 1.0.1 in my local repo. (Please
note I'm using artifactory as a proxy). I also have no dependencies directly
on jfreecharts, its coming from transitive dependencies. This is the other
strange thing, why would it not have got version 1.0.0 yesterday when I
built. Unless some SNAPSHOT I'm depending on is changing? Seems weird to go
down a version though.
My guess is that for some reason my machine has decided to not ask
artifactory for 1.0.0 and instead just fails. The problem further escalated
when I tried to issue a mvn clean. I get this error
The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or
no valid version could be found.
Issuing a build on our CI server worked successfully which does include
issuing a clean so I know its not a problem with the actual proxy.
Additionally I search on artifactory and it does indeed have the clean
plugin present.
I then totally delete my local repository (i.e. {home}\.m2\repository), and
issue mvn clean again
Low an behold, it works!!!! Its just ridiculous. If it can't work from day
to day I'm far better off just putting my jars in version control. At least
my project built consistently.
Have people experienced this before? If so, is it a maven issue or my proxy
issue?
Thanks
--
View this message in context:
http://www.nabble.com/Maven2---Not-finding-plugins%21-tf4537687s177.html#a12951136
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]