maven远程tomcat配置

发布于 2024-10-09 17:37:13 字数 68 浏览 0 评论 0原文

我用的是maven2。我安装了tomcat7。我想配置插件以使用已安装的 tomcat7。有人可以指出执行此操作的链接吗?

I am using maven2. I have tomcat7 installed. I want to configure the plugin to use tomcat7 that is installed. can somebody point to a link that does this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫瑾少女 2024-10-16 17:37:13

为此使用 Cargo 插件。配置类似这样的货物

        <profiles>
            <profile>
                <id>integration</id>
                <build>
                    <plugins>
                      <plugin>
                        <groupId>org.codehaus.cargo</groupId>
                        <artifactId>cargo-maven2-plugin</artifactId>
                        <version>1.0</version>
                        <configuration>
                          <!-- Container configuration -->
                          <container>
                            <containerId>tomcat6x</containerId>
                          </container>
                          <configuration>
                            <type>existing</type>
                            <home>/usr/local/apache-tomcat-6.0.18</home>
                          </configuration>
                        </configuration>
                      </plugin>
                    </plugins>
                </build>
            </profile>
        </profiles>

我有相同的设置,但我已经在 Tomcat6.0.x 和 Jetty 7.0.16 上进行了测试。这些链接将有助于


用于远程部署,如下所示(在 Tomcat7 中不得有所不同)

       <configuration>
        <!-- Container configuration -->
        <container>
            <containerId>tomcat6x</containerId>
            <type>remote</type>
        </container>
        <configuration>          
            <type>runtime</type>
            <properties>
              <cargo.remote.username>admin</cargo.remote.username>
              <cargo.remote.password></cargo.remote.password>
              <cargo.tomcat.manager.url>http://localhost:8888/manager</cargo.tomcat.manager.url>
            </properties>
        </configuration>
        ...
    </configuration>

再次参考上面的链接!

Use Cargo plugin for this. Configure cargo something like this

        <profiles>
            <profile>
                <id>integration</id>
                <build>
                    <plugins>
                      <plugin>
                        <groupId>org.codehaus.cargo</groupId>
                        <artifactId>cargo-maven2-plugin</artifactId>
                        <version>1.0</version>
                        <configuration>
                          <!-- Container configuration -->
                          <container>
                            <containerId>tomcat6x</containerId>
                          </container>
                          <configuration>
                            <type>existing</type>
                            <home>/usr/local/apache-tomcat-6.0.18</home>
                          </configuration>
                        </configuration>
                      </plugin>
                    </plugins>
                </build>
            </profile>
        </profiles>

I have same setup, but I have tested this on Tomcat6.0.x and Jetty 7.0.16. These links will help


for remote deployment use like this (must not be different in Tomcat7)

       <configuration>
        <!-- Container configuration -->
        <container>
            <containerId>tomcat6x</containerId>
            <type>remote</type>
        </container>
        <configuration>          
            <type>runtime</type>
            <properties>
              <cargo.remote.username>admin</cargo.remote.username>
              <cargo.remote.password></cargo.remote.password>
              <cargo.tomcat.manager.url>http://localhost:8888/manager</cargo.tomcat.manager.url>
            </properties>
        </configuration>
        ...
    </configuration>

Again refer the links above!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文