Skip to content

bnd-maven-plugin ConcurrentModificationException on latest OpenJDK 15 EA #3903

Closed
@dbwiddis

Description

@dbwiddis

I've been using the bnd-maven-plugin for a long time with no issues and have not made any recent configuration changes. Beginning tonight, the Travis CI build is failing on the OpenJDK15 (early access) build with this error:

[ERROR] Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:5.0.1:bnd-process (default) on project oshi-core: bnd error: null: ConcurrentModificationException

The Java version used is:

openjdk version "15-ea" 2020-09-15
OpenJDK Runtime Environment (build 15-ea+18-776)
OpenJDK 64-Bit Server VM (build 15-ea+18-776, mixed mode, sharing)

Link to failing Travis CI job: https://travis-ci.org/github/oshi/oshi/jobs/673288964

It worked as recently as a two days ago on a slightly earlier EA build:

openjdk version "15-ea" 2020-09-15
OpenJDK Runtime Environment (build 15-ea+17-717)
OpenJDK 64-Bit Server VM (build 15-ea+17-717, mixed mode, sharing)

Link to passing Travis CI job from 2 days ago: https://travis-ci.org/github/oshi/oshi/jobs/672568551

Other relevant version strings:

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/travis/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3
Java version: 15-ea, vendor: Oracle Corporation, runtime: /home/travis/openjdk15
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-1055-gcp", arch: "amd64", family: "unix"

Relevant portions of my POM configuration:

<properties>
  <bnd-maven-plugin.version>5.0.1</bnd-maven-plugin.version>
</properties>

<build>
  <pluginManagement>
    <plugins>
      <plugin>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-maven-plugin</artifactId>
        <version>${bnd-maven-plugin.version}</version>
        <configuration>
          <bnd><![CDATA[
          Export-Package: oshi.*;-noimport:=true;-split-package:=merge-first
          Bundle-SymbolicName: ${project.groupId}.${project.artifactId}
          -snapshot: SNAPSHOT
        ]]></bnd>
        </configuration>
      </plugin>
    </plugins>
  </pluginManagement>
  <plugins>
    <plugin>
      <groupId>biz.aQute.bnd</groupId>
      <artifactId>bnd-maven-plugin</artifactId>
      <executions>
        <execution>
          <goals>
            <goal>bnd-process</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

Happy to help troubleshoot but I have no idea where to even start!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions