You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/12 08:56:00 UTC
[jira] [Updated] (HDDS-4452) findbugs.sh couldn't be executed after
a full build
[ https://issues.apache.org/jira/browse/HDDS-4452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-4452:
---------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> ./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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org