You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2018/07/17 07:31:00 UTC

[jira] [Created] (MSITE-826) Javadoc lint isn't disabled when running mvn site

Emmanuel Lecharny created MSITE-826:
---------------------------------------

             Summary: Javadoc lint isn't disabled when running mvn site
                 Key: MSITE-826
                 URL: https://issues.apache.org/jira/browse/MSITE-826
             Project: Maven Site Plugin
          Issue Type: Bug
    Affects Versions: 3.7.1
            Reporter: Emmanuel Lecharny


Hi,

yesterday, I spent a few hours trying to cut a release on {{Apache Directory LDAP API}}, and the only way I found to generate the javadoc was to downgrade to {{javadoc}} plugin version 2.9 instead of 3.0.1 when running {{mvn site}}.

The standard build (ie {{mvn clean install}}) works fine, with javadoc lint disabled.

At this point, it's likely to be a combinaison of the {{javadoc}} plugin and the {{site}} plugin.

Here is my {{<build><pluginManagement>}} declaration:

{code}
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <configuration>
          <show>private</show>
          <nohelp>true</nohelp>
          <doclint>none</doclint>
        </configuration>
      </plugin>
{code}

and the profile I have declared:
{code}
  <profiles>
    <profile>
      <id>jdk8</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <!--version>2.9.1</version-->
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <additionalparam>-Xdoclint:none</additionalparam>
      </properties>
    </profile>
{code}

to make it works. The version that does not work is on https://gitbox.apache.org/repos/asf?p=directory-ldap-api.git;a=blob;f=pom.xml;h=a07d7fcd2ed2ed799705d974633ff7a36f4d12e2;hb=21d49e3e05d159738743d562df99bab968aeae1f



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)