Fail to build on Debian 11
Opened this issue · 1 comments
petterreinholdtsen commented
I tried and failed to build the code on Debian 11.
I cloned the source, installed maven and ran 'mvn', and got this failure:
Downloaded from central: https://repo.maven.apache.org/maven2/javassist/javassist/3.8.0.GA/javassist-3.8.0.GA.jar (594 kB at 7.7 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/net/sf/jour/jour-instrument/2.0.3/jour-instrument-2.0.3.jar (117 kB at 454 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bluecove ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pere/src/debian/bluecove/bluecove/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ bluecove ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 136 source files to /home/pere/src/debian/bluecove/bluecove/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 1.3 is no longer supported. Use 6 or later.
[ERROR] Target option 1.1 is no longer supported. Use 1.6 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] bluecove-site-skin 2.0.0 ........................... SUCCESS [ 7.429 s]
[INFO] bluecove-parent 2.1.1-SNAPSHOT ..................... SUCCESS [ 0.188 s]
[INFO] bluecove 2.1.1-SNAPSHOT ............................ FAILURE [ 2.181 s]
[INFO] bluecove-emu 2.1.1-SNAPSHOT ........................ SKIPPED
[INFO] bluecove-tests 2.1.1-SNAPSHOT ...................... SKIPPED
[INFO] bluecove-emu-gui 2.1.1-SNAPSHOT .................... SKIPPED
[INFO] bluecove-gpl 2.1.1-SNAPSHOT ........................ SKIPPED
[INFO] bluecove-bluez 2.1.1-SNAPSHOT ...................... SKIPPED
[INFO] bluecove-android2 2.1.1-SNAPSHOT ................... SKIPPED
[INFO] bluecove-examples 2.1.1-SNAPSHOT ................... SKIPPED
[INFO] dependency-fix 2.1.1-SNAPSHOT ...................... SKIPPED
[INFO] bluecove-tester-base 2.1.1-SNAPSHOT ................ SKIPPED
[INFO] tck-agent 2.1.1-SNAPSHOT ........................... SKIPPED
[INFO] bluecove-tester 2.1.1-SNAPSHOT ..................... SKIPPED
[INFO] bluecove-tester-obex 2.1.1-SNAPSHOT ................ SKIPPED
[INFO] bluecove-microemu-starter 2.1.1-SNAPSHOT ........... SKIPPED
[INFO] obex-install 2.1.1-SNAPSHOT ........................ SKIPPED
[INFO] obex-server 2.1.1-SNAPSHOT ......................... SKIPPED
[INFO] distribution 2.1.1-SNAPSHOT ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.147 s
[INFO] Finished at: 2022-10-24T14:45:44+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project bluecove: Compilation failure: Compilation failure:
[ERROR] Source option 1.3 is no longer supported. Use 6 or later.
[ERROR] Target option 1.1 is no longer supported. Use 1.6 or later.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :bluecove
petterreinholdtsen commented
I got the build limping along with the following patch, but it still do not build:
diff --git a/bluecove-android2/pom.xml b/bluecove-android2/pom.xml
index a0c2ec3c..be9105f4 100644
--- a/bluecove-android2/pom.xml
+++ b/bluecove-android2/pom.xml
@@ -71,8 +71,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
diff --git a/bluecove-bluez/pom.xml b/bluecove-bluez/pom.xml
index fc5377c2..27549833 100755
--- a/bluecove-bluez/pom.xml
+++ b/bluecove-bluez/pom.xml
@@ -114,8 +114,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
diff --git a/bluecove-emu-gui/pom.xml b/bluecove-emu-gui/pom.xml
index 6550d991..447de007 100644
--- a/bluecove-emu-gui/pom.xml
+++ b/bluecove-emu-gui/pom.xml
@@ -106,8 +106,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
diff --git a/bluecove-emu/pom.xml b/bluecove-emu/pom.xml
index b82eda9b..1d771371 100644
--- a/bluecove-emu/pom.xml
+++ b/bluecove-emu/pom.xml
@@ -88,8 +88,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
diff --git a/bluecove-examples/pom.xml b/bluecove-examples/pom.xml
index 5b30dc3b..3716df18 100644
--- a/bluecove-examples/pom.xml
+++ b/bluecove-examples/pom.xml
@@ -85,8 +85,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.4</source>
- <target>1.4</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
diff --git a/bluecove-gpl/pom.xml b/bluecove-gpl/pom.xml
index 1274f1d3..1364754d 100644
--- a/bluecove-gpl/pom.xml
+++ b/bluecove-gpl/pom.xml
@@ -81,8 +81,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.3</source>
- <target>1.1</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
diff --git a/bluecove-tests/pom.xml b/bluecove-tests/pom.xml
index 34312cbf..ff1338d8 100644
--- a/bluecove-tests/pom.xml
+++ b/bluecove-tests/pom.xml
@@ -65,8 +65,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>
@@ -105,4 +105,4 @@
</plugins>
</reporting>
-</project>
\ No newline at end of file
+</project>
diff --git a/bluecove/pom.xml b/bluecove/pom.xml
index 92a9fbe8..3e4ae507 100644
--- a/bluecove/pom.xml
+++ b/bluecove/pom.xml
@@ -126,8 +126,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.3</source>
- <target>1.1</target>
+ <source>6</source>
+ <target>1.6</target>
</configuration>
</plugin>