Skip to content

Commit

Permalink
fix(cli): Use maven repository CLI flag for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer authored and squakez committed Sep 12, 2023
1 parent f205ce1 commit 80ca608
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/common/misc/maven_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
4 changes: 4 additions & 0 deletions e2e/support/test_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
1 change: 1 addition & 0 deletions pkg/builder/quarkus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 80ca608

Please sign in to comment.