3

如何在“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> 

但这不起作用。

4

0 回答 0