Maven GlassFish嵌入式插件。包装后重新部署

时间:2012-04-24 11:14:59

标签: java maven maven-glassfish-plugin

如何在“Package”之后配置自动重新部署? 在通过命令org.glassfish:maven-embedded-glassfish-plugin:3.1.1:run运行服务器后,我在应用程序上运行包goal(因为我需要在源代码中进行一些更改后重新编译我的应用程序),并在maven-embedded-glassfish-plugin上使用以下参数

                <execution>
                    <id>undeploy</id>
                    <phase>package</phase>
                    <goals>
                        <goal>undeploy</goal>
                    </goals>
                </execution>
                <execution>
                    <id>deploy</id>
                    <phase>package</phase>
                    <goals>
                        <goal>deploy</goal>
                    </goals>
                </execution> 

但这不起作用。

0 个答案:

没有答案
相关问题