You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Justin Georgeson <JG...@lgc.com> on 2016/01/14 23:38:02 UTC

RE: [EXTERNAL] How best to override maven-javadoc-plugin to do nothing?

Try setting property maven.javadoc.skip to true in your pom.xml

https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#skip
https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html#skip


> -----Original Message-----
> From: David M. Karr [mailto:davidmichaelkarr@gmail.com]
> Sent: Thursday, January 14, 2016 4:36 PM
> To: users@maven.apache.org
> Subject: [EXTERNAL] How best to override maven-javadoc-plugin to do
> nothing?
> 
> Simple question: How do I best override the maven-javadoc-plugin to make
> it do nothing?
> 
> I'm integrating a non-API project into a much larger build where everything
> else is an API, so maven-javadoc-plugin is specified in the parent.  It would be
> best to just have it not run javadoc on this project, or do nothing.
> 
> Is the best strategy to specify "*" for the "excludePackageNames" property?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


Re: [EXTERNAL] How best to override maven-javadoc-plugin to do nothing?

Posted by "David M. Karr" <da...@gmail.com>.
Thanks.  I managed to figure this out.  Sorry I didn't reply before.

On 01/15/2016 11:28 AM, Andreas Gudian wrote:
> The clean way would be to skip the plugin execution using something like
> this at the appropriate level in your pom / parent-pom hierarchy:
>
> <build>
>    <pluginManagement>
>      <plugins>
>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-javadoc-plugin</artifactId>
>          <version>..</version> <!-- if not yet specified in a parent -->
>          <configuration>
>            <skip>true</skip>
>          </configuration>
>        </plugin>
>    </...>
>
>
>
> 2016-01-14 23:38 GMT+01:00 Justin Georgeson <JG...@lgc.com>:
>
>> Try setting property maven.javadoc.skip to true in your pom.xml
>>
>>
>> https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#skip
>> https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html#skip
>>
>>
>>> -----Original Message-----
>>> From: David M. Karr [mailto:davidmichaelkarr@gmail.com]
>>> Sent: Thursday, January 14, 2016 4:36 PM
>>> To: users@maven.apache.org
>>> Subject: [EXTERNAL] How best to override maven-javadoc-plugin to do
>>> nothing?
>>>
>>> Simple question: How do I best override the maven-javadoc-plugin to make
>>> it do nothing?
>>>
>>> I'm integrating a non-API project into a much larger build where
>> everything
>>> else is an API, so maven-javadoc-plugin is specified in the parent.  It
>> would be
>>> best to just have it not run javadoc on this project, or do nothing.
>>>
>>> Is the best strategy to specify "*" for the "excludePackageNames"
>> property?
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [EXTERNAL] How best to override maven-javadoc-plugin to do nothing?

Posted by Andreas Gudian <an...@gmail.com>.
The clean way would be to skip the plugin execution using something like
this at the appropriate level in your pom / parent-pom hierarchy:

<build>
  <pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>..</version> <!-- if not yet specified in a parent -->
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
  </...>



2016-01-14 23:38 GMT+01:00 Justin Georgeson <JG...@lgc.com>:

> Try setting property maven.javadoc.skip to true in your pom.xml
>
>
> https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#skip
> https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html#skip
>
>
> > -----Original Message-----
> > From: David M. Karr [mailto:davidmichaelkarr@gmail.com]
> > Sent: Thursday, January 14, 2016 4:36 PM
> > To: users@maven.apache.org
> > Subject: [EXTERNAL] How best to override maven-javadoc-plugin to do
> > nothing?
> >
> > Simple question: How do I best override the maven-javadoc-plugin to make
> > it do nothing?
> >
> > I'm integrating a non-API project into a much larger build where
> everything
> > else is an API, so maven-javadoc-plugin is specified in the parent.  It
> would be
> > best to just have it not run javadoc on this project, or do nothing.
> >
> > Is the best strategy to specify "*" for the "excludePackageNames"
> property?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
>