<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"HelveticaNeueLT Pro 45 Lt";
panose-1:2 11 4 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hello Marc,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>tomcat:exploded copies the directory target/webapp from the
webapp project into the tomcat/webapps directory. This cannot be done into a
remote machine.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>On the other hand, tomcat:deploy uploads and installs the file
target/webapp.war, but this file does not have all the resources required.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>What can be done is the following procedure from the parent
project:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mvn clean<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mvn package<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mvn war:war<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mvn tomcat:deploy<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This should work. Calling mvn war:war zips the contents of
target/webapp into target/webapp.war<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Greetings<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#FF7F00'>_________________________________________ <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'> </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:gray'>Adrián Rodríguez</span></b><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Junior IT-Berater</span><span style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'> </span><span style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>comundus GmbH</span></b><span style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Schüttelgrabenring 3, D-71332 Waiblingen</span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Telefon +49 7151-50028-20</span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>E-Mail a.rodriguez@comundus.com</span><span style='font-size:
10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Internet www.comundus.com</span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#FF7F00'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Geschäftsführer Klaus Hillemeier </span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Amtsgericht Stuttgart, HRB 264290</span><span style='font-size:
10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'> </span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>comundus ist ein Unternehmen der IT EXCELLENCE Group</span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#FF7F00'>_________________________________________<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#FF7F00'><o:p> </o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
style='border-collapse:collapse'>
<tr>
<td width=85 valign=top style='width:63.4pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"HelveticaNeueLT Pro 45 Lt";
color:#1F497D'><img width=64 height=67 id="Bild_x0020_11"
src="cid:image001.jpg@01CAE537.9393A810" alt=Kundenzufriedenheit-bei-com></span></b><b><span
style='font-size:9.0pt;font-family:"HelveticaNeueLT Pro 45 Lt";color:#1F497D'><o:p></o:p></span></b></p>
</td>
<td width=552 valign=top style='width:413.9pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Die Kundenzufriedenheit bei comundus wieder verbessert -<br>
Durchschnittsnote jetzt 1,7.<o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"HelveticaNeueLT Pro 45 Lt";
color:#1F497D'><o:p> </o:p></span></b></p>
</td>
</tr>
</table>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On
Behalf Of </b>Marc Johnen<br>
<b>Sent:</b> Wednesday, April 21, 2010 4:09 PM<br>
<b>To:</b> opencms-dev@opencms.org<br>
<b>Subject:</b> [opencms-dev] maven-plugin deploy to remote server<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hello everyone, we are developing a site in a team using a
server in the local net. I would like to use the maven-plugin for that. I
managed to successfully run "mvn clean" and "mvn package",
but am stuck with "mvn tomcat:exploded". The tomcat-user is configured
correctly as I can access it via web and also the command "mvn
tomcat:info" executes without error. When executing "mvn -e
tomcat:exploded", I get an error-message (see Error-Message 1). When I
first create the corresponding directory "opencms-basic" in the
webapps-folder, I get a different error-message (see Error-Message 2). Below
you can also find the configuration of the tomcat-plugin. Has anyone
successfully run a similar configuration. Thankful for any hints. Greetings
Marc Johnen ********************** Configuration **********************
org.codehaus.mojo tomcat-maven-plugin http://192.168.134.253:8080/manager
/opencms-basic ********************************************* <b>Error-Message 1</b>
********************************************* [INFO] Scanning for projects...
[INFO] Reactor build order: [INFO] OpenCms Parent [INFO] OpenCms Webapp [INFO]
OpenCms System [INFO] OpenCms Content [INFO] OpenCms Orgunits [INFO]
------------------------------------------------------------------------ [INFO]
Building OpenCms Parent [INFO] task-segment: [tomcat:exploded] [INFO]
------------------------------------------------------------------------ [INFO]
[tomcat:exploded {execution: default-cli}] [INFO] Skipping non-war project
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenCms Webapp [INFO] task-segment: [tomcat:exploded] [INFO]
------------------------------------------------------------------------ [INFO]
[tomcat:exploded {execution: default-cli}] [INFO] Deploying war to
http://192.168.134.253:8080/opencms-basic [INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR [INFO]
------------------------------------------------------------------------ [INFO]
Cannot invoke Tomcat manager: FAIL - Failed to deploy application at context
path /opencms-basic [INFO]
------------------------------------------------------------------------ [INFO]
Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat
manager: FAIL - Failed to deploy application at context path /opencms-basic at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at
org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) 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.MojoExecutionException: Cannot invoke Tomcat manager:
FAIL - Failed to deploy application at context path /opencms-basic at
org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:145)
at org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:63)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more [INFO]
------------------------------------------------------------------------ [INFO]
Total time: 1 second [INFO] Finished at: Wed Apr 21 16:04:50 CEST 2010 [INFO]
Final Memory: 13M/171M [INFO] ------------------------------------------------------------------------
********************************************* <b>Error-Message 2</b>
********************************************* [INFO] Cannot invoke Tomcat
manager: FAIL - Application already exists at path /opencms-basic [INFO] ------------------------------------------------------------------------
[INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
invoke Tomcat manager: FAIL - Application already exists at path /opencms-basic
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at
org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) 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.MojoExecutionException: Cannot invoke Tomcat manager:
FAIL - Application already exists at path /opencms-basic at
org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:145)
at
org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:63)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more <o:p></o:p></p>
<div class=MsoNormal>
<hr size=2 width=300 style='width:225.0pt' align=left>
</div>
<p class=MsoNormal>View this message in context: <a
href="http://old.nabble.com/maven-plugin-deploy-to-remote-server-tp28288035p28288035.html">maven-plugin
deploy to remote server</a><br>
Sent from the <a href="http://old.nabble.com/OpenCMS---Dev-f654.html">OpenCMS -
Dev mailing list archive</a> at Nabble.com.<o:p></o:p></p>
</div>
</body>
</html>