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

各位大神,我公司一个环境,用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个回答

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

看看的maven 仓库配置? 我有点没有看懂你的意思,希望能够帮到你

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问