Possible Duplicate:
maven: (use -source 5 or higher to enable static import declarations)
What do I need to do to get around this error in Maven (there’s more, I just copied the top).
A key message seems to be:
could not parse error message: (use -source 5 or higher to enable
annotations)
but I tried adding -source 5 to the command and it didn’t recognize it. Do I need to edit a configuration file somewhere to state a Java version to use or something along those lines?
Here’s the error:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\SVN-atx-Ingestion\branches\atx-ingestion\src\main\java\com\somecompany\eikon\atx\ingestion\database\atxAtomickosXaDataSource.java:[115,4] error: annotations are not supported in -source 1.3
could not parse error message: (use -source 5 or higher to enable annotations)
C:\SVN-atx-Ingestion\branches\atx-ingestion\src\main\java\com\somecompany\eikon\atx\ingestion\database\atxAtomickosNonXaDataSource.java:47: error: annotations are not supported in -source 1.3
@Override
^
could not parse error message: (use -source 5 or higher to enable annotations)
C:\SVN-atx-Ingestion\branches\atx-ingestion\src\main\java\com\somecompany\eikon\atx\ingestion\database\XaDatabase.java:29: error: generics are not supported in -source 1.3
private final Map<String,atxAtomickosXaDataSource> map =
You need to do something like this I think: