L.S.,
If I look at the error messages you're getting, I think you also have to
configure a proxy server in the same settings.xml file as well. Your
workstation seems to be unable to download the necessary resources
directly. Look at
http://maven.apache.org/guides/mini/guide-proxies.html for more information.
Gert
vikky wrote:
Hi
I am going through servicemix User Guide there they have said to configure
settings.xml file
i want to know that we have to change setting.xml file in
"D:\maven-2.0.6\conf" folder or
we have to add another settings.xml file in .m2 repository directory.
Due to Apache Incubator policies, the ServiceMix release is not available in
public Maven repositories, so you need to either:
Build ServiceMix from the source, or
Modify your local Maven configuration to include an additional repository
The last point can be done by modifying your ~/.m2/settings.xml
configuration file to include the following information:
<settings>
<profiles>
<profile>
<id>incubating</id>
<repositories>
<repository>
<id>apache-incubating</id>
<url>http://people.apache.org/repo/m2-incubating-repository</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache-incubating</id>
<url>http://people.apache.org/repo/m2-incubating-repository</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>incubating</activeProfile>
</activeProfiles>
</settings>
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