You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Rodseth <rr...@gmail.com> on 2013/12/21 00:52:35 UTC

javadoc errors

We are having the following problem generating javadocs using

mvn javadoc:aggregate -DskipTest=true -P site,\!build-ui

>>>

[ERROR] Exit code: 1 - javadoc: warning - Multiple sources of package
comments found for package "org.osgi.framework"

[ERROR] javadoc: warning - Multiple sources of package comments found for
package "org.apache.commons.collections"

[ERROR] javadoc: warning - Multiple sources of package comments found for
package "org.acplt.oncrpc"

[ERROR] javadoc: warning - Multiple sources of package comments found for
package "org.apache.commons.beanutils"

[ERROR]
com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class):
warning: Cannot find annotation method 'value()' in type
'javax.annotation.concurrent.GuardedBy': class file for
javax.annotation.concurrent.GuardedBy not found

[ERROR]
com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class):
warning: Cannot find annotation method 'value()' in type
'javax.annotation.concurrent.GuardedBy'

<<<

But I've had no luck at all adding <excludePackageNames> to our top-level
pom.xml, e.g..

<plugin>

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

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

<version>${maven-javadoc-plugin.version}</version>

<configuration>


<excludePackageNames>org.osgi.framework.*,com.googlecode.*</excludePackageNames>

</configuration>

<reportSets>

<reportSet>

<id>html</id>

<reports>

<report>javadoc</report>

</reports>

</reportSet>

</reportSets>

</plugin>

Any troubleshooting tips would be appreciated. Thanks.

Re: javadoc errors

Posted by Richard Rodseth <rr...@gmail.com>.
Thanks. We are using osgi.  I'd be happy if I could just exclude all
third-party libs from the javadoc generation.


On Fri, Dec 20, 2013 at 11:13 PM, Mirko Friedenhagen <
mfriedenhagen@gmail.com> wrote:

> Hello Richard,
>
> a wild guess: you have the same packages included by different dependencies
> (guava was once called Google collections, some jakarta-commons components
> were available via multiple groupId/artifactId combinations).
>
> Regards
> Mirko
> --
> Sent from my mobile
> On Dec 21, 2013 12:53 AM, "Richard Rodseth" <rr...@gmail.com> wrote:
>
> > We are having the following problem generating javadocs using
> >
> > mvn javadoc:aggregate -DskipTest=true -P site,\!build-ui
> >
> > >>>
> >
> > [ERROR] Exit code: 1 - javadoc: warning - Multiple sources of package
> > comments found for package "org.osgi.framework"
> >
> > [ERROR] javadoc: warning - Multiple sources of package comments found for
> > package "org.apache.commons.collections"
> >
> > [ERROR] javadoc: warning - Multiple sources of package comments found for
> > package "org.acplt.oncrpc"
> >
> > [ERROR] javadoc: warning - Multiple sources of package comments found for
> > package "org.apache.commons.beanutils"
> >
> > [ERROR]
> >
> >
> com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class):
> > warning: Cannot find annotation method 'value()' in type
> > 'javax.annotation.concurrent.GuardedBy': class file for
> > javax.annotation.concurrent.GuardedBy not found
> >
> > [ERROR]
> >
> >
> com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class):
> > warning: Cannot find annotation method 'value()' in type
> > 'javax.annotation.concurrent.GuardedBy'
> >
> > <<<
> >
> > But I've had no luck at all adding <excludePackageNames> to our top-level
> > pom.xml, e.g..
> >
> > <plugin>
> >
> > <groupId>org.apache.maven.plugins</groupId>
> >
> > <artifactId>maven-javadoc-plugin</artifactId>
> >
> > <version>${maven-javadoc-plugin.version}</version>
> >
> > <configuration>
> >
> >
> >
> >
> <excludePackageNames>org.osgi.framework.*,com.googlecode.*</excludePackageNames>
> >
> > </configuration>
> >
> > <reportSets>
> >
> > <reportSet>
> >
> > <id>html</id>
> >
> > <reports>
> >
> > <report>javadoc</report>
> >
> > </reports>
> >
> > </reportSet>
> >
> > </reportSets>
> >
> > </plugin>
> >
> > Any troubleshooting tips would be appreciated. Thanks.
> >
>

Re: javadoc errors

Posted by Mirko Friedenhagen <mf...@gmail.com>.
Hello Richard,

a wild guess: you have the same packages included by different dependencies
(guava was once called Google collections, some jakarta-commons components
were available via multiple groupId/artifactId combinations).

Regards
Mirko
-- 
Sent from my mobile
On Dec 21, 2013 12:53 AM, "Richard Rodseth" <rr...@gmail.com> wrote:

> We are having the following problem generating javadocs using
>
> mvn javadoc:aggregate -DskipTest=true -P site,\!build-ui
>
> >>>
>
> [ERROR] Exit code: 1 - javadoc: warning - Multiple sources of package
> comments found for package "org.osgi.framework"
>
> [ERROR] javadoc: warning - Multiple sources of package comments found for
> package "org.apache.commons.collections"
>
> [ERROR] javadoc: warning - Multiple sources of package comments found for
> package "org.acplt.oncrpc"
>
> [ERROR] javadoc: warning - Multiple sources of package comments found for
> package "org.apache.commons.beanutils"
>
> [ERROR]
>
> com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class):
> warning: Cannot find annotation method 'value()' in type
> 'javax.annotation.concurrent.GuardedBy': class file for
> javax.annotation.concurrent.GuardedBy not found
>
> [ERROR]
>
> com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class):
> warning: Cannot find annotation method 'value()' in type
> 'javax.annotation.concurrent.GuardedBy'
>
> <<<
>
> But I've had no luck at all adding <excludePackageNames> to our top-level
> pom.xml, e.g..
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <version>${maven-javadoc-plugin.version}</version>
>
> <configuration>
>
>
>
> <excludePackageNames>org.osgi.framework.*,com.googlecode.*</excludePackageNames>
>
> </configuration>
>
> <reportSets>
>
> <reportSet>
>
> <id>html</id>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> </reportSets>
>
> </plugin>
>
> Any troubleshooting tips would be appreciated. Thanks.
>