Hi Gert ,
I have deleted that m2 directory and after that i again tried to execute the
command 
mvn install but it is giving the same error
C:\Documents and Settings\153666>mvn install
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Maven Default Project
[INFO]    task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for up
dates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-reso
urces-plugin' could not be retrieved from repository: central due to an
error: E
rror transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
exi
st or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Jun 20 11:50:26 GMT+05:30 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------

please help me out with this
waiting for your reply

Gert Vanthienen wrote:
> 
> L.S.,
> 
> 
> Whenever I have these kind of problems with Maven, I usually start with 
> deleting the failing resources from my local repository.  In your case, 
> I would delete the directory <m2_repository>/org/apache/maven/plugins, 
> with everything in it.
> 
> I don't know why, but it seems to solve the problems very often...
> 
> 
> Gert
> 
> 
> 
> vikky wrote:
>> Hi guys, 
>> I am getting the following error 
>>
>> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
>> not
>> exist or no valid version could be found. 
>> while using mvn 
>>
>>
>> C:\Documents and Settings\153666>mvn -e install 
>> + Error stacktraces are turned on. 
>> [INFO] Scanning for projects... 
>> [INFO]
>> ------------------------------------------------------------------------- 
>> --- 
>> [INFO] Building Maven Default Project 
>> [INFO]    task-segment: [install] 
>> [INFO]
>> ------------------------------------------------------------------------- 
>> --- 
>> [INFO]
>> ------------------------------------------------------------------------ 
>> [ERROR] BUILD ERROR 
>> [INFO]
>> ------------------------------------------------------------------------ 
>> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
>> not
>> exi 
>> st or no valid version could be found 
>> [INFO]
>> ------------------------------------------------------------------------ 
>> [INFO] Trace 
>> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
>> 'org.apache.m 
>> aven.plugins:maven-resources-plugin' does not exist or no valid version
>> could be 
>>  found 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa 
>> ultLifecycleExecutor.java:1286) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor 
>> (DefaultLifecycleExecutor.java:1522) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP 
>> ackaging(DefaultLifecycleExecutor.java:1016) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl 
>> eMappings(DefaultLifecycleExecutor.java:980) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau 
>> ltLifecycleExecutor.java:458) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan 
>> dleFailures(DefaultLifecycleExecutor.java:311) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen 
>> ts(DefaultLifecycleExecutor.java:278) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi 
>> fecycleExecutor.java:143) 
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) 
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) 
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) 
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. 
>> java:39) 
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces 
>> sorImpl.java:25) 
>>         at java.lang.reflect.Method.invoke(Method.java:585) 
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) 
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) 
>>
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375) 
>> Caused by:
>> org.apache.maven.plugin.version.PluginVersionNotFoundException:
>> The p 
>> lugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or
>> no
>> val 
>> id version could be found 
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl 
>> uginVersion(DefaultPluginVersionManager.java:228) 
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl 
>> uginVersion(DefaultPluginVersionManager.java:90) 
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug 
>> inManager.java:166) 
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa 
>> ultLifecycleExecutor.java:1257) 
>>         ... 18 more 
>> [INFO]
>> ------------------------------------------------------------------------ 
>> [INFO] Total time: < 1 second 
>> [INFO] Finished at: Wed Jun 20 10:26:42 GMT+05:30 2007 
>> [INFO] Final Memory: 1M/2M 
>> [INFO]
>> ------------------------------------------------------------------------ 
>>
>> thanks in advance
>> waiting for your response
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-with-maven-resources-plugin-while-deploying-servicemix-examples-tf3950455s12049.html#a11207814
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to