I am running cas-overlay-template version 5.3.5 on Windows.
In src/main/resources/services, I have two different registered service json files, let's call them portal-1.json and portal-2.json. I have also modified src/main/resources/templates/casLoginView.html just to see if my changes are displayed.
When I build using "build run", during building I see this:
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cas-overlay ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
Great, it seems like it found the resource files and moved them. When I look in target/cas/WEB-INF/classes/services/, I see portal-1.json and portal-2.json along with the two default Apereo .json files, Apereo-10000002.json and HTTPSandIMAPS-10000001.json. I also see my changes in target/cas/WEB-INF/classes/templates/casLoginView.html.
Once CAS is up and running, I do not see my change on the login screen and the logs show this:
2018-11-01 17:34:01,224 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].>
NOTE: When I put the same service files in C:\etc\cas\services and update cas.properties in C:\etc\cas\config with the two lines below, the message above is "Loaded [2] service(s).."
cas.serviceRegistry.initFromJson=false
cas.serviceRegistry.json.location=file:/etc/cas/services
Looking at cas.war, I see:
$ jar -tf target/cas.war | grep json
WEB-INF/classes/services/Apereo-10000002.json
WEB-INF/classes/services/HTTPSandIMAPS-10000001.json
WEB-INF/classes/services/portal-1.json
WEB-INF/classes/services/portal-2.json
I didn't rip open the war to verify if my changes in casLoginView.html were there.
Any thoughts as to why my resources are not being applied at runtime?