Eclipse: project not created due to "Could not read file ... ~ $ somefile.xlsx"

I have an excel file (somefile.xlsx) in my maven project.
A temporary file ~$somefile.xlsxwill be generated automatically if I modify this file. It also automatically disappears if I close the file.
When this temporary eclipse file exists, my project could not be created. The problem window said:
The project was not build due to "Could not read file :D:\myworkspace\src\main\java\com\mycompany\suites\~$somefile.xlsx".


How to solve such problems? Should I try to tell eclipse or maven to ignore this temporary file - is there such a way?

+3
source share
1 answer

Switch to:

Project> Properties> Resource → Resource Filters → Add

Choose:

  • Exclude all
  • Files
  • All children (recursive)

: ~ *

eclipse tmp MS office.

+2

All Articles