gpt4 book ai didi

maven - 如何在 Eclipse 中使用 JRebel 运行 Jetty?

转载 作者:行者123 更新时间:2023-12-01 10:44:59 25 4
gpt4 key购买 nike

我在 Eclipse 中使用 jetty maven 插件来部署我的应用程序。这是 pom.xml 的一部分:

        <plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.5.v20141112</version>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>5.0.2</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>5.0.2</version>
</dependency>
</dependencies>
<configuration>
<scanIntervalSeconds>2</scanIntervalSeconds>
<stopKey>stop</stopKey>
<stopPort>9999</stopPort>
</configuration>
</plugin>

我还在 Eclipse 中安装了 JRebel 插件。那么我如何使用 JRebel 启动我的 jetty 服务器呢?

最佳答案

幸运的是,我在 Maven 配置页面(我调用 jetty:run 的地方)中找到了答案并且它有效。对于那些也需要它并使用 JRebel Eclipse 插件的人,答案如下:

(如果有人知道更好的方法,我将不胜感激。也许在 pom.xml 中,在 jetty.maven.plugin 的配置中?)

enter image description here

关于maven - 如何在 Eclipse 中使用 JRebel 运行 Jetty?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27513872/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com