Tuesday, 10 September 2013

Sublime Text 2 edited file-changes does not show when refreshing browser in Maven project

Sublime Text 2 edited file-changes does not show when refreshing browser
in Maven project

I am having problems when editing template-files(HTML-files) in my
Maven-project. I have made the Maven-project an Eclipse-project with the
command "mvn eclipse:eclipse" (if it matters). I am using the Apache
Velocity Engine as template engine for this project.
The problem arises when I'm editing the files in Sublime, and then save
the file and refresh the browser. The changes does not show! If I however
open the template file in Eclipse, just open it, I can even just open and
close it right away, and THEN refresh the browser, the changes will show.
I have done a test to see if this problem occurs on other simple projects
as well, and with a single HTML-file and a simple http-server, the work I
save in Sublime shows as normal.
Does anybody know what is happening here? Am I bound to keep on using
Eclipse as a HTML-editor? :( Does the Eclipse project files prevent me
from using other editors? Why are the changes only showing when I open the
files in Eclipse?
Any help is greatly appreciated!

No comments:

Post a Comment