JSP hot-swap in Maven glassfish embedded plugin

妖精的绣舞 提交于 2019-12-06 04:49:45

问题


I am trying to setup embedded glassfish maven plugin and I succeeded, but I can't make jsp files to be hot-swapped.

Here is my config:

<plugin>
    <groupId>org.glassfish</groupId>
    <artifactId>maven-embedded-glassfish-plugin</artifactId>
    <version>3.0.1</version>
    <configuration>
        <instanceRoot>${project.build.directory}</instanceRoot>
        <goalPrefix>embedded-glassfish</goalPrefix>
        <app>target/myapp.war</app>
        <port>8080</port>
        <contextRoot>myapp</contextRoot>
        <autoDelete>true</autoDelete>
    </configuration>
</plugin>

Any clues?


回答1:


Resurrection for further reference. I managed to do that by deploying an exploded war archive like this.

<app>${project.build.directory}/${project.build.finalName}</app>

To generate an exploded war use goal war:exploded.



来源:https://stackoverflow.com/questions/3389516/jsp-hot-swap-in-maven-glassfish-embedded-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!