Apparently, findbugs plugin version 3.0.5 does not support Java 10 or later. Please refer to the git issue [1] <https://github.com/gleclaire/findbugs-maven-plugin/issues/93>. Also, it is mentioned there that the users need to switch to the spotbugs <https://spotbugs.github.io/> plugin for the Java versions after 8 since they no longer maintain findbugs plugin.
[1] - https://github.com/gleclaire/findbugs-maven-plugin/issues/93 [2] - https://spotbugs.github.io So is it possible for us to switch to spotbugs plugin instead of upgrading the findbugs version? Thank you. Kind regards, Nipuni On Wed, Jul 17, 2019 at 8:30 PM Jayanga Kaushalya <[email protected]> wrote: > On Wed, Jul 17, 2019 at 5:23 PM Nipuni Paaris <[email protected]> wrote: > >> Hi all, >> >> The org.codehaus.mojo:findbugs-maven-plugin appears to have a bug and >> when trying to execute the mvn clean install command it tends to throw the >> following error. >> >> Failed to execute goal >>> org.codehaus.mojo:findbugs-maven-plugin:3.0.3:findbugs (findbugs) on >>> project identity-apps: Unable to parse configuration of mojo >>> org.codehaus.mojo:findbugs-maven-plugin:3.0.3:findbugs for parameter >>> pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with >>> value '${plugin.artifacts}' of type >>> java.util.Collections.UnmodifiableRandomAccessList to property of type >>> java.util.ArrayList >> >> >> However, the issue seems to be fixed from findbugs version 3.0.4 onwards. >> Therefore we were able to overcome the above-mentioned problem by *updating >> the >> findbugs plugin version to 3.0.4 in component's root pom.xml. *We could >> also fix this by *downgrading the maven version to 3.5.* *in our >> machines as an alternative. >> > > Downgrading should not be an option. > >> >> So will it be possible to upgrade the findbugs plugin version in [1] >> <https://github.com/wso2/carbon-parent/blob/carbon-parent-5/pom.xml#L570> to >> 3.0.4, since it'll be more convenient for all the users rather than having >> to downgrade maven locally or to upgrade the findbugs version in each >> repository? >> > > Since it is a patch version upgrade, it should be fine. (Better to test it > locally). So +1 to upgrade. > By the way, since 3.0.5 is the latest version, shall we try to upgrde to > that version? (Any issues in that?) > >> >> Your comments and suggestions on this would be highly appreciated. >> >> [1] - >> https://github.com/wso2/carbon-parent/blob/carbon-parent-5/pom.xml#L570 >> <https://www.google.com/url?q=https://github.com/wso2/carbon-parent/blob/carbon-parent-5/pom.xml%23L570&sa=D&source=hangouts&ust=1563442952833000&usg=AFQjCNGTZ4oN1ZWI3qWNmMsBChQdiP-5Qg> >> >> Thank you. >> >> Kind regards, >> -- >> Nipuni Paaris | Software Engineer | WSO2 Inc. >> (m) +94 077 9028904 | (w) +94 011 2145345 | Email: [email protected] >> [image: https://wso2.com/signature] <https://wso2.com/signature> >> >> -- Nipuni Paaris | Software Engineer | WSO2 Inc. (m) +94 077 9028904 | (w) +94 011 2145345 | Email: [email protected] [image: https://wso2.com/signature] <https://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
