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.executeGoals(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(AbstractCatalinaMojo.java:186)
at org.codehaus.mojo.tomcat.DeployMojo.deployWar(DeployMojo.java:84)
at
org.codehaus.mojo.tomcat.AbstractDeployMojo.invokeManager(AbstractDeployMojo.java:83)
at
org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:132)
at
org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:59)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 8 more
****************************************************************************************************
Regards,
Tim
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email