'Java 17 upgrade - error: package com.sun.javadoc does not exist

While upgrading to jdk17 getting this blocker any hacks? please comment.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project test: Compilation failure: Compilation failure:

[ERROR] C:\Users\test\git\java\com\util\test.java:[31,22] error: package com.sun.javadoc does not exist



Solution 1:[1]

The com.sun.javadoc package was deprecated in Java 11, and has been removed for Java 17. Your code must be updated. Please refer to the migration guide for package jdk.javadoc.doclet for replacement APIs.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gjoranv