Open sauliusg opened 9 years ago
By default, Maven tries to compile the source using Java 1.3 source compatibility, not the 1.5 as required:
saulius@kolibris ~> svn co https://github.com/petermr/norma.git/trunk norma saulius@kolibris ~> cd norma saulius@kolibris norma/ > mvn clean compile ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project norma: Compilation failure: Compilation failure: [ERROR] /home/saulius/src/norma/src/main/java/org/xmlcml/norma/json/BibSource.java:[28,20] error: generics are not supported in -source 1.3 ...
A workaround found: -- add the following to the "pom.xml" file:
saulius@kolibris norma/ > svn diff pom.xml
--- pom.xml (revision 99) +++ pom.xml (working copy) @@ -50,6 +50,16 @@
By default, Maven tries to compile the source using Java 1.3 source compatibility, not the 1.5 as required:
saulius@kolibris ~> svn co https://github.com/petermr/norma.git/trunk norma saulius@kolibris ~> cd norma saulius@kolibris norma/ > mvn clean compile ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project norma: Compilation failure: Compilation failure: [ERROR] /home/saulius/src/norma/src/main/java/org/xmlcml/norma/json/BibSource.java:[28,20] error: generics are not supported in -source 1.3 ...
A workaround found: -- add the following to the "pom.xml" file:
saulius@kolibris norma/ > svn diff pom.xml
Index: pom.xml
--- pom.xml (revision 99) +++ pom.xml (working copy) @@ -50,6 +50,16 @@