| 49 | |
| 50 | = Extending another project with this |
| 51 | * You can use these dependencies |
| 52 | {{{ |
| 53 | <dependency> |
| 54 | <groupId>javax.servlet</groupId> |
| 55 | <artifactId>javax.servlet-api</artifactId> |
| 56 | <version>3.1.0</version> |
| 57 | <scope>provided</scope> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>tudelft.utilities</groupId> |
| 61 | <artifactId>accountserver</artifactId> |
| 62 | <version>1.0.0</version> |
| 63 | <classifier>classes</classifier> |
| 64 | </dependency> |
| 65 | |
| 66 | }}} |
| 67 | |
| 68 | |
| 69 | and the maven overlay in the maven war plugin: |
| 70 | {{{ |
| 71 | <plugin> |
| 72 | <groupId>org.apache.maven.plugins</groupId> |
| 73 | <artifactId>maven-war-plugin</artifactId> |
| 74 | <version>3.2.3</version> |
| 75 | <configuration> |
| 76 | <dependentWarIncludes>**</dependentWarIncludes> |
| 77 | <overlays> |
| 78 | <overlay> |
| 79 | <groupId>tudelft.utilities</groupId> |
| 80 | <artifactId>accountserver</artifactId> |
| 81 | </overlay> |
| 82 | </overlays> |
| 83 | |
| 84 | <failOnMissingWebXml>false</failOnMissingWebXml> |
| 85 | </configuration> |
| 86 | </plugin> |
| 87 | }}} |
| 88 | |
| 89 | * Set the env variable(s) properly |
| 90 | * Remember to add the Accounts servlet if you override the web.xml |