On Wed, 2018-10-17 at 11:55 +0200, Dominik Süß wrote:
> Yes - is this also generated when you generated when you build the
> javadoc
> via javadoc:jar ?
> It somehow isn't for me.

No, the legal files are not included in the javadoc jar when invoking
the goal separately.

I think the reason is that you're invoking various goals + the install
phase, so basically you are piping 4 separate executions instead of a
single one with the same context.

Your example had

$ mvn 
  clean \
  javadoc:jar \
  source:jar \
  install \
  org.codehaus.mojo:ianal-maven-plugin:verify-legal-files

So when the javadoc:jar and source:jar goals have been executed the
process-resource-bundles and remote-resources-custom-notice were not
run. So there is no addition of LICENSE and NOTICE file.

I suggest you use the -Papache-release goal for creating 'proper'
sources and javadoc jars.

Robert

P.S. Please try to not top-post, it makes following the conversation
harder :-)

Reply via email to