A workaround is to copy the plugin jar into the MAVEN_HOME/plugins directory.
-Andy -----Original Message----- From: Myron Uecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 1:29 PM To: dev@maven.apache.org Subject: Plugin:install-now Problem I'm running Maven 1.02 on a Windows 2000 machine. I created a new plugin that is part of a larger project. As part of the build, I run plugin:install-now to build and install the plugin. This works for the current build only, but the next time I run Maven, I get an error that the plugin is missing and the cache has been invalidated. Later in our build process, I get an error that maven-war-plugin is missing, which I'm sure is related to the invalid cache. Adding insult to injury, the build completes with a successful message, the missing plugin doesn't cause the build to fail! My goal to build the plugins is as follows: <goal name="build:plugins"> <m:reactor basedir="${basedir}" includes="plugins/**/project.xml" goals="plugin:install-now" banner="Building: " ignoreFailures="false"/> </goal> Basically, I want to automatically build and install any plugins we created as a team. The way I see it, there are two problems here. First, the way I read the documentation, plugin:install-now should make the plugin available for subsequent builds, but Maven cannot find it. Second, I would think that if the cache is invalidated, Maven should automatically rebuild it or cause the build to fail immediately, yet neither of these things happen. I finally created a workaround to this by doing a plugin:uninstall at the end of the build to remove the plugins I installed. Now instead of an invalid cache, I just get a message that the plugin cache will be regenerated. Any suggestions? Thank you. Myron Uecker --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]