diff --git a/e2e/common/misc/maven_repository_test.go b/e2e/common/misc/maven_repository_test.go index c55098641b..8f7cce517e 100644 --- a/e2e/common/misc/maven_repository_test.go +++ b/e2e/common/misc/maven_repository_test.go @@ -45,6 +45,10 @@ func TestRunExtraRepository(t *testing.T) { Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning)) Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue)) Eventually(IntegrationLogs(ns, name), TestTimeoutShort).Should(ContainSubstring("Magicstring!")) + Eventually(Integration(ns, name)).Should(WithTransform(IntegrationSpec, And( + HaveExistingField("Repositories"), + HaveField("Repositories", ContainElements("https://maven.repository.redhat.com/ga@id=redhat")), + ))) Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed()) } diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go index 7531c32b1b..05fc4fb466 100644 --- a/e2e/support/test_support.go +++ b/e2e/support/test_support.go @@ -764,6 +764,10 @@ func Annotations(object metav1.Object) map[string]string { return object.GetAnnotations() } +func IntegrationSpec(it *v1.Integration) *v1.IntegrationSpec { + return &it.Spec +} + func Lease(ns string, name string) func() *coordination.Lease { return func() *coordination.Lease { lease := coordination.Lease{} diff --git a/pkg/builder/quarkus.go b/pkg/builder/quarkus.go index 85fcd92b5f..4159f99310 100644 --- a/pkg/builder/quarkus.go +++ b/pkg/builder/quarkus.go @@ -136,6 +136,7 @@ func generateQuarkusProject(ctx *builderContext) error { // Add Maven repositories p.Repositories = append(p.Repositories, ctx.Build.Maven.Repositories...) + p.PluginRepositories = append(p.PluginRepositories, ctx.Build.Maven.Repositories...) ctx.Maven.Project = p