You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -245,30 +241,30 @@ _Note: integration suite isn't yet separated from unit._
245
241
246
242
The `core` and `serving` modules are Spring Boot applications. These may be run as usual for [the Spring Boot Maven plugin][boot-maven]:
247
243
248
-
$ mvn --also-make --projects core sprint-boot:run
244
+
$ mvn --projects core spring-boot:run
249
245
250
246
# Or for short:
251
-
$ mvn -am -pl core spring-boot:run
247
+
$ mvn -pl core spring-boot:run
252
248
253
-
Note the use of `--also-make` since some components depend on library modules from within the project.
249
+
Note that you should execute `mvn` from the Feast repository root directory, as there are intermodule dependencies that Maven will not resolve if you `cd` to subdirectories to run.
IntelliJ IDEA Ultimate has built-in support for Spring Boot projects, so everything may work out of the box. The Community Edition needs help with two matters:
255
+
Compiling and running tests in IntelliJ should work as usual.
256
+
257
+
Running the Spring Boot apps may work out of the box in IDEA Ultimate, which has built-in support for Spring Boot projects, but the Community Edition needs a bit of help:
260
258
261
-
1. The IDE is [not clever enough][idea-also-make] to apply `--also-make` for Maven when it should.
262
-
1. The Spring Boot Maven plugin automatically puts dependencies with `provided` scope on the runtime classpath when using `spring-boot:run`, such as its embedded Tomcat server. The "Play" buttons in the gutter or right-click menu of a `main()` method [do not do this][idea-boot-main].
259
+
The Spring Boot Maven plugin automatically puts dependencies with `provided` scope on the runtime classpath when using `spring-boot:run`, such as its embedded Tomcat server. The "Play" buttons in the gutter or right-click menu of a `main()` method [do not do this][idea-boot-main].
263
260
264
-
Fortunately there is one simple way to address both:
261
+
A solution to this is:
265
262
266
263
1. Open `View > Tool Windows > Maven`
267
264
1. Drill down to e.g. `Feast Core > Plugins > spring-boot:run`, right-click and `Create 'feast-core [spring-boot'…`
268
265
1. In the dialog that pops up, check the `Resolve Workspace artifacts` box
269
266
1. Click `OK`. You should now be able to select this run configuration for the Play button in the main toolbar, keyboard shortcuts, etc.
0 commit comments