Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sauliusg opened this issue Jun 21, 2015 · 0 comments
Open

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

sauliusg opened this issue Jun 21, 2015 · 0 comments

Comments

@sauliusg
Copy link

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 @@


  •              <plugin>
    
  •                <groupId>org.apache.maven.plugins</groupId>
    
  •                <artifactId>maven-compiler-plugin</artifactId>
    
  •                <version>2.3.2</version>
    
  •                <configuration>
    
  •                  <source>1.5</source>
    
  •                  <target>1.5</target>
    
  •                </configuration>
    
  •              </plugin>
    
    •   <plugin>
      

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.

petermr pushed a commit that referenced this issue Apr 8, 2016
added debug output to check merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant