72 references to WithMavenGoal
Aspire.Hosting.Java (3)
JavaHostingExtensions.cs (3)
64/// Combine with <see cref="WithMavenGoal{T}(IResourceBuilder{T}, string, string[])"/> or 743/// When the application launches with <see cref="WithMavenGoal{T}(IResourceBuilder{T}, string, string[])"/>, 749/// use <see cref="WithMavenGoal{T}(IResourceBuilder{T}, string, string[])"/> instead.
Aspire.Hosting.Java.Tests (69)
AddJavaAppPublishTests.cs (36)
26configureResource: app => app.WithMavenGoal("spring-boot:run")); 94.WithMavenGoal("spring-boot:run") 135.WithMavenGoal("spring-boot:run") 150.WithMavenGoal("spring-boot:run") 169.WithMavenGoal("spring-boot:run") 220configureResource: app => app.WithMavenGoal("spring-boot:run")); 258configureResource: app => app.WithMavenGoal("spring-boot:run").WithMavenBuild("-Pprod", "package")); 313configureResource: app => app.WithMavenGoal("spring-boot:run").WithJarArtifact("target/custom-name.jar")); 328configureResource: app => app.WithMavenGoal("spring-boot:run")); 340.WithMavenGoal("spring-boot:run") 355configureResource: app => app.WithMavenGoal("spring-boot:run")); 370configureResource: app => app.WithMavenGoal("spring-boot:run")); 380configureResource: app => app.WithMavenGoal("spring-boot:run")); 397configureResource: app => app.WithMavenGoal("spring-boot:run")); 413builder.AddJavaApp("api", sourceDir.FullName).WithMavenGoal("spring-boot:run"); 435.WithMavenGoal("spring-boot:run") 466.WithMavenGoal("spring-boot:run") 489.WithMavenGoal("spring-boot:run") 886.WithMavenGoal("spring-boot:run") 993? app.WithMavenGoal("spring-boot:run") 1017.WithMavenGoal("spring-boot:run") 1044? app.WithMavenGoal("spring-boot:run") 1064.WithMavenGoal("spring-boot:run") 1535configureResource: app => app.WithMavenGoal("spring-boot:run")); 1550configureResource: app => app.WithMavenGoal("spring-boot:run")); 1566configureResource: app => app.WithMavenGoal("spring-boot:run")); 1628.WithMavenGoal("spring-boot:run") 1668configureResource: app => app.WithMavenGoal("spring-boot:run")); 1678configureResource: app => app.WithMavenGoal("spring-boot:run")); 1710configureResource: app => app.WithMavenGoal("spring-boot:run")); 1746.WithMavenGoal("spring-boot:run") 1771.WithMavenGoal("spring-boot:run") 1819configureResource: app => app.WithMavenGoal("spring-boot:run")); 1829configureResource: app => app.WithMavenGoal("spring-boot:run")); 1840configureResource: app => app.WithMavenGoal("spring-boot:run")); 1856configureResource: app => app.WithMavenGoal("spring-boot:run"));
AddJavaAppTests.cs (31)
41var app = builder.AddJavaApp("api", tempDir.Path).WithMavenGoal("spring-boot:run"); 211var action = () => builder.WithMavenGoal("spring-boot:run"); 224var nullAction = () => app.WithMavenGoal(null!); 225var emptyAction = () => app.WithMavenGoal(string.Empty); 241.WithMavenGoal("spring-boot:run"); 255.WithMavenGoal("spring-boot:run", "-DskipTests"); 333.WithMavenGoal("spring-boot:run"); 375var app = builder.AddJavaApp("api", module).WithMavenGoal("spring-boot:run"); 471var action = () => app.WithMavenGoal("spring-boot:run"); 485var app = builder.AddJavaApp("api", tempDir.Path).WithMavenGoal("spring-boot:run"); 503var action = () => app.WithMavenGoal("spring-boot:run"); 548.WithMavenGoal("spring-boot:run"); 741var app = builder.AddJavaApp("api", tempDir.Path).WithMavenGoal("spring-boot:run"); 787.WithMavenGoal("spring-boot:run") 822var app = builder.AddJavaApp("api", tempDir.Path).WithMavenGoal("spring-boot:run"); 847.WithMavenGoal("spring-boot:run") 871.WithMavenGoal("spring-boot:run"); 1117app.WithMavenGoal("spring-boot:run"); 1121app.WithMavenGoal("spring-boot:run"); 1221.WithMavenGoal("spring-boot:run") 1253app.WithMavenGoal("spring-boot:run").WithMavenBuild("clean", "package"); 1257app.WithMavenBuild("clean", "package").WithMavenGoal("spring-boot:run"); 1272.WithMavenGoal("spring-boot:run") 1309.WithMavenGoal("spring-boot:run"); 1328.WithMavenGoal("spring-boot:run"); 1457var app = builder.AddJavaApp("api", tempDir.Path).WithMavenGoal("spring-boot:run"); 1571_ = tool == "maven" ? app.WithMavenGoal("spring-boot:run") : app.WithGradleTask("bootRun"); 1632var app = builder.AddJavaApp("catalog", tempDir.Path).WithMavenGoal("spring-boot:run"); 1649var app = builder.AddJavaApp("catalog", tempDir.Path).WithMavenGoal("spring-boot:run"); 1668.WithMavenGoal("spring-boot:run") 1699var app = builder.AddJavaApp("catalog", tempDir.Path).WithMavenGoal("spring-boot:run");
AddSpringBootAppTests.cs (2)
111.WithMavenGoal("spring-boot:test-run"); 265app.WithMavenGoal("spring-boot:run").WithMavenBuild();