Deployment Maven jetty插件热部署多模块项目

Deployment Maven jetty插件热部署多模块项目,deployment,module,maven-jetty-plugin,Deployment,Module,Maven Jetty Plugin,我在alfresco工作,我有一个多模块项目,看起来是这样的: - parentModule - alfrescoModule - shareModule - ampAlfrescoModule (contains java classes) - ampShareModule - runnerModule 我想从ampAlfrescoModule重新部署修改过的类 以下是runnerModule pom的内容: <profiles> <profile>

我在alfresco工作,我有一个多模块项目,看起来是这样的:

- parentModule
- alfrescoModule
- shareModule
- ampAlfrescoModule (contains java classes)
- ampShareModule
- runnerModule
我想从ampAlfrescoModule重新部署修改过的类

以下是runnerModule pom的内容:

<profiles>
    <profile>
        <id>run</id>
        <activation>
            <property>
                <name>run</name>
            </property>
        </activation>
        <properties>

            <runner.host>127.0.0.1</runner.host>
            <runner.port>8080</runner.port>
        </properties>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.mortbay.jetty</groupId>
                    <artifactId>maven-jetty-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>run</id>
                            <goals>
                                <goal>run</goal>
                            </goals>
                            <phase>integration-test</phase>
                        </execution>
                    </executions>
                    <configuration>

//this is what i've tested but it doesn't work  
                    <scanIntervalSeconds>5</scanIntervalSeconds>
                <classesDirectory>../ampAlfrescoProject/target/classes</classesDirectory>


                        <!-- Following 3 properties set an empty ROOT context, which is mandatory 
                            to run jetty:run plugin -->
                        <contextPath>/</contextPath>
                        <webAppSourceDirectory>.</webAppSourceDirectory>
                        <webXml>jetty/root-web.xml</webXml>
                        <contextHandlers>
                            <contextHandler implementation="org.mortbay.jetty.webapp.WebAppContext">
                                <war>${project.basedir}/../alfrescoProject/target/alfrescoProject.war</war>
                                <contextPath>/alfresco</contextPath>
                            </contextHandler>
                            <contextHandler implementation="org.mortbay.jetty.webapp.WebAppContext">
                                <war>${alfresco.solr.dir}/apache-solr-1.4.1-overlay.war</war>
                                <contextPath>/solr</contextPath>
                            </contextHandler>
                            <contextHandler implementation="org.mortbay.jetty.webapp.WebAppContext">
                                <war>${project.basedir}/../shareProject/target/shareProject.war</war>
                                <contextPath>/share</contextPath>
                            </contextHandler>
                        </contextHandlers>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>
</profiles>
当我运行
mvn compile
时,我的类不会在服务器上更新,不会检测到更改

谢谢您的帮助,谢谢

[INFO] restarting org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@986d0e{/,C:\Users\..\workspace\AllInOneAdvancedSearch\runnerProject}
[INFO] Webapp source directory = C:\Users\..\workspace\AllInOneAdvancedSearch\runnerProject
[INFO] Reload Mechanic: automatic
[INFO] Classes directory    C:\Users\..\workspace\AllInOneAdvancedSearch\ampAlfrescoProject\target\classes 
[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = C:\Users\..\workspace\AllInOneAdvancedSearch\runnerProject\jetty\root-web.xml
[INFO] Webapp directory = C:\Users\..\workspace\AllInOneAdvancedSearch\runnerProject
[INFO] Reconfiguring scanner after change to pom.xml ...
2013-05-27 10:30:51.956:INFO::No Transaction manager found - if your webapp requires one, please configure one.
[INFO] Restart completed at Mon May 27 10:30:51 CEST 2013