Сама ошибка:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project photohost: Compilation failure
[ERROR] ...modul/file/FileUpload.java:[18,35] static interface methods are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable static interface methods)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Ссылкаеться на это:
public interface FileUpload {
static String generateFileName **[ССЫЛАЕТЬСЯ НА ЭТО МЕСТО]**(){
***....***
return fileName;
}
}