Hi

I'm trying to deploy a WAR to tomcat running on my local machine. I feel like I'm missing something really obvious here as I haven't been able to get it to work. Or am I just using the wrong plugin? I would be grateful if someone could point out where I am going wrong.

Regards
Andrew


In pom.xml I have added

 <profiles>
     <profile>
         <id>local-andrew</id>
         <activation>
             <property>
                 <name>env</name>
                 <value>local-andrew</value>
             </property>
         </activation>
         <distributionManagement>
             <site>
                 <id>local-andrew</id>
<url>file://C:/development2/projects/gcsite/servers/jakarta-tomcat-4.1.31/webapps</url>
             </site>
         </distributionManagement>
     </profile>
 </profiles>

and when I run 'mvn site-deploy -Denv=local-andrew -e' I get the following error

[INFO] Error uploading site

Embedded error: Could not make directory 'C:\development2\projects\gcsite\servers\jakarta-tomcat-4.1.31\webapps\.'. [INFO] ----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
2)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:303)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
       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: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.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:142) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
       ... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Could not make directory 'C:\development2\projects\gcsite\ser
vers\jakarta-tomcat-4.1.31\webapps\.'.
at org.apache.maven.wagon.providers.file.FileWagon.putDirectory(FileWagon.java:113) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:134)
       ... 18 more





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to