General thing about plugin versions: Well thats exactly the thing: you are responsible of pinning the plugin versions! It may sound a bit ugly, but its just you and the unique plugin combination you are using that can decide the correct version combination. Otherwise maven just guesses with "latest snasphots" which is.. as bad as it sounds. (hence: warning from maven)
So yes, there is an extensible list of plugins that you version-pin in your (at best) project-wide parent pom. Then you can be sure to have rock solid maven builds. Not doing so will lead you into trouble. To your current problem: org.apache.maven.surefire:surefire-junit4:jar:2.4.3-JBOSS does not sound like a cute plugin version. Why is this jboss classifier there ? And do not think/hope a plugin wiped your local repo.. On Thu, Sep 30, 2010 at 3:42 PM, motes motes <[email protected]> wrote: > Its not in my local maven repo since its not supposed to be there. For > some reason another plugins specifies that it depends on : > > maven-resources-plugin:2.5-SNAPSHOT > > which makes no sense to me at all. I have tried to add: > > <pluginManagement> > <plugins> > <plugin> > <artifactId>maven-resource-plugin</artifactId> > <version>2.4.3</version> > </plugin> > </plugins> > </pluginManagement> > > which is in nexus. And then I get: > > [ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.4-SNAPSHOT > or one of its dependencies could not be resolved: The following > artifacts could not be resolved: org.apache. > maven.plugins:maven-install-plugin:jar:2.4-SNAPSHOT: Failure to find > org.apache.maven.plugins:maven-install-plugin:jar:2.4-SNAPSHOT in > http://repository:8081/nexus/content/groups/pub > lic was cached in the local repository. Resolution will not be > reattempted until the update interval of nexus has elapsed or updates > are forced. -> [Help 1] > [ERROR] > > I have then tried to add maven-install-plugin 2.3.1 (which is in > nexus) to the above manager and then I get : > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.4.3-JBOSS:test > (default-test) on project birtGenerator-model: Error to resolving > surefire provider dep > endency: Missing: > ---------- > 1) org.apache.maven.surefire:surefire-junit4:jar:2.4.3-JBOSS > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.maven.surefire > -DartifactId=surefire-junit4 -Dversion=2.4.3-JBOSS -Dpackaging=jar > -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file there: > mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire > -DartifactId=surefire-junit4 -Dversion=2.4.3-JBOSS -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[i > d] > > Path to dependency: > 1) dummy:dummy:jar:1.0 > 2) org.apache.maven.surefire:surefire-junit4:jar:2.4.3-JBOSS > > ---------- > 1 required artifact is missing. > > for artifact: > dummy:dummy:jar:1.0 > > > > > > It seems that a whole bunch of artifacts has been wiped or could some > other setting of the felix plugin cause this? > > > > > > > > > > On Thu, Sep 30, 2010 at 3:18 PM, Michael Hess <[email protected]> wrote: >>> but when I build it with maven3 : mvn clean install -U I get the error: >>> >>> [ERROR] Plugin >> org.apache.maven.plugins:maven-resources-plugin:2.5-SNAPSHOT >>> or one of its dependencies could not be resolved: The following >>> artifacts could not be resolved: org.apach >>> e.maven.plugins:maven-resources-plugin:jar:2.5-SNAPSHOT: Failure to >>> find org.apache.maven.plugins:maven-resources-plugin:jar:2.5-SNAPSHOT >>> in http://repository:8081/nexus/content/grou >>> ps/public was cached in the local repository. Resolution will not be >>> reattempted until the update interval of nexus has elapsed or updates >>> are forced. -> [Help 1] >>> [ERROR] >>> >>> This project has worked fine before. Any ideas why its all of the sudden >> broken? >> >> Seems like a maven problem to me. >> Did you check, that the mentioned missing artifact is in your local maven >> repository? >> If it's gone it might have happened, that the component got released and >> the SNAPSHOT versions were cleared out. >> >> bye, Michael >> >> >> The information included in this e-mail and any files transmitted with it is >> strictly confidential and may be privileged or otherwise protected from >> disclosure. If you are not the intended recipient, please notify the sender >> immediately by e-mail and delete this e-mail as well as any attachment from >> your system. If you are not the intended recipient you are not authorized to >> use and/or copy this message and/or attachment and/or disclose the contents >> to any other person. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Toni Menzel || http://okidokiteam.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

