Marton Elek created HDDS-4452:
---------------------------------
Summary: findbugs.sh couldn't be executed after a full build
Key: HDDS-4452
URL: https://issues.apache.org/jira/browse/HDDS-4452
Project: Hadoop Distributed Data Store
Issue Type: Bug
Reporter: Marton Elek
Assignee: Marton Elek
./hadoop-ozone/dev-support/checks/findbugs.sh -- which is a short-cut to
execute the CI findbugs check locally -- couldn't be executed locally after a
full build:
{code}
./hadoop-ozone/dev-support/checks/findbugs.sh
....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.451 s
[INFO] Finished at: 2020-11-11T11:42:40+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.github.spotbugs:spotbugs-maven-plugin:3.1.12:spotbugs (spotbugs) on project
hadoop-hdds: Execution spotbugs of goal
com.github.spotbugs:spotbugs-maven-plugin:3.1.12:spotbugs failed: Java
returned: 1 -> [Help 1]
[ERROR]
{code}
The problem:
`target/classes` directory should be either empty/missing or it should contain
java classes to make spotbugs work.
On github it works well as an empty checkout is tested. But locally it's
possible that a dummy classpath file is created under
`hadoop-hdds/target/classes` which breaks spotbug local execution.
The solution is easy: execute the classpath descriptor generation only if
`src/main/java` dir exists.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]