0 votes
1 view
ago in Java by (2.6k points)

In pom.xml I have declaration like this

    <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-javadoc-plugin</artifactId>

        <executions>

            <execution>

                <id>attach-javadocs</id>

                <goals>

                    <goal>jar</goal>

                </goals>

            </execution>

        </executions>

    </plugin>

is there any way to turn that off from command line?

I do know I can extract that into a profile, but that is not what I want.

1 Answer

0 votes
ago by (26.5k points)

The Javadoc span can be hopped by inserting the property 

maven.javadoc.skip to true [1], i.e.

-Dmaven.javadoc.skip=true

(and not malicious)

...