diff --git a/Maven-Overlay-Project-How-To.md b/Maven-Overlay-Project-How-To.md index b3cdf67..839cdc5 100644 --- a/Maven-Overlay-Project-How-To.md +++ b/Maven-Overlay-Project-How-To.md @@ -51,7 +51,7 @@ You can find an example of the results of this guide [here](https://github.com/m ``` - This creates a project with one sub module, `my-openid-connect` which will hold our modifications we want to overlay. We also set some global properties (versions of MITREid Connect, Java, Spring, etc.) and the final name of the resulting war file here. +This creates a project with one sub module, `my-openid-connect` which will hold our modifications we want to overlay. We also set some global properties (versions of MITREid Connect, Java, Spring, etc.) and the final name of the resulting war file here. 3. Create the my-openid-connect submodule @@ -111,7 +111,7 @@ You can find an example of the results of this guide [here](https://github.com/m ``` - At this point you should be able to do a `mvn package` from the `example-openid-connect-overlay` level and you'll get a .war file at `example-openid-connect-overlay/my-openid-connect/target/my-openid-connect-server.war`. Remember this name was set in the `example-openid-connect-overlay/pom.xml` as the `finalName`. +At this point you should be able to do a `mvn package` from the `example-openid-connect-overlay` level and you'll get a .war file at `example-openid-connect-overlay/my-openid-connect/target/my-openid-connect-server.war`. Remember this name was set in the `example-openid-connect-overlay/pom.xml` as the `finalName`. 6. Any files you create in the `my-openid-connect` maven project will be inserted into the resultant war file. If you use the same name as a file in the upstream MITREid Connect server (`OpenID-Connect-Java-Spring-Server/openid-connect-server/`) project that you're overlaying, such as `example-openid-connect-overlay/my-openid-connect/src/main/resources/keystore.jwks`, the version from the `my-openid-connect` project will be used in the resulting .war file. This is good for setting up things like database connections or replacing the server's keypair. You may also create new Spring beans with new names (in `my-openid-connect/src/main/java/...`) that implement or override the standard openid-connect beans. If you mark these with the Spring Framework's `@Primary` annotation, Spring will use your class instead of the default classes automatically for autowiring. You can also add additional dependencies to the `my-openid-connect/pom.xml` configuration file to bring in new libraries.