从 netbeans 将 java 6 maven webapp 发布到 tomcat 时出现轻微的 url 不匹配问题
老实说,我已经使用 eclipse 3.6 (STS) 启动了这个小型 Maven Web 应用程序,我发现它太复杂了,以至于我不得不切换到 netbeans。我真的很想使用 Eclipse,但这些都是现实。所以在一切结束时,我想要同一项目的 Eclipse 版本。谢谢,
我使用嵌入式原型设置了maven webapp,并使用cargo插件来处理部署。基本上项目中只有hello world index.jsp
。在到处选择pom配置后我的 pom 最终就像 this 。 虽然它在我重新启动 IDE 后开始发布,但它发布到 http://localhost:8080/ 但对我来说,我'我期待它在 http://localhost:8080/mvnTestWebap
所以这是我的问题
- 问题 1:我该如何纠正这个问题?
- 问题2:我相信我的pom与netbeans的联系太多了,我怎样才能实现发布到tomcat结果但有一个可移植的pom?有人可以建议一个可以在eclipse上运行的重写吗?
- 问题3:在eclipse中netbeans的“run”对应什么?
Honestly I've started this small maven webapp using eclipse 3.6 (STS) and i found it so complicated that i had to switch to netbeans.I really wanted to use eclipse but these are reality on the ground.So at the end of everything I'll like to have an eclipse version of the same project. thanks
I set up the maven webapp using the embedded archetype, and use cargo plugin to take care of the deployment.basically there is only hello world index.jsp
in the project.after picking pom configuration here and there my pom finally is like this .
while it started publishing after i restart the IDE, it's publishing to http://localhost:8080/ but for me I'm expecting it at http://localhost:8080/mvnTestWebap
so here are my questions
- Question 1 : How can i correct that?
- Question 2 : I believe my pom is tied to netbeans too much, how can i achieve the publishing to tomcat result but having a portable pom?Can anyone suggest a rewrite that can run on eclipse?
- Question 3 : what correspond to netbeans "run" in eclipse?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还可以告诉 netbeans 在执行运行/调试/配置文件操作时执行您的货物插件(绕过 netbeans 默认行为)
You can also tell netbeans to execute your cargo plugin on executing the Run/Debug/Profile action (bypassing the netbeans default behaviour)