<plugin>
<groupId>com.google.code.play2-maven-plugin</groupId>
<artifactId>play2-maven-plugin</artifactId>
<version>${play2.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<!-- if using controllers without dependency injection; default value is "injected" -->
<routesGenerator>static</routesGenerator>
</configuration>
</plugin>
I am using Guice (default DI) so not sure what to put in routesGenerator. I don't see any documents either.
Here's the console output for `sbt run` after I hit localhost:9000
(Server started, use Enter to stop and go back to the console...)
[info] Compiling 13 Scala sources and 1 Java source to /Users/npatel/myworkspace/play-scala-rest-api-example/target/scala-2.11/classes ...
[error] /Users/npatel/ws/play-scala-rest-api-example/conf/routes:1:1: type HomeController is not a member of package controllers
[error] GET / controllers.HomeController.index
[error] /Users/npatel/ws/play-scala-rest-api-example/conf/routes:1:1: type HomeController is not a member of package controllers
[error] GET / controllers.HomeController.index
[error] /Users/npatel/ws/play-scala-rest-api-example/conf/routes:1:1: type HomeController is not a member of package controllers
[error] GET / controllers.HomeController.index
[error] three errors found
[error] (root/compile:compileIncremental) Compilation failed
[error] application -
I have removed HOmeController.index , but point is it atleast scanned all the routes and tried to compile.
WIht `mvn play2:run` I get following after I hit localhost:9000
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
[INFO]
[INFO] (Server started, use [Enter] to stop...)
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building play-scala-rest-api-example 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ play-scala-rest-api-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO] Copying 5 resources
[INFO] Copying 108 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ play-scala-rest-api-example ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.469 s
[INFO] Finished at: 2017-11-21T18:13:23-08:00
[INFO] Final Memory: 21M/436M
[INFO] ------------------------------------------------------------------------
[info] p.a.h.EnabledFilters - Enabled Filters (see <https://www.playframework.com/documentation/latest/Filters>):
[info] play.api.Play - Application started (Dev)
[debug] a.ErrorHandler - onClientError: statusCode = 404, uri = /, message =
AM I missing anything here with play-maven configuration?
![]()
![]()
![]()
![]()
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/57945408-1ae6-4ae5-a3fe-b14220490c1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
<packaging>play2</packaging>