Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-centos8-builder-4c-4g-2440 (centos8-builder-4c-4g) in workspace /w/workspace/infrautils-sonar The recommended git tool is: NONE using credential jenkins-ssh Wiping out workspace first. Cloning the remote Git repository Cloning repository git://devvexx.opendaylight.org/mirror/infrautils > git init /w/workspace/infrautils-sonar # timeout=10 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/infrautils > git --version # timeout=10 > git --version # 'git version 2.43.0' using GIT_SSH to set credentials jenkins-ssh [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /w/workspace/infrautils-sonar@tmp/jenkins-gitclient-ssh4205787451929764584.key Verifying host key using known hosts file You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/infrautils +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/infrautils # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 1ea49ec9afbeaa3aad0e8a04a30397417a841dfa (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 1ea49ec9afbeaa3aad0e8a04a30397417a841dfa # timeout=10 Commit message: "Bump versions to 6.0.6-SNAPSHOT" > git rev-list --no-walk 1ea49ec9afbeaa3aad0e8a04a30397417a841dfa # timeout=10 Run condition [Boolean condition] enabling prebuild for step [BuilderChain] Run condition [Not] preventing prebuild for step [BuilderChain] [infrautils-sonar] $ /bin/bash /tmp/jenkins15816217963744365196.sh ---> python-tools-install.sh Setup pyenv: system * 3.8.13 (set by /opt/pyenv/version) * 3.9.13 (set by /opt/pyenv/version) * 3.10.6 (set by /opt/pyenv/version) lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-D4jZ lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-D4jZ/bin to PATH Generating Requirements File Python 3.10.6 pip 24.0 from /tmp/venv-D4jZ/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.2.2 aspy.yaml==1.3.0 attrs==23.2.0 autopage==0.5.2 beautifulsoup4==4.12.3 boto3==1.34.34 botocore==1.34.34 bs4==0.0.2 cachetools==5.3.2 certifi==2024.2.2 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cliff==4.5.0 cmd2==2.4.3 cryptography==3.3.2 debtcollector==2.5.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 distlib==0.3.8 dnspython==2.5.0 docker==4.2.2 dogpile.cache==1.3.0 email-validator==2.1.0.post1 filelock==3.13.1 future==0.18.3 gitdb==4.0.11 GitPython==3.1.41 google-auth==2.27.0 httplib2==0.22.0 identify==2.5.33 idna==3.6 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.3 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==2.4 jsonschema==4.21.1 jsonschema-specifications==2023.12.1 keystoneauth1==5.5.0 kubernetes==29.0.0 lftools==0.37.8 lxml==5.1.0 MarkupSafe==2.1.5 msgpack==1.0.7 multi_key_dict==2.0.3 munch==4.0.0 netaddr==0.10.1 netifaces==0.11.0 niet==1.4.2 nodeenv==1.8.0 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==0.62.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==3.0.0 oslo.config==9.3.0 oslo.context==5.3.0 oslo.i18n==6.2.0 oslo.log==5.4.0 oslo.serialization==5.3.0 oslo.utils==7.0.0 packaging==23.2 pbr==6.0.0 platformdirs==4.2.0 prettytable==3.9.0 pyasn1==0.5.1 pyasn1-modules==0.3.0 pycparser==2.21 pygerrit2==2.0.15 PyGithub==2.2.0 pyinotify==0.9.6 PyJWT==2.8.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.8.2 pyrsistent==0.20.0 python-cinderclient==9.4.0 python-dateutil==2.8.2 python-heatclient==3.4.0 python-jenkins==1.8.2 python-keystoneclient==5.3.0 python-magnumclient==4.3.0 python-novaclient==18.4.0 python-openstackclient==6.0.0 python-swiftclient==4.4.0 pytz==2024.1 PyYAML==6.0.1 referencing==0.33.0 requests==2.31.0 requests-oauthlib==1.3.1 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.17.1 rsa==4.9 ruamel.yaml==0.18.5 ruamel.yaml.clib==0.2.8 s3transfer==0.10.0 simplejson==3.19.2 six==1.16.0 smmap==5.0.1 soupsieve==2.5 stevedore==5.1.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.12.3 tqdm==4.66.1 typing_extensions==4.9.0 tzdata==2023.4 urllib3==1.26.18 virtualenv==20.25.0 wcwidth==0.2.13 websocket-client==1.7.0 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.13.0 yq==3.2.3 [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: true) Run condition [Boolean condition] enabling perform for step [BuilderChain] [infrautils-sonar] $ /bin/sh -xe /tmp/jenkins14504105158531369108.sh + echo 'Using SonarCloud' Using SonarCloud [infrautils-sonar] $ /bin/sh -xe /tmp/jenkins17445059852825930284.sh + echo quiet=on Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip to /w/tools/hudson.tasks.Maven_MavenInstallation/mvn38 on prd-centos8-builder-4c-4g-2440 [infrautils-sonar] $ /w/tools/hudson.tasks.Maven_MavenInstallation/mvn38/bin/mvn -DGERRIT_BRANCH=master -DPROJECT=infrautils -DMVN=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn38/bin/mvn -DSTREAM=master "-DARCHIVE_ARTIFACTS=**/*.log **/hs_err_*.log **/target/**/feature.xml **/target/failsafe-reports/failsafe-summary.xml **/target/surefire-reports/*-output.txt " -DJAVA_OPTS= -DGERRIT_PROJECT=infrautils -Dsha1=origin/master -DMAVEN_OPTS= -DGERRIT_REFSPEC=refs/heads/master -DM2_HOME=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn38 "-DMAVEN_PARAMS=-Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec -Dskip.karaf.featureTest=true " "-DSONAR_MAVEN_GOAL=jacoco:report -Djacoco.dataFile=$WORKSPACE/target/jacoco.exec sonar:sonar " --version Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn38 Java version: 11.0.18-ea, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.18.0.9-0.3.ea.el8.x86_64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.18.0-535.el8.x86_64", arch: "amd64", family: "unix" [infrautils-sonar] $ /bin/sh -xe /tmp/jenkins10693336949344348922.sh + rm /home/jenkins/.wgetrc [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SET_JDK_VERSION=openjdk17 GIT_URL="git://devvexx.opendaylight.org/mirror" [EnvInject] - Variables injected successfully. [infrautils-sonar] $ /bin/sh /tmp/jenkins4738273815349220743.sh ---> update-java-alternatives.sh ---> Updating Java version ---> RedHat type system detected openjdk version "17.0.6-ea" 2023-01-17 LTS OpenJDK Runtime Environment (Red_Hat-17.0.6.0.9-0.3.ea.el8) (build 17.0.6-ea+9-LTS) OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.9-0.3.ea.el8) (build 17.0.6-ea+9-LTS, mixed mode, sharing) JAVA_HOME=/usr/lib/jvm/java-17-openjdk [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' [EnvInject] - Variables injected successfully. [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content MAVEN_GOALS=clean install SONARCLOUD_JAVA_VERSION=openjdk17 SONARCLOUD_QUALITYGATE_WAIT=False SCAN_DEV_BRANCH=False PROJECT_ORGANIZATION=opendaylight SONAR_HOST_URL=https://sonarcloud.io PROJECT_KEY=opendaylight_infrautils [EnvInject] - Variables injected successfully. provisioning config files... copy managed file [global-settings] to file:/w/workspace/infrautils-sonar@tmp/config3162717769058222153tmp copy managed file [infrautils-settings] to file:/w/workspace/infrautils-sonar@tmp/config5836701989124965069tmp [infrautils-sonar] $ /bin/bash -l /tmp/jenkins2351048459975129542.sh ---> common-variables.sh --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ---> maven-sonar.sh + set +u + export MAVEN_OPTS + declare -a params + params+=("--global-settings $GLOBAL_SETTINGS_FILE") + params+=("--settings $SETTINGS_FILE") + _JAVA_OPTIONS= + /w/tools/hudson.tasks.Maven_MavenInstallation/mvn38/bin/mvn clean install -e -Dsonar --global-settings /w/workspace/infrautils-sonar@tmp/config3162717769058222153tmp --settings /w/workspace/infrautils-sonar@tmp/config5836701989124965069tmp --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dodl.jacoco.aggregateFile=/w/workspace/infrautils-sonar/target/jacoco.exec -Dskip.karaf.featureTest=true Picked up _JAVA_OPTIONS: Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn38 Java version: 17.0.6-ea, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.6.0.9-0.3.ea.el8.x86_64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.18.0-535.el8.x86_64", arch: "amd64", family: "unix" [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] ODL :: infrautils :: infrautils-artifacts [pom] [INFO] ODL :: infrautils :: parent [pom] [INFO] ODL :: infrautils :: infrautils-testutils [jar] [INFO] ODL :: infrautils :: infrautils-util [bundle] [INFO] ODL :: infrautils :: inject [bundle] [INFO] ODL :: infrautils :: inject.guice.testutils [jar] [INFO] ODL :: infrautils :: itestutils [bundle] [INFO] ODL :: infrautils :: ready-api [bundle] [INFO] diagstatus-api [bundle] [INFO] diagstatus-impl [bundle] [INFO] diagstatus-web [bundle] [INFO] diagstatus-shell [bundle] [INFO] ODL :: infrautils :: ready-impl [bundle] [INFO] ODL :: infrautils :: inject-spi [bundle] [INFO] ODL :: infrautils :: inject.guice [bundle] [INFO] ODL :: infrautils :: ready-guice [jar] [INFO] infrautils-docs [jar] [INFO] OpenDaylight :: Infrautils :: single-feature-parent [pom] [INFO] OpenDaylight :: Infrautils :: Utils [feature] [INFO] OpenDaylight :: Infrautils :: Ready [feature] [INFO] OpenDaylight :: Infrautils :: DiagStatus [feature] [INFO] ODL :: infrautils :: features-infrautils [feature] [INFO] OpenDaylight :: Infrautils :: @Inject [feature] [INFO] ODL :: infrautils :: features-infrautils-experimental [feature] [INFO] ODL :: infrautils :: features-infrautils-samples [feature] [INFO] ODL :: infrautils :: infrautils-features [feature] [INFO] ODL :: infrautils :: features-aggregator [pom] [INFO] ODL :: infrautils :: common-aggregator [pom] [INFO] ODL :: infrautils :: itestutils-parent [pom] [INFO] ODL :: infrautils :: diagstatus-it [jar] [INFO] diagstatus-aggregator [pom] [INFO] ODL :: infrautils :: inject-aggregator [pom] [INFO] ODL :: infrautils :: itestutils-it [jar] [INFO] ODL :: infrautils :: itestutils-aggregator [pom] [INFO] ODL :: infrautils :: ready-it [jar] [INFO] ODL :: infrautils :: ready-aggregator [pom] [INFO] infrautils [pom] [INFO] [INFO] ----------< org.opendaylight.infrautils:infrautils-artifacts >---------- [INFO] Building ODL :: infrautils :: infrautils-artifacts 6.0.6-SNAPSHOT [1/37] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ infrautils-artifacts --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ infrautils-artifacts --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed [INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ infrautils-artifacts --- [INFO] [INFO] --- cyclonedx-maven-plugin:2.7.10:makeBom (default) @ infrautils-artifacts --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 0 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/artifacts/target/bom.xml [INFO] attaching as infrautils-artifacts-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/artifacts/target/bom.json [WARNING] Unknown keyword additionalItems - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword [INFO] attaching as infrautils-artifacts-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ infrautils-artifacts --- [INFO] Installing /w/workspace/infrautils-sonar/artifacts/pom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-artifacts/6.0.6-SNAPSHOT/infrautils-artifacts-6.0.6-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/artifacts/target/bom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-artifacts/6.0.6-SNAPSHOT/infrautils-artifacts-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/artifacts/target/bom.json to /tmp/r/org/opendaylight/infrautils/infrautils-artifacts/6.0.6-SNAPSHOT/infrautils-artifacts-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] -----------------< org.opendaylight.infrautils:parent >----------------- [INFO] Building ODL :: infrautils :: parent 6.0.6-SNAPSHOT [2/37] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ parent --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ parent --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed [INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-banned-dependencies) @ parent --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ parent --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ parent --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/infrautils-sonar/common/parent/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (check-license) @ parent --- [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (default) @ parent --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-dependency-plugin:3.6.1:copy (unpack-license) @ parent --- [INFO] [INFO] >>> spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) > :spotbugs @ parent >>> [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:spotbugs (spotbugs) @ parent --- [INFO] [INFO] <<< spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) < :spotbugs @ parent <<< [INFO] [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) @ parent --- [INFO] [INFO] --- copy-files-plugin:13.0.10:copy-files (default) @ parent --- [INFO] [INFO] --- maven-javadoc-plugin:3.6.3:jar (attach-javadocs) @ parent --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx-maven-plugin:2.7.10:makeBom (default) @ parent --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 4 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/common/parent/target/bom.xml [INFO] attaching as parent-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/common/parent/target/bom.json [WARNING] Unknown keyword additionalItems - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword [INFO] attaching as parent-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder-maven-plugin:2.0.1:check (find-duplicate-classpath-entries) @ parent --- [INFO] Ignoring POM project! [INFO] [INFO] --- maven-dependency-plugin:3.6.1:analyze-only (analyze-declarations) @ parent --- [INFO] Skipping pom project [INFO] [INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ parent --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer-maven-plugin:2.7.0:modernizer (modernizer) @ parent --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:report (report) @ parent --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ parent --- [INFO] Installing /w/workspace/infrautils-sonar/common/parent/pom.xml to /tmp/r/org/opendaylight/infrautils/parent/6.0.6-SNAPSHOT/parent-6.0.6-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/common/parent/target/bom.xml to /tmp/r/org/opendaylight/infrautils/parent/6.0.6-SNAPSHOT/parent-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/common/parent/target/bom.json to /tmp/r/org/opendaylight/infrautils/parent/6.0.6-SNAPSHOT/parent-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] ----------< org.opendaylight.infrautils:infrautils-testutils >---------- [INFO] Building ODL :: infrautils :: infrautils-testutils 6.0.6-SNAPSHOT [3/37] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ infrautils-testutils --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ infrautils-testutils --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-banned-dependencies) @ infrautils-testutils --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ infrautils-testutils --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ infrautils-testutils --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/infrautils-sonar/testutils/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (check-license) @ infrautils-testutils --- [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (default) @ infrautils-testutils --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-dependency-plugin:3.6.1:copy (unpack-license) @ infrautils-testutils --- [INFO] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ infrautils-testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/testutils/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:compile (default-compile) @ infrautils-testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 21 source files with javac [forked debug release 17] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[41,22] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var sb = new StringBuilder();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[73,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("META-INF/NOTICE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("META-INF/NOTICE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("META-INF/NOTICE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[74,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("META-INF/LICENSE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("META-INF/LICENSE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("META-INF/LICENSE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[75,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("LICENSE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("LICENSE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("LICENSE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[76,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("LICENSE/NOTICE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("LICENSE/NOTICE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("LICENSE/NOTICE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogCapture.java:[59,19] [EqualsGetClass] Prefer instanceof to getClass when implementing Object#equals. (see https://errorprone.info/bugpattern/EqualsGetClass) Did you mean 'if (!(obj instanceof LogCapture)) {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogCapture.java:[66,19] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var other = (LogCapture) obj;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[85,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: trace(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[145,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: debug(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[205,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: info(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[265,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: warn(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[325,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: error(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[49,24] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var http = new ServerConnector(server);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[55,33] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var contextHandlerCollection = new ContextHandlerCollection();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[82,18] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case); did you mean 'getTestContextUrl'? (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[87,22] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var servletHolder = new ServletHolder(servlet);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/slf4j/impl/StaticLoggerBinder.java:[34,25] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogRule.java:[58,21] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case) (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) Did you mean 'long startTimeInMs = System.currentTimeMillis();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogRule.java:[66,25] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case) (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) Did you mean 'long durationInMs = System.currentTimeMillis() - startTimeInMS;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/mockito/MethodExtensions.java:[30,32] [AnnotationPosition] @Regex is a TYPE_USE annotation, so should appear after modifiers and directly before the type. (see https://google.github.io/styleguide/javaguide.html#s4.8.5-annotations) Did you mean to remove this line? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/mockito/MethodExtensions.java:[37,22] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var sb = new StringBuilder();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/RunUntilFailureRule.java:[51,66] [UnusedVariable] The parameter 'description' is never read. (see https://errorprone.info/bugpattern/UnusedVariable) Did you mean 'RunUntilFailureStatement(Statement statement) {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[32,25] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case) (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) Did you mean 'private final String baseUrl;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[38,32] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case); did you mean 'baseUrl'? (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[43,12] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var url = new URL(baseURL + (path.startsWith("/") ? path.substring(1) : path));'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[44,26] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var conn = (HttpURLConnection) url.openConnection();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesCheckRule.java:[44,21] [CanIgnoreReturnValueSuggester] Methods with ignorable return values (including methods that always 'return this') should be annotated with @com.google.errorprone.annotations.CanIgnoreReturnValue (see https://errorprone.info/bugpattern/CanIgnoreReturnValueSuggester) Did you mean '@CanIgnoreReturnValue'? [INFO] [INFO] >>> spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) > :spotbugs @ infrautils-testutils >>> [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:spotbugs (spotbugs) @ infrautils-testutils --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) < :spotbugs @ infrautils-testutils <<< [INFO] [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) @ infrautils-testutils --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ infrautils-testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/testutils/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:testCompile (default-testCompile) @ infrautils-testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 11 source files with javac [forked debug release 17] to target/test-classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckerTest.java:[24,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void noDuplicates() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckerTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void noDuplicates() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoUnstubbedMethodExceptionAnswerTest.java:[20,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void answering() throws IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[38,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[63,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[110,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[98,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[50,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[68,22] [ThrowSpecificExceptions] Base exception classes should be treated as abstract. If the exception is intended to be caught, throw a domain-specific exception. Otherwise, prefer a more specific exception for clarity. Common alternatives include: AssertionError, IllegalArgumentException, IllegalStateException, and (Guava's) VerifyException. (see https://errorprone.info/bugpattern/ThrowSpecificExceptions) Did you mean 'throw new AssertionError("boum thrown message", new IllegalArgumentException("boum thrown cause"));'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[90,21] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var sw = new StringWriter();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[91,20] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var pw = new PrintWriter(sw);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[99,23] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var logCaptureRule = new LogCaptureRule();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[111,23] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var logCaptureRule = new LogCaptureRule();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[72,16] [UnnecessarilyFullyQualified] This fully qualified name is unambiguous to the compiler if imported. (see https://errorprone.info/bugpattern/UnnecessarilyFullyQualified) Did you mean '@Serial'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[82,16] [UnnecessarilyFullyQualified] This fully qualified name is unambiguous to the compiler if imported. (see https://errorprone.info/bugpattern/UnnecessarilyFullyQualified) Did you mean '@Serial'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[59,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[49,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[34,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[41,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[47,30] [DirectInvocationOnMock] Methods should not be directly invoked on the mock `service`. Should this be part of a verify(..) call? (see https://errorprone.info/bugpattern/DirectInvocationOnMock) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[54,40] [DirectInvocationOnMock] Methods should not be directly invoked on the mock `service`. Should this be part of a verify(..) call? (see https://errorprone.info/bugpattern/DirectInvocationOnMock) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[66,38] [DirectInvocationOnMock] Methods should not be directly invoked on the mock `service`. Should this be part of a verify(..) call? (see https://errorprone.info/bugpattern/DirectInvocationOnMock) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[64,19] [YodaCondition] The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be (see https://errorprone.info/bugpattern/YodaCondition) Did you mean 'return Objects.equals(file.getName(), "hello.txt") ? 123 : 0;' or 'return file.getName().equals("hello.txt") ? 123 : 0;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[91,17] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var file = (File) invocation.getArguments()[0];'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[92,19] [YodaCondition] The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be (see https://errorprone.info/bugpattern/YodaCondition) Did you mean 'return Objects.equals(file.getName(), "hello.txt") ? 123 : 0;' or 'return file.getName().equals("hello.txt") ? 123 : 0;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoTest.java:[55,19] [YodaCondition] The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be (see https://errorprone.info/bugpattern/YodaCondition) Did you mean 'return Objects.equals(file.getName(), "hello.txt") ? 123 : 0;' or 'return file.getName().equals("hello.txt") ? 123 : 0;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[24,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void something() throws Exception {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[21,62] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[39,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void a() throws InterruptedException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[46,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void a() throws InterruptedException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[30,54] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[36,62] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [INFO] [INFO] --- maven-surefire-plugin:3.2.3:test (default-test) @ infrautils-testutils --- [INFO] Surefire report directory: /w/workspace/infrautils-sonar/testutils/target/surefire-reports [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up _JAVA_OPTIONS: [INFO] Running org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckerTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.696 s -- in org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckerTest [INFO] Running org.opendaylight.infrautils.testutils.tests.LogCaptureRuleInternalTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 s -- in org.opendaylight.infrautils.testutils.tests.LogCaptureRuleInternalTest [INFO] Running org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Running org.opendaylight.infrautils.testutils.tests.LogCaptureRuleTest [WARNING] Tests run: 13, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.031 s -- in org.opendaylight.infrautils.testutils.tests.LogCaptureRuleTest [INFO] Running org.opendaylight.infrautils.testutils.tests.ExampleTest [INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.549 s -- in org.opendaylight.infrautils.testutils.tests.ExampleTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MockitoUnstubbedMethodExceptionAnswerTest OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.599 s -- in org.opendaylight.infrautils.testutils.mockito.MockitoUnstubbedMethodExceptionAnswerTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MethodExtensionsTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s -- in org.opendaylight.infrautils.testutils.mockito.MethodExtensionsTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MockitoExampleTutorialTest [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.096 s -- in org.opendaylight.infrautils.testutils.mockito.MockitoExampleTutorialTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MockitoTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.154 s -- in org.opendaylight.infrautils.testutils.mockito.MockitoTest [INFO] Running org.opendaylight.infrautils.testutils.web.TestWebServerTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.805 s -- in org.opendaylight.infrautils.testutils.web.TestWebServerTest [INFO] [INFO] Results: [INFO] [WARNING] Tests run: 55, Failures: 0, Errors: 0, Skipped: 2 [INFO] [INFO] [INFO] --- copy-files-plugin:13.0.10:copy-files (default) @ infrautils-testutils --- [INFO] [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ infrautils-testutils --- [INFO] Building jar: /w/workspace/infrautils-sonar/testutils/target/infrautils-testutils-6.0.6-SNAPSHOT.jar [INFO] [INFO] --- maven-javadoc-plugin:3.6.3:jar (attach-javadocs) @ infrautils-testutils --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx-maven-plugin:2.7.10:makeBom (default) @ infrautils-testutils --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 31 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/testutils/target/bom.xml [INFO] attaching as infrautils-testutils-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/testutils/target/bom.json [INFO] attaching as infrautils-testutils-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder-maven-plugin:2.0.1:check (find-duplicate-classpath-entries) @ infrautils-testutils --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- maven-dependency-plugin:3.6.1:analyze-only (analyze-declarations) @ infrautils-testutils --- [WARNING] Used undeclared dependencies found: [WARNING] org.eclipse.jetty:jetty-servlet:jar:9.4.52.v20230823:compile [WARNING] org.eclipse.jetty:jetty-util:jar:9.4.52.v20230823:compile [WARNING] javax.servlet:javax.servlet-api:jar:3.1.0:compile [WARNING] org.eclipse.jetty:jetty-server:jar:9.4.52.v20230823:compile [WARNING] Unused declared dependencies found: [WARNING] org.hamcrest:hamcrest-library:jar:2.2:compile [WARNING] org.awaitility:awaitility:jar:4.1.1:compile [WARNING] org.eclipse.jetty:jetty-webapp:jar:9.4.52.v20230823:compile [WARNING] Non-test scoped test only dependencies found: [WARNING] org.hamcrest:hamcrest:jar:2.2:compile [INFO] [INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ infrautils-testutils --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer-maven-plugin:2.7.0:modernizer (modernizer) @ infrautils-testutils --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:report (report) @ infrautils-testutils --- [INFO] Loading execution data file /w/workspace/infrautils-sonar/testutils/target/code-coverage/jacoco.exec [INFO] Analyzed bundle 'ODL :: infrautils :: infrautils-testutils' with 26 classes [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ infrautils-testutils --- [INFO] Installing /w/workspace/infrautils-sonar/testutils/target/infrautils-testutils-6.0.6-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/6.0.6-SNAPSHOT/infrautils-testutils-6.0.6-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/testutils/pom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/6.0.6-SNAPSHOT/infrautils-testutils-6.0.6-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/testutils/target/bom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/6.0.6-SNAPSHOT/infrautils-testutils-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/testutils/target/bom.json to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/6.0.6-SNAPSHOT/infrautils-testutils-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] ------------< org.opendaylight.infrautils:infrautils-util >------------- [INFO] Building ODL :: infrautils :: infrautils-util 6.0.6-SNAPSHOT [4/37] [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ infrautils-util --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ infrautils-util --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-banned-dependencies) @ infrautils-util --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ infrautils-util --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ infrautils-util --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/infrautils-sonar/common/util/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (check-license) @ infrautils-util --- [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (default) @ infrautils-util --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-dependency-plugin:3.6.1:copy (unpack-license) @ infrautils-util --- [INFO] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ infrautils-util --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/common/util/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:compile (default-compile) @ infrautils-util --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 9 source files with javac [forked debug release 17] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/common/util/src/main/java/org/opendaylight/infrautils/utils/concurrent/LoggingFutures.java:[189,56] [CanIgnoreReturnValueSuggester] Methods with ignorable return values (including methods that always 'return this') should be annotated with @com.google.errorprone.annotations.CanIgnoreReturnValue (see https://errorprone.info/bugpattern/CanIgnoreReturnValueSuggester) Did you mean '@CanIgnoreReturnValue'? [INFO] [INFO] >>> spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) > :spotbugs @ infrautils-util >>> [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:spotbugs (spotbugs) @ infrautils-util --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) < :spotbugs @ infrautils-util <<< [INFO] [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) @ infrautils-util --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ infrautils-util --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/common/util/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:testCompile (default-testCompile) @ infrautils-util --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 2 source files with javac [forked debug release 17] to target/test-classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[35,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[55,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[63,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[48,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[42,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[28,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void something() throws Exception {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[25,62] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [INFO] [INFO] --- maven-surefire-plugin:3.2.3:test (default-test) @ infrautils-util --- [INFO] Surefire report directory: /w/workspace/infrautils-sonar/common/util/target/surefire-reports [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up _JAVA_OPTIONS: [INFO] Running org.opendaylight.infrautils.utils.concurrent.tests.FutureListenerLogTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.089 s -- in org.opendaylight.infrautils.utils.concurrent.tests.FutureListenerLogTest [INFO] Running org.opendaylight.infrautils.utils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 s -- in org.opendaylight.infrautils.utils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- copy-files-plugin:13.0.10:copy-files (default) @ infrautils-util --- [INFO] [INFO] --- maven-bundle-plugin:5.1.9:bundle (default-bundle) @ infrautils-util --- [INFO] Building bundle: /w/workspace/infrautils-sonar/common/util/target/infrautils-util-6.0.6-SNAPSHOT.jar [INFO] Writing manifest: /w/workspace/infrautils-sonar/common/util/target/classes/META-INF/MANIFEST.MF [INFO] [INFO] --- maven-javadoc-plugin:3.6.3:jar (attach-javadocs) @ infrautils-util --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx-maven-plugin:2.7.10:makeBom (default) @ infrautils-util --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 12 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/common/util/target/bom.xml [INFO] attaching as infrautils-util-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/common/util/target/bom.json [INFO] attaching as infrautils-util-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder-maven-plugin:2.0.1:check (find-duplicate-classpath-entries) @ infrautils-util --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- maven-dependency-plugin:3.6.1:analyze-only (analyze-declarations) @ infrautils-util --- [INFO] No dependency problems found [INFO] [INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ infrautils-util --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer-maven-plugin:2.7.0:modernizer (modernizer) @ infrautils-util --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:report (report) @ infrautils-util --- [INFO] Loading execution data file /w/workspace/infrautils-sonar/common/util/target/code-coverage/jacoco.exec [INFO] Analyzed bundle 'ODL :: infrautils :: infrautils-util' with 8 classes [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ infrautils-util --- [INFO] Installing /w/workspace/infrautils-sonar/common/util/target/infrautils-util-6.0.6-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/infrautils-util/6.0.6-SNAPSHOT/infrautils-util-6.0.6-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/common/util/pom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-util/6.0.6-SNAPSHOT/infrautils-util-6.0.6-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/common/util/target/bom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-util/6.0.6-SNAPSHOT/infrautils-util-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/common/util/target/bom.json to /tmp/r/org/opendaylight/infrautils/infrautils-util/6.0.6-SNAPSHOT/infrautils-util-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- maven-bundle-plugin:5.1.9:install (default-install) @ infrautils-util --- [INFO] Writing OBR metadata [INFO] Installing org/opendaylight/infrautils/infrautils-util/6.0.6-SNAPSHOT/infrautils-util-6.0.6-SNAPSHOT.jar [INFO] Writing OBR metadata [INFO] [INFO] -----------------< org.opendaylight.infrautils:inject >----------------- [INFO] Building ODL :: infrautils :: inject 6.0.6-SNAPSHOT [5/37] [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ inject --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ inject --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-banned-dependencies) @ inject --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ inject --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ inject --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/infrautils-sonar/inject/inject/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (check-license) @ inject --- [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (default) @ inject --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-dependency-plugin:3.6.1:copy (unpack-license) @ inject --- [INFO] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ inject --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:compile (default-compile) @ inject --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 5 source files with javac [forked debug release 17] to target/classes [INFO] [INFO] >>> spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) > :spotbugs @ inject >>> [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:spotbugs (spotbugs) @ inject --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) < :spotbugs @ inject <<< [INFO] [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) @ inject --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ inject --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:testCompile (default-testCompile) @ inject --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:3.2.3:test (default-test) @ inject --- [INFO] No tests to run. [INFO] [INFO] --- copy-files-plugin:13.0.10:copy-files (default) @ inject --- [INFO] [INFO] --- maven-bundle-plugin:5.1.9:bundle (default-bundle) @ inject --- [INFO] Building bundle: /w/workspace/infrautils-sonar/inject/inject/target/inject-6.0.6-SNAPSHOT.jar [INFO] Writing manifest: /w/workspace/infrautils-sonar/inject/inject/target/classes/META-INF/MANIFEST.MF [INFO] [INFO] --- maven-javadoc-plugin:3.6.3:jar (attach-javadocs) @ inject --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx-maven-plugin:2.7.10:makeBom (default) @ inject --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 5 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/inject/inject/target/bom.xml [INFO] attaching as inject-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/inject/inject/target/bom.json [INFO] attaching as inject-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder-maven-plugin:2.0.1:check (find-duplicate-classpath-entries) @ inject --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- maven-dependency-plugin:3.6.1:analyze-only (analyze-declarations) @ inject --- [INFO] No dependency problems found [INFO] [INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ inject --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer-maven-plugin:2.7.0:modernizer (modernizer) @ inject --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:report (report) @ inject --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ inject --- [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/target/inject-6.0.6-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/inject/6.0.6-SNAPSHOT/inject-6.0.6-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/pom.xml to /tmp/r/org/opendaylight/infrautils/inject/6.0.6-SNAPSHOT/inject-6.0.6-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/target/bom.xml to /tmp/r/org/opendaylight/infrautils/inject/6.0.6-SNAPSHOT/inject-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/target/bom.json to /tmp/r/org/opendaylight/infrautils/inject/6.0.6-SNAPSHOT/inject-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- maven-bundle-plugin:5.1.9:install (default-install) @ inject --- [INFO] Installing org/opendaylight/infrautils/inject/6.0.6-SNAPSHOT/inject-6.0.6-SNAPSHOT.jar [INFO] Writing OBR metadata [INFO] [INFO] ---------< org.opendaylight.infrautils:inject.guice.testutils >--------- [INFO] Building ODL :: infrautils :: inject.guice.testutils 6.0.6-SNAPSHOT [6/37] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ inject.guice.testutils --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ inject.guice.testutils --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-banned-dependencies) @ inject.guice.testutils --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ inject.guice.testutils --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ inject.guice.testutils --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (check-license) @ inject.guice.testutils --- [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (default) @ inject.guice.testutils --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-dependency-plugin:3.6.1:copy (unpack-license) @ inject.guice.testutils --- [INFO] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ inject.guice.testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:compile (default-compile) @ inject.guice.testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 4 source files with javac [forked debug release 17] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java:[17,56] [deprecation] AbstractCheckedModule in org.opendaylight.infrautils.inject.guice.testutils has been deprecated [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java:[17,56] [deprecation] AbstractCheckedModule in org.opendaylight.infrautils.inject.guice.testutils has been deprecated [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java:[17,56] [deprecation] AbstractCheckedModule in org.opendaylight.infrautils.inject.guice.testutils has been deprecated [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/GuiceRule.java:[64,51] [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter moduleClasses [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/GuiceRule.java:[68,27] [PreferredInterfaceType] Method return type can use a more specific type to convey more information to callers. (see https://errorprone.info/bugpattern/PreferredInterfaceType) Did you mean 'private static List createModules(List> moduleClasses) {'? [INFO] [INFO] >>> spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) > :spotbugs @ inject.guice.testutils >>> [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:spotbugs (spotbugs) @ inject.guice.testutils --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) < :spotbugs @ inject.guice.testutils <<< [INFO] [INFO] [INFO] --- spotbugs-maven-plugin:4.8.2.0:check (analyze-compile) @ inject.guice.testutils --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ inject.guice.testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:testCompile (default-testCompile) @ inject.guice.testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 5 source files with javac [forked debug release 17] to target/test-classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/GuiceRuleForgotAnnotationsModuleTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void guiceWithRule() {'? [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExampleGuiceRuleTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void guiceWithRule() {'? [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExamplePureGuiceTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void postConstruct() {'? [INFO] [INFO] --- maven-surefire-plugin:3.2.3:test (default-test) @ inject.guice.testutils --- [INFO] Surefire report directory: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/surefire-reports [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up _JAVA_OPTIONS: [INFO] Running org.opendaylight.infrautils.inject.guice.testutils.tests.GuiceRuleForgotAnnotationsModuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.246 s -- in org.opendaylight.infrautils.inject.guice.testutils.tests.GuiceRuleForgotAnnotationsModuleTest [INFO] Running org.opendaylight.infrautils.inject.guice.testutils.tests.ExampleGuiceRuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 s -- in org.opendaylight.infrautils.inject.guice.testutils.tests.ExampleGuiceRuleTest [INFO] Running org.opendaylight.infrautils.inject.guice.testutils.tests.ExamplePureGuiceTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s -- in org.opendaylight.infrautils.inject.guice.testutils.tests.ExamplePureGuiceTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- copy-files-plugin:13.0.10:copy-files (default) @ inject.guice.testutils --- [INFO] [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ inject.guice.testutils --- [INFO] Building jar: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/inject.guice.testutils-6.0.6-SNAPSHOT.jar [INFO] [INFO] --- maven-javadoc-plugin:3.6.3:jar (attach-javadocs) @ inject.guice.testutils --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx-maven-plugin:2.7.10:makeBom (default) @ inject.guice.testutils --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 19 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.xml [INFO] attaching as inject.guice.testutils-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.json [INFO] attaching as inject.guice.testutils-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder-maven-plugin:2.0.1:check (find-duplicate-classpath-entries) @ inject.guice.testutils --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- maven-dependency-plugin:3.6.1:analyze-only (analyze-declarations) @ inject.guice.testutils --- [WARNING] Used undeclared dependencies found: [WARNING] com.mycila.guice.extensions:mycila-guice-closeable:jar:5.0:compile [WARNING] Non-test scoped test only dependencies found: [WARNING] jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile [WARNING] com.guicedee.services:javax.inject:jar:1.0.20.2:compile [INFO] [INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ inject.guice.testutils --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer-maven-plugin:2.7.0:modernizer (modernizer) @ inject.guice.testutils --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:report (report) @ inject.guice.testutils --- [INFO] Loading execution data file /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/code-coverage/jacoco.exec [INFO] Analyzed bundle 'ODL :: infrautils :: inject.guice.testutils' with 5 classes [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ inject.guice.testutils --- [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/inject.guice.testutils-6.0.6-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/6.0.6-SNAPSHOT/inject.guice.testutils-6.0.6-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/pom.xml to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/6.0.6-SNAPSHOT/inject.guice.testutils-6.0.6-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.xml to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/6.0.6-SNAPSHOT/inject.guice.testutils-6.0.6-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.json to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/6.0.6-SNAPSHOT/inject.guice.testutils-6.0.6-SNAPSHOT-cyclonedx.json [INFO] [INFO] ---------------< org.opendaylight.infrautils:itestutils >--------------- [INFO] Building ODL :: infrautils :: itestutils 6.0.6-SNAPSHOT [7/37] [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ itestutils --- [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ itestutils --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-banned-dependencies) @ itestutils --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id-maven-plugin:7.0.0:revision (get-git-infos) @ itestutils --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ itestutils --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/infrautils-sonar/itestutils/itestutils/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (check-license) @ itestutils --- [INFO] [INFO] --- maven-checkstyle-plugin:3.3.1:check (default) @ itestutils --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-dependency-plugin:3.6.1:copy (unpack-license) @ itestutils --- [INFO] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ itestutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/itestutils/itestutils/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.12.1:compile (default-compile) @ itestutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 1 source file with javac [forked debug release 17] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/itestutils/itestutils/src/main/java/org/opendaylight/infrautils/itestutils/AbstractIntegrationTest.java:[65,23] [AvoidObjectArrays] Avoid returning a Option[]; consider an ImmutableList