> I got them to "force" to update to the latest remote snapshot using
> "mvn -U …", which I assume is the maven way?

Well, the first thing I would check knowing that -U does the update is
the configuration of your repo in your settings.xml. I bet you want an
update policy more like "always" and it is set to "daily" or
something.

> My next questions is: inside the plugin code, how can it know for a
> given artifact that it has been updated from remote since the last time
> the plugin ran? It seems like the download occurs before the plugin
> mojo[s] are invoked, so as far as the plugin is concerned, it "appears"
> to originate from the local repository.

Essentially Maven does a "find all the plugins and dependencies etc I
need to accomplish this build" in step 1. Then it always uses the
files in the local repo cache to actually run your plugins. So your
plugin cannot know what you are asking about.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to