Why does eclipse/maven does not always deploy my project with last update?
-
19-06-2021 - |
Question
Here is my work environment: Eclipse Juno
as IDE
with maven2
plugin on it - it uses maven 3.0.4
installation from my system - and my maven
web project is deployed to a remote server on an Apace Tomcat
java server. (The server is in the same LAN
with my machine.) Every thing works perfect, except some rare situations: it happens randomly.
Problem: At some times, when I try to redeploy my updated project to Tomcat
, through tomcat-maven-plugin
, the JavaScript
files in the Tomcat
's project directory, DO NOT change. They stay intact (even if I did changes to them), and my application has lack in behavior. No errors are reported by maven
during redeployment.
Question: do you have any idea about what's happening?
N.B.
- In the rare situations when I got that problem, I got it working finally, after rebooting the
Tomcat
server, deleting theTomcat
's project directory, cleaningmaven
installed artifact and other actions that I did - I just tried all what I could do, because I didn't have any logical clue for what happend. - I updated
Eclipse Galileo
toEclipse Juno
two days ago, and I encountered this problem in both of them. So, I think that's an issue rather related tomaven
not toEclipse
.
Solution
I found it: I wasn't right when I said that the files are not updated on the server. My problem was the browser. It loads the Javascript
file from cache.
So Ctrl
+F5
resolved the problem.