fabric8io / kubernetes-client

Java client for Kubernetes & OpenShift
http://fabric8.io
Apache License 2.0
3.42k stars 1.46k forks source link

No export of tekton-triggers v1beta1 #5218

Closed ggallen closed 1 year ago

ggallen commented 1 year ago

I am trying to upgrade my v1alpha1 tekton-triggers to v1beta1 and have run into this problem.

On this line:

            String url = eventListener.getStatus().getAddress().getUrl();

I get this error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project agogos-cli: Compilation failure
[ERROR] /home/gallen/work/cpaas/agogos/cli/src/main/java/com/redhat/agogos/cli/commands/adm/InitNamespaceCommand.java:[206,62] cannot access io.fabric8.tekton.triggers.internal.knative.pkg.apis.duck.v1beta1.Addressable
[ERROR]   class file for io.fabric8.tekton.triggers.internal.knative.pkg.apis.duck.v1beta1.Addressable not found
[ERROR]

The VS Code UI says something slightly different:

The type io.fabric8.tekton.triggers.internal.knative.pkg.apis.duck.v1beta1.Addressable cannot be resolved. It is indirectly referenced from required type io.fabric8.tekton.triggers.v1beta1.EventListenerStatusJava(16777563)

How can I resolve it?

Originally posted by @ggallen in https://github.com/fabric8io/kubernetes-client/discussions/5208

ggallen commented 1 year ago

Please see the discussion in #5208.