Tomcat 7 - Maven 插件?
我只是想仔细检查一下,是否有人找到或正在开发 Tomcat 7 插件?如果没有,有人有兴趣帮助我启动和运行它吗?
我想要 Glassfish 的另一个快速替代品,JBoss AS 6.0 对于快速模型来说仍然有点重。
沃尔特
I just wanted to double-check, has anyone found or is working on a Tomcat 7 plugin? If not, is anyone interested in helping me get it up and running?
I want another quick alternative to Glassfish, JBoss AS 6.0 is a bit heavy still for quick mockups.
Walter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
使用 Maven Cargo 你可以这样配置你的项目:
不要忘记配置你的
catalina.home
属性,你可以使用以下方式部署它:
Using maven cargo your can coufigure your project that way :
don't forget to configure your
catalina.home
propertyThe you can deploy it using:
Apache Tomcat 团队开发了 Tomcat Maven Plugin 7 插件。
目前,您必须签出源并将其安装到本地存储库。
之后你可以在 pom 的插件部分使用它:
There is the Tomcat Maven Plugin 7 plugin developed by the Apache Tomcat team.
Currently you have to checkout the sources and install it to your local repository.
After that you can use it in the plugin section of your pom:
在我连续三天遇到此错误后,这是我的解决方案:
您用于连接的用户至少需要角色管理器脚本。
在你的 /conf/tomcat-users.xml 中
在你的 pom.xml 中,包含以下插件
与我在互联网上发现的相反,你不需要编辑你的 Maven 设置.xml。 tomcat7-maven-plugin可以直接在configuration-tag中配置
url-tag的一句话:我测试了后缀
其中只有 /manager/text 有效
我的版本:
After I had this error for three days in a row, here's my solution:
The user you are using to connect needs at least the role manager-script.
In your /conf/tomcat-users.xml
In your pom.xml, include the following plugin
Contrary to what I found in the internet you DON'T need to edit your maven setting.xml. The tomcat7-maven-plugin can be configured directly in the configuration-tag
A word to the url-tag: I tested the suffix
of which only /manager/text worked
My versions:
我正在将 tomcat7-maven-plugin 用于嵌入式 tomcat 实例。这是我的配置方法。由于我的应用程序需要 jaas 身份验证,我也可以在设置本身中提供该身份验证。
I'm using tomcat7-maven-plugin for my embedded tomcat instance. Here is how I have configured it. Since my app requires jaas authentication I can also provide that in the setting itself.
实际上,标准插件适合我。我只需在 tomcat 用户中创建角色管理器脚本并将 url 参数更改为
http://localhost:8080/manager/html
即可使其工作:Actually, the standard plugin works for me . I just had to create the role manager-script in tomcat users and change the url parameter to
http://localhost:8080/manager/html
in order to make it work :对于 Tomcat 7,
步骤 1:
服务器添加
步骤 2 的“模块”选项卡:
将 POM 更新为:
For Tomcat 7,
Step 1:
Modules tab of server add
Step 2:
Update POM to:
它对我来说如下。
我的setting.xml
我的插件配置
我的tomcat-users.xml
It work for me as the following.
My setting.xml
My plugin configuration
My tomcat-users.xml
我使用 Apache 的官方 Tomcat7 Maven 插件,如下所示:
并运行它:
mvn tomcat7:run
i use the official Tomcat7 Maven Plugin from Apache as follows:
and to run it:
mvn tomcat7:run
Google 代码上有 t7mp - 一个 Tomcat 7 Maven 插件。
Cargo(及其 Cargo Maven2 插件)也支持 Tomcat 7 (这是 CARGO-790)。
Apache Tomcat Maven 插件 2.0-beta-1 支持 Tomcat 7。
There is t7mp - a Tomcat 7 Maven Plugin - on Google code.
Cargo (and its Cargo Maven2 Plugin) also has support for Tomcat 7 (this was CARGO-790).
Apache Tomcat Maven Plugin 2.0-beta-1 supports Tomcat 7.