Javadocs plugin: Collect from multiple directories

Hi,

in a pipeline, I am running Maven to compile my project, and create Javadocs, like this:

	stage ('Collect JavaDocs') {
	    steps {
		javadoc(javadocDir: './subProject/target/site/apidocs',
			keepAll: false)
	    }
	}
    }

So far, this has worked fine. Now. I suddenly notice, that the generated Javadocs are no longer in the directory subProject/target/site/apidocs, but
in subProject/target/reports/apidocs.

Question: Would it work, if i’d specify “./**/apidocs”, instead of just changing the path?

Thanks,

Jochen

Jenkins setup:
Jenkins: 2.479.1
OS: Linux - 6.11.6-300.fc41.x86_64
Java: 17.0.13 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)

javadoc:280.v050b_5c849f69