Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
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
by (46k 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)

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 20, 2019 in Java by Anvi (10.2k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...