You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/09/20 12:12:00 UTC

[jira] [Comment Edited] (MJAVADOC-812) REGRESSION: maven-javadoc-plugin 3.10.0 creates empty JARs

    [ https://issues.apache.org/jira/browse/MJAVADOC-812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17883232#comment-17883232 ] 

Michael Osipov edited comment on MJAVADOC-812 at 9/20/24 12:11 PM:
-------------------------------------------------------------------

Where is the Javadoc when produced with 3.8.0:
{noformat}
osipovmi@deblndw011x:/tmp/maven-javadoc-reproducer (main =)
$ find . -name \*.jar -exec sh -c 'echo "{}:"; tar tzf {}' \;
./javadoc-reproducer-spring/target/javadoc-reproducer-spring-0.0.1-SNAPSHOT.jar:
META-INF/
META-INF/MANIFEST.MF
com/
com/example/
com/example/demo/
META-INF/maven/
META-INF/maven/com.example/
META-INF/maven/com.example/javadoc-reproducer-spring/
application.properties
com/example/demo/DemoApplication.class
META-INF/maven/com.example/javadoc-reproducer-spring/pom.xml
META-INF/maven/com.example/javadoc-reproducer-spring/pom.properties
./javadoc/target/javadoc-0.0.1-SNAPSHOT.jar:
META-INF/
META-INF/MANIFEST.MF
META-INF/services/
META-INF/services/java.nio.file.spi.FileSystemProvider
org/
org/springframework/
org/springframework/boot/
org/springframework/boot/loader/
org/springframework/boot/loader/jar/
org/springframework/boot/loader/jar/JarEntriesStream$InputStreamSupplier.class
org/springframework/boot/loader/jar/JarEntriesStream.class
org/springframework/boot/loader/jar/ManifestInfo.class
org/springframework/boot/loader/jar/MetaInfVersionsInfo.class
org/springframework/boot/loader/jar/NestedJarFile$JarEntriesEnumeration.class
org/springframework/boot/loader/jar/NestedJarFile$JarEntryInflaterInputStream.class
org/springframework/boot/loader/jar/NestedJarFile$JarEntryInputStream.class
org/springframework/boot/loader/jar/NestedJarFile$NestedJarEntry.class
org/springframework/boot/loader/jar/NestedJarFile$RawZipDataInputStream.class
org/springframework/boot/loader/jar/NestedJarFile$ZipContentEntriesSpliterator.class
org/springframework/boot/loader/jar/NestedJarFile.class
org/springframework/boot/loader/jar/NestedJarFileResources.class
org/springframework/boot/loader/jar/SecurityInfo.class
org/springframework/boot/loader/jar/ZipInflaterInputStream.class
org/springframework/boot/loader/jarmode/
org/springframework/boot/loader/jarmode/JarMode.class
org/springframework/boot/loader/launch/
org/springframework/boot/loader/launch/Archive$Entry.class
org/springframework/boot/loader/launch/Archive.class
org/springframework/boot/loader/launch/ClassPathIndexFile.class
org/springframework/boot/loader/launch/ExecutableArchiveLauncher.class
org/springframework/boot/loader/launch/ExplodedArchive$FileArchiveEntry.class
org/springframework/boot/loader/launch/ExplodedArchive.class
org/springframework/boot/loader/launch/JarFileArchive$JarArchiveEntry.class
org/springframework/boot/loader/launch/JarFileArchive.class
org/springframework/boot/loader/launch/JarLauncher.class
org/springframework/boot/loader/launch/JarModeRunner.class
org/springframework/boot/loader/launch/LaunchedClassLoader$DefinePackageCallType.class
org/springframework/boot/loader/launch/LaunchedClassLoader.class
org/springframework/boot/loader/launch/Launcher.class
org/springframework/boot/loader/launch/PropertiesLauncher$Instantiator$Using.class
org/springframework/boot/loader/launch/PropertiesLauncher$Instantiator.class
org/springframework/boot/loader/launch/PropertiesLauncher.class
org/springframework/boot/loader/launch/SystemPropertyUtils.class
org/springframework/boot/loader/launch/WarLauncher.class
org/springframework/boot/loader/log/
org/springframework/boot/loader/log/DebugLogger$DisabledDebugLogger.class
org/springframework/boot/loader/log/DebugLogger$SystemErrDebugLogger.class
org/springframework/boot/loader/log/DebugLogger.class
org/springframework/boot/loader/net/
org/springframework/boot/loader/net/protocol/
org/springframework/boot/loader/net/protocol/Handlers.class
org/springframework/boot/loader/net/protocol/jar/
org/springframework/boot/loader/net/protocol/jar/Canonicalizer.class
org/springframework/boot/loader/net/protocol/jar/Handler.class
org/springframework/boot/loader/net/protocol/jar/JarFileUrlKey.class
org/springframework/boot/loader/net/protocol/jar/JarUrl.class
org/springframework/boot/loader/net/protocol/jar/JarUrlClassLoader$OptimizedEnumeration.class
org/springframework/boot/loader/net/protocol/jar/JarUrlClassLoader.class
org/springframework/boot/loader/net/protocol/jar/JarUrlConnection$ConnectionInputStream.class
org/springframework/boot/loader/net/protocol/jar/JarUrlConnection$EmptyUrlStreamHandler.class
org/springframework/boot/loader/net/protocol/jar/JarUrlConnection.class
org/springframework/boot/loader/net/protocol/jar/LazyDelegatingInputStream.class
org/springframework/boot/loader/net/protocol/jar/Optimizations.class
org/springframework/boot/loader/net/protocol/jar/UrlJarEntry.class
org/springframework/boot/loader/net/protocol/jar/UrlJarFile.class
org/springframework/boot/loader/net/protocol/jar/UrlJarFileFactory.class
org/springframework/boot/loader/net/protocol/jar/UrlJarFiles$Cache.class
org/springframework/boot/loader/net/protocol/jar/UrlJarFiles.class
org/springframework/boot/loader/net/protocol/jar/UrlJarManifest$ManifestSupplier.class
org/springframework/boot/loader/net/protocol/jar/UrlJarManifest.class
org/springframework/boot/loader/net/protocol/jar/UrlNestedJarFile.class
org/springframework/boot/loader/net/protocol/nested/
org/springframework/boot/loader/net/protocol/nested/Handler.class
org/springframework/boot/loader/net/protocol/nested/NestedLocation.class
org/springframework/boot/loader/net/protocol/nested/NestedUrlConnection$ConnectionInputStream.class
org/springframework/boot/loader/net/protocol/nested/NestedUrlConnection.class
org/springframework/boot/loader/net/protocol/nested/NestedUrlConnectionResources.class
org/springframework/boot/loader/net/util/
org/springframework/boot/loader/net/util/UrlDecoder.class
org/springframework/boot/loader/nio/
org/springframework/boot/loader/nio/file/
org/springframework/boot/loader/nio/file/NestedByteChannel$Resources.class
org/springframework/boot/loader/nio/file/NestedByteChannel.class
org/springframework/boot/loader/nio/file/NestedFileStore.class
org/springframework/boot/loader/nio/file/NestedFileSystem.class
org/springframework/boot/loader/nio/file/NestedFileSystemProvider.class
org/springframework/boot/loader/nio/file/NestedPath.class
org/springframework/boot/loader/nio/file/UriPathEncoder.class
org/springframework/boot/loader/ref/
org/springframework/boot/loader/ref/Cleaner.class
org/springframework/boot/loader/ref/DefaultCleaner.class
org/springframework/boot/loader/zip/
org/springframework/boot/loader/zip/ByteArrayDataBlock.class
org/springframework/boot/loader/zip/CloseableDataBlock.class
org/springframework/boot/loader/zip/DataBlock.class
org/springframework/boot/loader/zip/DataBlockInputStream.class
org/springframework/boot/loader/zip/FileDataBlock$FileAccess.class
org/springframework/boot/loader/zip/FileDataBlock$Tracker$1.class
org/springframework/boot/loader/zip/FileDataBlock$Tracker.class
org/springframework/boot/loader/zip/FileDataBlock.class
org/springframework/boot/loader/zip/NameOffsetLookups.class
org/springframework/boot/loader/zip/VirtualDataBlock.class
org/springframework/boot/loader/zip/VirtualZipDataBlock$DataPart.class
org/springframework/boot/loader/zip/VirtualZipDataBlock.class
org/springframework/boot/loader/zip/Zip64EndOfCentralDirectoryLocator.class
org/springframework/boot/loader/zip/Zip64EndOfCentralDirectoryRecord.class
org/springframework/boot/loader/zip/ZipCentralDirectoryFileHeaderRecord.class
org/springframework/boot/loader/zip/ZipContent$Entry.class
org/springframework/boot/loader/zip/ZipContent$Kind.class
org/springframework/boot/loader/zip/ZipContent$Loader.class
org/springframework/boot/loader/zip/ZipContent$Source.class
org/springframework/boot/loader/zip/ZipContent.class
org/springframework/boot/loader/zip/ZipDataDescriptorRecord.class
org/springframework/boot/loader/zip/ZipEndOfCentralDirectoryRecord$Located.class
org/springframework/boot/loader/zip/ZipEndOfCentralDirectoryRecord.class
org/springframework/boot/loader/zip/ZipLocalFileHeaderRecord.class
org/springframework/boot/loader/zip/ZipString$CompareType.class
org/springframework/boot/loader/zip/ZipString.class
META-INF/maven/
META-INF/maven/com.example/
META-INF/maven/com.example/javadoc/
META-INF/maven/com.example/javadoc/pom.xml
META-INF/maven/com.example/javadoc/pom.properties
BOOT-INF/
BOOT-INF/lib/
BOOT-INF/lib/javadoc-reproducer-spring-0.0.1-SNAPSHOT.jar
BOOT-INF/lib/spring-boot-3.4.0-M3.jar
BOOT-INF/lib/spring-boot-autoconfigure-3.4.0-M3.jar
BOOT-INF/lib/logback-classic-1.5.8.jar
BOOT-INF/lib/logback-core-1.5.8.jar
BOOT-INF/lib/slf4j-api-2.0.16.jar
BOOT-INF/lib/log4j-to-slf4j-2.24.0.jar
BOOT-INF/lib/log4j-api-2.24.0.jar
BOOT-INF/lib/jul-to-slf4j-2.0.16.jar
BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar
BOOT-INF/lib/spring-core-6.2.0-RC1.jar
BOOT-INF/lib/spring-jcl-6.2.0-RC1.jar
BOOT-INF/lib/snakeyaml-2.3.jar
BOOT-INF/lib/jackson-databind-2.17.2.jar
BOOT-INF/lib/jackson-annotations-2.17.2.jar
BOOT-INF/lib/jackson-core-2.17.2.jar
BOOT-INF/lib/jackson-datatype-jdk8-2.17.2.jar
BOOT-INF/lib/jackson-datatype-jsr310-2.17.2.jar
BOOT-INF/lib/jackson-module-parameter-names-2.17.2.jar
BOOT-INF/lib/tomcat-embed-core-10.1.30.jar
BOOT-INF/lib/tomcat-embed-el-10.1.30.jar
BOOT-INF/lib/tomcat-embed-websocket-10.1.30.jar
BOOT-INF/lib/spring-web-6.2.0-RC1.jar
BOOT-INF/lib/spring-beans-6.2.0-RC1.jar
BOOT-INF/lib/micrometer-observation-1.14.0-M3.jar
BOOT-INF/lib/micrometer-commons-1.14.0-M3.jar
BOOT-INF/lib/spring-webmvc-6.2.0-RC1.jar
BOOT-INF/lib/spring-aop-6.2.0-RC1.jar
BOOT-INF/lib/spring-context-6.2.0-RC1.jar
BOOT-INF/lib/spring-expression-6.2.0-RC1.jar
BOOT-INF/lib/spring-boot-jarmode-tools-3.4.0-M3.jar
BOOT-INF/classpath.idx
BOOT-INF/layers.idx
{noformat}

I don't see it. In fact, all files with {{javadoc}} classifier are supposed to be empty.


was (Author: michael-o):
Where is the Javadoc when produced with 3.8.0:
{noformat}

> REGRESSION: maven-javadoc-plugin 3.10.0 creates empty JARs
> ----------------------------------------------------------
>
>                 Key: MJAVADOC-812
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-812
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 3.10.0
>            Reporter: Armin Krezovic
>            Priority: Major
>             Fix For: wontfix-candidate, waiting-for-feedback
>
>         Attachments: maven-javadoc-invocation.log
>
>
> After updating to maven-javadoc-plugin 3.10.0, I am getting empty javadoc jars created.
> {code:java}
> [INFO] --- jar:3.4.2:jar (default-jar) @ configuration ---
> [INFO] Building jar: C:\path\to\configuration\target\configuration-10.1.0-SNAPSHOT-2409192051.4892c3d.jar
> [INFO]
> [INFO] --- javadoc:3.10.0:jar (attach-javadocs) @ configuration ---
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar: C:\path\to\configuration\target\configuration-10.1.0-SNAPSHOT-2409192051.4892c3d-javadoc.jar
> [INFO]
> [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ configuration ---
> [INFO] No sources in project. Archive not created.{code}
>  
> Prior version, 3.8.0, had no such problem
> {code:java}
> [INFO] --- jar:3.4.2:jar (default-jar) @ configuration ---
> [INFO] Building jar:  C:\path\to\configuration\target\configuration-10.1.0-SNAPSHOT-2409192102.595f143.jar
> [INFO]
> [INFO] --- javadoc:3.8.0:jar (attach-javadocs) @ configuration ---
> [INFO]
> [INFO] >>> source:3.3.1:jar (attach-sources) > generate-sources @ configuration >>>{code}
>  
> Plugin configuration
> {code:java}
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-javadoc-plugin</artifactId>                    
>     <version>3.10.0</version>
>     <configuration>
>        <doclint>all,-missing</doclint>
>     </configuration>
>     <executions>
>        <execution>
>           <id>attach-javadocs</id>
>           <goals>
>              <goal>jar</goal>
>           </goals>
>        </execution>
>     </executions>
> </plugin> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)