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

Cannot run tests with Maven on a recent java version. (need to update bnd version in pom.xml) #1258

Closed
PhilipRoman opened this issue Jul 4, 2022 · 1 comment
Labels
Milestone

Comments

@PhilipRoman
Copy link
Collaborator

Cannot run tests with Maven on a recent java version.

According to bndtools/bnd#3903 it looks like we need to update bnd version to at least 5.1.0.

$ mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.java-websocket:Java-WebSocket >------------------
[INFO] Building Java-WebSocket 1.5.4-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Java-WebSocket ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/admin/Java-WebSocket/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ Java-WebSocket ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 78 source files to /home/admin/Java-WebSocket/target/classes
[INFO] /home/admin/Java-WebSocket/src/main/java/org/java_websocket/drafts/Draft.java: /home/admin/Java-WebSocket/src/main/java/org/java_websocket/drafts/Draft.java uses or overrides a deprecated API t
hat is marked for removal.
[INFO] /home/admin/Java-WebSocket/src/main/java/org/java_websocket/drafts/Draft.java: Recompile with -Xlint:removal for details.
[INFO]
[INFO] --- bnd-maven-plugin:4.3.1:bnd-process (default) @ Java-WebSocket ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.694 s
[INFO] Finished at: 2022-07-04T13:00:14Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:4.3.1:bnd-process (default) on project Java-WebSocket: bnd error: null: ConcurrentModificationException -> [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] https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[= 1]

Environment(please complete the following information):

  • Version used:
    bdf928b
  • Java version:
openjdk 17.0.3 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+7-alpine-r2)
OpenJDK 64-Bit Server VM (build 17.0.3+7-alpine-r2, mixed mode, sharing)
  • Operating System and version: Linux 5.15.43-0-virt #1-Alpine SMP Thu, 26 May 2022 10:32:47 +0000 x86_64 Linux
@marci4 marci4 added this to the Release 1.5.4 milestone Jul 4, 2022
@PhilipRoman
Copy link
Collaborator Author

This was fixed in as part of #1309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants