We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
--- 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>
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.
The text was updated successfully, but these errors were encountered:
Merge pull request #10 from petermr/dev
c77e624
added debug output to check merge
No branches or pull requests
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
saulius@kolibris norma/ > svn diff pom.xml
Index: pom.xml
--- pom.xml (revision 99)
+++ pom.xml (working copy)
@@ -50,6 +50,16 @@
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.
The text was updated successfully, but these errors were encountered: