petermr / norma

Convert XML/SVG/PDF into normalised, sectioned, scholarly HTML
Apache License 2.0
2 stars 4 forks source link

Norma does not compile on Linux Mint 17.1 LTS (Rebecca) #10

Open sauliusg opened 9 years ago

sauliusg commented 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:

org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.6 1.5

saulius@kolibris norma/ > svn diff pom.xml

Index: pom.xml

--- pom.xml (revision 99) +++ pom.xml (working copy) @@ -50,6 +50,16 @@

- - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - 1.5 - 1.5 - - + After this, 'mvn clean compile' builds the project sucessfully. P.M.-R. suggests that the problem might be in the parent POM which is missing on my machine.