Hallo Ryan.

I would have expected the shaded package names here. Or did you forget
to shade the sources, too? Do you want the ASM stuff included in the
Javadocs anyway?

I think for a question like this there are too many variables to do
anything but speculate. Therefore, a minimal reproducer project, ideally
on GitHub, would be helpful. I might not even be the person finding the
solution for you, but I am sure the reproducer helps others to help you.

Regards
-- 
Alexander Kriegisch
https://scrum-master.de


Ryan Lubke schrieb am 21.04.2022 02:07 (GMT +07:00):

> Hey folks,
> 
> I've been banging my head against an issue with generating javadocs for a
> module I'm working on.
> The module shades and relocates ASM into the final result - this is fine.
> 
> However, when attempting to generate the javadocs for this, it fails with:
> 
> (package org.objectweb.asm is declared in the unnamed module, but module
> org.objectweb.asm does not read it)
> <somepath>//PartialObject.java:26: error: package org.objectweb.asm is not
> visible
> import org.objectweb.asm.ClassWriter;
> 
> There are of course multiple errors in the output - basically anything
> using ASM.
> I've tried adding additional dependencies to the javadoc plugin referencing
> the non-shaded ASM artifacts, but no dice.
> 
> Haven't had much luck searching this one out.
> Any suggestions?
> 
> Thanks,
> -rl
> 

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

Reply via email to