Skip to content

Commit afb2dee

Browse files
committed
[MJAVADOC-713] Skipping Javadoc reportset leaves empty Javadoc link in site
This closes #246
1 parent 4bad23f commit afb2dee

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/apache/maven/plugins/javadoc/JavadocReport.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public boolean isExternalReport() {
221221
public boolean canGenerateReport() {
222222
boolean canGenerate = false;
223223

224-
if (this.isAggregator() || !"pom".equals(this.project.getPackaging())) {
224+
if (!skip && (this.isAggregator() || !"pom".equals(this.project.getPackaging()))) {
225225
Collection<Path> sourcePaths;
226226
Map<Path, Collection<String>> files;
227227
try {
@@ -289,11 +289,6 @@ private void updateReportOutputDirectory(File reportOutputDirectory, String dest
289289
/** {@inheritDoc} */
290290
@Override
291291
public void doExecute() throws MojoExecutionException, MojoFailureException {
292-
if (skip) {
293-
getLog().info("Skipping javadoc generation");
294-
return;
295-
}
296-
297292
File outputDirectory = new File(getOutputDirectory());
298293

299294
String filename = getOutputName() + ".html";

0 commit comments

Comments
 (0)