TomEE maven plugin updateOnlyExtension

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TomEE maven plugin updateOnlyExtension

Felipe Jaekel
Hi,

I'm testing the TomEE maven plugin on a JSF project. I
added <updateOnlyExtension>.xhtml</updateOnlyExtension>.

When I change a xhtml I see on the console
[INFO] [Updating]
/home/fjaekel/java/Eclipse/photon/workspace/PacsWeb/src/main/webapp/page/consultaExame.xhtml
to
/home/fjaekel/java/Eclipse/photon/workspace/PacsWeb/target/apache-tomee/webapps/ResultadosWeb/page/consultaExame.xhtml

But when I hit F5 on the browser the page is not updated.

Am I missing something?
Thanks

Plugin config: ${tomee.version} is 7.0.5
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>${tomee.version}</version>
<configuration>
<reloadOnUpdate>true</reloadOnUpdate>
<synchronization>
<!-- extensions triggering a redeployment -->
<extensions>
<extension>.class</extension>
</extensions>
<updateOnlyExtensions>
<updateOnlyExtension>.xhtml</updateOnlyExtension>
<updateOnlyExtension>.js</updateOnlyExtension>
<updateOnlyExtension>.css</updateOnlyExtension>
</updateOnlyExtensions>
</synchronization>
<tomeeVersion>${tomee.version}</tomeeVersion>
<tomeeClassifier>plus</tomeeClassifier>
<checkStarted>true</checkStarted>
<config>${project.basedir}/src/test/tomee/conf</config>
<libs>
<lib>mysql:mysql-connector-java:5.1.47</lib>
<lib>org.firebirdsql.jdbc:jaybird-jdk18:3.0.4</lib>
</libs>
</configuration>
</plugin>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE maven plugin updateOnlyExtension

César Hernández Mendoza
Hi Felipe,

Sometimes browser need instead of F5 a hard refresh [1]
If you still have this issue it would be interesting to check your web.xml
and/or a sample repo that replicates the issue.

[1]
https://fabricdigital.co.nz/assets/How-to-hard-refresh-browser-infographic.jpg

El jue., 9 may. 2019 a las 5:40, Felipe Jaekel (<[hidden email]>)
escribió:

> Hi,
>
> I'm testing the TomEE maven plugin on a JSF project. I
> added <updateOnlyExtension>.xhtml</updateOnlyExtension>.
>
> When I change a xhtml I see on the console
> [INFO] [Updating]
>
> /home/fjaekel/java/Eclipse/photon/workspace/PacsWeb/src/main/webapp/page/consultaExame.xhtml
> to
>
> /home/fjaekel/java/Eclipse/photon/workspace/PacsWeb/target/apache-tomee/webapps/ResultadosWeb/page/consultaExame.xhtml
>
> But when I hit F5 on the browser the page is not updated.
>
> Am I missing something?
> Thanks
>
> Plugin config: ${tomee.version} is 7.0.5
> <plugin>
> <groupId>org.apache.tomee.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>${tomee.version}</version>
> <configuration>
> <reloadOnUpdate>true</reloadOnUpdate>
> <synchronization>
> <!-- extensions triggering a redeployment -->
> <extensions>
> <extension>.class</extension>
> </extensions>
> <updateOnlyExtensions>
> <updateOnlyExtension>.xhtml</updateOnlyExtension>
> <updateOnlyExtension>.js</updateOnlyExtension>
> <updateOnlyExtension>.css</updateOnlyExtension>
> </updateOnlyExtensions>
> </synchronization>
> <tomeeVersion>${tomee.version}</tomeeVersion>
> <tomeeClassifier>plus</tomeeClassifier>
> <checkStarted>true</checkStarted>
> <config>${project.basedir}/src/test/tomee/conf</config>
> <libs>
> <lib>mysql:mysql-connector-java:5.1.47</lib>
> <lib>org.firebirdsql.jdbc:jaybird-jdk18:3.0.4</lib>
> </libs>
> </configuration>
> </plugin>
>


--
Atentamente:
César Hernández.