Javadoc aggregate fails with MDEP-187 with dependency plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Javadoc aggregate fails with MDEP-187 with dependency plugin

Alex O'Ree
I'm attempting to, with a release profile, build javadoc jars for all
modules in my project and generate a single aggregate javadoc jar for the
whole project, preferable with just running 'mvn -PmyReleaseProfile
install'. Is this possible?

In my case i have a few modules that use the dependency plugin to copy
dependencies to a specific location. This seems to interfer with the
javadoc aggregate setup.I've attempted this a few times and keep getting
the MDEP-187 error message. Removing the aggregate javadoc jar setup
resolves the issue.

Any suggestions on how to resolve this?

using maven-dependency-plugin 3.0.0 and maven-javadoc-plugin 3.2.0
Reply | Threaded
Open this post in threaded view
|

Re: Javadoc aggregate fails with MDEP-187 with dependency plugin

olamy
Hi
what are the prepareGoals/goals of the release plugin?
maybe you could use <goals>package javadoc:aggregate-jar deploy</goals>
I know this will trigger few times the same lifecycle/goals and will add
few times the same jar to the artifacts to deploy but it should work.

On Mon, 1 Jun 2020 at 22:33, Alex O'Ree <[hidden email]> wrote:

> I'm attempting to, with a release profile, build javadoc jars for all
> modules in my project and generate a single aggregate javadoc jar for the
> whole project, preferable with just running 'mvn -PmyReleaseProfile
> install'. Is this possible?
>
> In my case i have a few modules that use the dependency plugin to copy
> dependencies to a specific location. This seems to interfer with the
> javadoc aggregate setup.I've attempted this a few times and keep getting
> the MDEP-187 error message. Removing the aggregate javadoc jar setup
> resolves the issue.
>
> Any suggestions on how to resolve this?
>
> using maven-dependency-plugin 3.0.0 and maven-javadoc-plugin 3.2.0
>


--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Reply | Threaded
Open this post in threaded view
|

Re: Javadoc aggregate fails with MDEP-187 with dependency plugin

Alex O'Ree-2
Thanks i'll give it a shot. if it doesn't work, I'll comes up with an
example project and share it on githubl

On Tue, Jun 2, 2020 at 10:39 PM Olivier Lamy <[hidden email]> wrote:

> Hi
> what are the prepareGoals/goals of the release plugin?
> maybe you could use <goals>package javadoc:aggregate-jar deploy</goals>
> I know this will trigger few times the same lifecycle/goals and will add
> few times the same jar to the artifacts to deploy but it should work.
>
> On Mon, 1 Jun 2020 at 22:33, Alex O'Ree <[hidden email]> wrote:
>
> > I'm attempting to, with a release profile, build javadoc jars for all
> > modules in my project and generate a single aggregate javadoc jar for the
> > whole project, preferable with just running 'mvn -PmyReleaseProfile
> > install'. Is this possible?
> >
> > In my case i have a few modules that use the dependency plugin to copy
> > dependencies to a specific location. This seems to interfer with the
> > javadoc aggregate setup.I've attempted this a few times and keep getting
> > the MDEP-187 error message. Removing the aggregate javadoc jar setup
> > resolves the issue.
> >
> > Any suggestions on how to resolve this?
> >
> > using maven-dependency-plugin 3.0.0 and maven-javadoc-plugin 3.2.0
> >
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>