On 10/15/21 2:06 AM, Mat Booth wrote:
On Fri, 15 Oct 2021 at 05:34, Orion Poplawski <orion(a)nwra.com>
wrote:
>
> I'm trying to resurrect the google "truth" package. I have a 0.42
> branch here:
>
>
https://src.fedoraproject.org/fork/orion/rpms/truth/tree/0.42
>
> But the javadoc fails to build with:
>
> [INFO] -------------------< com.google.truth:truth-parent
> >--------------------
> [INFO] Building Truth (Parent) 0.42
> [7/6]
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] --- xmvn-mojo:4.0.0:install (default-cli) @ truth-parent ---
> [INFO]
> [INFO] --- xmvn-mojo:4.0.0:javadoc (default-cli) @ truth-parent ---
>
/home/orion/fedora/truth/truth-release_0_42/extensions/proto/target/generated-sources/annotations/com/google/common/truth/extensions/proto/AutoValue_FluentEqualityConfig.java:11:
> error: cannot find symbol
> import javax.annotation.Generated;
> ^
> symbol: class Generated
> location: package javax.annotation
>
>
> any advice as to how to proceed would be helpful. These are generate
> source files. I've tried disabling maven-plugin-javadoc and excluding
> sources in various ways to no effect.
>
> Thanks!
>
"javax.annotation" was one of the EE APIs that was removed in Java 11
so you are almost certainly just missing a dependency on
"javax.annotation:javax.annotation-api"
Upstream probably builds on Java 8.
Thanks for the pointer. I had to add the dependency to the
extensions/proto/pom.xml, but that did the trick.
--
Orion Poplawski
he/him/his - surely the least important thing about me
Manager of NWRA Technical Systems 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion(a)nwra.com
Boulder, CO 80301
https://www.nwra.com/