The user-level settings.xml has already been fixed in the next version to be released 0.0.10 (MNGECLIPSE-29?). For the global-level settings file, vote for MNGECLIPSE-232.
http://jira.codehaus.org/browse/MNGECLIPSE-232 Chris > -----Original Message----- > From: Tim [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 16 January, 2007 19:16 > To: [email protected] > Subject: [m2eclipse-user] settings.xml > > Hi, > I'm having problems with executing special goals. I'm using > the org.codehaus.mojo tomcat-maven-plugin. > And I would like to execute the tomcat goals from within > Eclipse. From the commandline I can execute those goals like > tomcat:deploy and tomcat:redeploy but my generated > external-tools-configuration in Eclipse doesn't work. > I have configured the global settings.xml(MAVENHOME\conf\) > and the per user settings.xml([USERHOME]\.m2) and they are > working from the commandline. > How can I set the settings.xml for an > external-tool-configuration in Eclipse? > > > I get following error(s): > > ************************************************************** > ************************************** > [INFO] Deploying war to http://localhost:8080/TCGServlet > [ERROR] mojo-execute : tomcat:deploy > Diagnosis: Server not defined in settings.xml: myserver FATAL > ERROR: Error executing Maven for a project [ERROR] project-execute : > com.nuromobile.tcg.servlet:TCGServlet:war:1.0-SNAPSHOT ( > task-segment: > [tomcat:deploy] ) > Diagnosis: Server not defined in settings.xml: myserver FATAL > ERROR: Error executing Maven for a project > org.apache.maven.lifecycle.LifecycleExecutionException: > Server not defined in settings.xml: myserver > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa > ls(DefaultLifecycleExecutor.java:559) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeSta > ndaloneGoal(DefaultLifecycleExecutor.java:488) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa > l(DefaultLifecycleExecutor.java:458) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa > lAndHandleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas > kSegments(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(De > faultLifecycleExecutor.java:140) > at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder. > java:441) > at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder. > java:382) > at > org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) > Caused by: org.apache.maven.plugin.MojoExecutionException: > Server not defined in settings.xml: myserver > at > org.codehaus.mojo.tomcat.AbstractCatalinaMojo.getManager(Abstr > actCatalinaMojo.java:186) > at > org.codehaus.mojo.tomcat.DeployMojo.deployWar(DeployMojo.java:84) > at > org.codehaus.mojo.tomcat.AbstractDeployMojo.invokeManager(Abst > ractDeployMojo.java:83) > at > org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(Abstract > CatalinaMojo.java:132) > at > org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(Abstr > actWarCatalinaMojo.java:59) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defau > ltPluginManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa > ls(DefaultLifecycleExecutor.java:534) > ... 8 more > ************************************************************** > ************************************** > > > > Regards, > Tim > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
