When that warning shows up, you can open the Quick-Fix menu on the warning (Ctrl+1) and select
Ignore this warning
This will add the comment on the version line, like :
javax.validation
validation-api
1.1.0.Final
Your problem is you manually added that comment on the wrong line.