> Its not in my local maven repo since its not supposed to be there. For

You cannot know that, as you simply don't have all the plugins under your
control. You will for sure somehow be connected to an external repository.
Whether you download directly, or via some proxy that mirrors an external
repo into your cooperate network: You always will get changes from the 
outside from time to time. So I think it is perfectly possible, that some
artifact/bundle has changed.

> some reason another plugins specifies that  it depends on :

It's been a while since I last used maven, so I cannot be too specific 
here.
But I know for sure, but I think that it was the dependecy plugin, that 
has 
this nice "tree" goal, where it presents a graph of the dependencies onto 
the
console. You should probably run that, and then you will know where those 
dependencies are comming from.

> 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

This looks strange. Is dummy/dummy your own test bundle, or did something
else go wrong here?

> It seems that a whole bunch of artifacts has been wiped or could some
> other setting of the felix plugin cause this?

I don't think so. The felix plugin should not touch the local repository.
And even if it did, you maven installation would simply download the jars
again from (your) central repo.

> 
> 
> 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.

Reply via email to