求助关于maven和jetty的hot redeploy问题

alleni123 2013-08-05 03:59:10


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.lj.hotmaven</groupId>
<artifactId>hotmaven</artifactId>
<version>0.0.1-SNAPSHOT</version>



<packaging>war</packaging>
<name>user-web Maven Webapp</name>
<url>http://maven.apache.org</url>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>



<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>


<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5.20110712</version>
<scope>provided</scope>
</dependency>

</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<contextPath>/hello</contextPath>
</webApp>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8787</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</plugin>



</plugins>
</pluginManagement>
</build>
</project>




我启动jetty的时候会显示

INFO] Configuring Jetty for project: user-web Maven Webapp
[INFO] webAppSourceDirectory not set. Defaulting to D:\javatest\hot Maven Webapp\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\javatest\hot Maven Webapp\target\classes
[INFO] Context path = /hello
[INFO] Tmp directory = D:\javatest\hot Maven Webapp\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = file:/D:/javatest/hot%20Maven%20Webapp/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = D:\javatest\hot Maven Webapp\src\main\webapp
2013-08-05 15:53:38.390:INFO:oejs.Server:jetty-8.1.12.v20130726
2013-08-05 15:53:38.562:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2013-08-05 15:53:39.343:WARN:oejsh.RequestLogHandler:!RequestLog
2013-08-05 15:53:39.387:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8787
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

但是我的src/main/java下的一些servlet上更改后没有起作用。

求助了。
...全文
82 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
elinehideaki 2013-08-06
  • 打赏
  • 举报
回复
顶起

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧