...
Code Block | ||
---|---|---|
| ||
<profiles> <profile> <!-- This profile bundles a mock National Connector interface --> <id>national-connector-mock-impl</id> <dependencies> <dependency> <groupId>eu.epsos.protocolterminators.ws.server</groupId> <artifactId>epsos-ws-server-mock-impl</artifactId> <version>0.1.0</version> <scope>runtime</scope> </dependency> </dependencies> </profile> <profile> <!-- This profile bundles the country-specifig National Connector interface --> <id>national-connector-impl</id> <dependencies> <dependency> <groupId>${national-connector-interface.groupid}</groupId> <artifactId>${national-connector-interface.artifactid}</artifactId> <version>${national-connector-interface.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> </profiles> |
The first profile (activated by default) bundles the mock implementations into the war file. The second profile will bundle bundles a National implementation. If no profile is specified then no implementation will be bundled into the jarat all. In this case, the jar must be deployed to the tomcat/lib directory.
For the National build to work it is necessary to configure the build environment with The National profile needs some properties. These properties are defined in the local configuration filesbuild environment:
Per User
- Defined in the Maven-settings (%USER_HOME%/.m2/settings.xml).
...