1

Javadoc says package doesnt exist in all the imports. This same setup worked for Java1.8 but with java 11 it has this issue

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (attach-javadocs) on project esymac: MavenReportException: Error while creating archive: [ERROR] Exit code: 1 - /home/JDK/com/SelfMonServiceLocator.java:23: error: package com does not exist [ERROR] import com.SelfMonConstants; [ERROR] ^

It was working in java1.8 properly with the same classes and pom.xml. But with java11 it fails to find packages.

Shruti
  • 23
  • 4
  • 3
    Huh? I use them all the time, and they are [still documented](https://docs.oracle.com/en/java/javase/11/javadoc/javadoc-command.html#GUID-3051737B-FFF9-45F9-85D1-5F07D6703592__GUID-7FBFFF8D-BF22-41B3-A6D7-2A8D09B5EFF8) - where did you find that they have been removed? –  Feb 26 '21 at 07:00
  • 1
    Besides, javadoc does not stop generating documents when encountering an unknown or unsupported tag. So if “javadocs are not getting generated”, the reason surely isn’t that `@see` or `@link` were not supported anymore. – Holger Feb 26 '21 at 07:49
  • Javadoc says package doesnt exist in all the imports. This same setup worked for Java1.8 but with java 11 it has this issue [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (attach-javadocs) on project esymac: MavenReportException: Error while creating archive: [ERROR] Exit code: 1 - /home/JDK/com/SelfMonServiceLocator.java:23: error: package com does not exist [ERROR] import com.SelfMonConstants; [ERROR] ^ – Shruti Feb 26 '21 at 08:23
  • 2
    Please edit your question to describe the complete error logs with the information of what your setup is. Providing a reproducible example would be great. – Naman Feb 26 '21 at 09:00
  • 2
    The error clearly tells you that it has trouble finding some class. There can be many reason for this. It mentions nothing about `@see` or `@link` no longer being supported. Fix the problem that causes the classes to not be found and it'll continue to just work fine. In other words: the question as posted is based on faulty assumption and can't be answered, please edit the question and add the complete error message in the body. – Joachim Sauer Feb 26 '21 at 09:03
  • 1
    The line that the error message is referring to seems to imply that you have a class in a package named just "com". Is this true? – k314159 Feb 26 '21 at 09:34
  • Yes that is correct. It says package does not exist but i checked com package is present. It also contains SelfMonServiceLocator.java file in it. – Shruti Mar 10 '21 at 10:29

0 Answers0