feng_zhi_zi510 2016-11-25 08:05 采纳率: 0%
浏览 1689
已结题

maven-tomcat7插件部署,始终部署到localhost:8080

各位大神,我公司一个环境,用maven的tomcat7插件部署代码到远程服务器,但始终不会按自己的意思部署到远程服务器而是采用了默认的部署地址。这事折腾了好几天一直没找到原因,请各位大神帮看下。

软件运行环境:maven 3.0.5+jdk1.7.0_25

命令行调用:D:\SPROC4GD\08_branches\sproc4gd_2.1>mvn tomcat7:redeploy -Pweb-build -Ptomcat -Dmaven.test.skip=true -Dmaven.tomcat.url=**http://10.10.5.48:6006/manage
r/text** -X > debuginfo.log

pom插件配置片段:


org.apache.tomcat.maven
tomcat7-maven-plugin
2.2

http://10.10.5.48:6006/manager/text
tomcat
****
6006
UTF-8

调试日志信息

[INFO] <<< tomcat7-maven-plugin:2.2:redeploy (default-cli) @ sproc4gd-web <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:redeploy (default-cli) @ sproc4gd-web ---
[DEBUG] Configuring mojo org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy from plugin realm ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@76ea7776]
[DEBUG] Configuring mojo 'org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy' with basic configurator -->
DEBUG charset = ISO-8859-1
DEBUG contextFile = D:\SPROC4GD\08_branches\sproc4gd_2.1\sproc4gd-web\sproc4gd-web\src\main\tomcatconf\context.xml
DEBUG ignorePackaging = false
DEBUG mode = war
DEBUG packaging = war
DEBUG password = tomcat
DEBUG path = /web
DEBUG server = tomcat
DEBUG update = true
DEBUG url =** http://localhost:8080/manager**/html
DEBUG username = tomcat
DEBUG version = 2.2
DEBUG warFile = D:\SPROC4GD\08_branches\sproc4gd_2.1\sproc4gd-web\sproc4gd-web\target\web.war
DEBUG settings = org.apache.maven.execution.SettingsAdapter@199bd995
[DEBUG] -- end configuration --
[INFO] Deploying war to http://localhost:8080/web

  • 写回答

2条回答

  • 你个佬六 Java领域新星创作者 2016-11-26 13:48
    关注

    tomcate是要设置为8080默认端口吗?

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料