-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
configurationslicing-plugin:1.51
When installing the Configuration Slicing without the optional dependeinces, many extensions fail to load as they are not marked as `optional`:
Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load configurationslicing.maven.MavenGoals java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenGoals [...] Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet [...] Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load configurationslicing.maven.MavenIncremental java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenIncremental [...] Caused by: java.lang.TypeNotPresentException: Type hudson.maven.MavenModuleSet not present [...] Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet [...] Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load configurationslicing.maven.MavenOptsSlicer java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenOptsSlicer [...] Caused by: java.lang.TypeNotPresentException: Type hudson.maven.MavenModuleSet not present [...] Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet [...] Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load configurationslicing.maven.MavenSnapshotBuildTrigger java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenSnapshotBuildTrigger [...] Caused by: java.lang.TypeNotPresentException: Type hudson.maven.MavenModuleSet not present [...] Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet [...] Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load configurationslicing.pipeline.PipelineScriptSlicer java.lang.LinkageError: Failed to resolve class configurationslicing.pipeline.PipelineScriptSlicer [...] Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.job.WorkflowJob [...]
Those are apparent because they depends on optional plugin's classes in their definition. These extensions should be made optional as per https://www.jenkins.io/doc/developer/plugin-development/optional-dependencies/.
- links to