Maven Cipango Plugin Configuration Guide
This plugin is based on Maven Jetty Plugin, most of the options available on jetty plugin are also available.
To run a sip application from a maven project,
- you have to add in your pom:
<build> ... <plugins> <plugin> <groupId>org.cipango</groupId> <artifactId>maven-cipango-plugin</artifactId> </plugin> </plugins> </build>
- execute the command:
mvn cipango:run
As Cipango is not available yet on public maven repositories, to use this plugin, you must download cipango sources and install it
How to configure the plugin
Container Configuration
- sipConnectors optional. List of sip connectors to use. If none are configured then UDP and TCP connectors at port 5060 and on first public address. You can override this default port number and host by using the system properties
sip.port
andsip.host
on the command line, eg:mvn -Dsip.port=9999 -Dsip.host=localhost cipango:run
. - messageLog optional. The sip messages logger to use. If none are configured, then a file message logger is created in the directory <code>target/logs</code>.
- connectors, jettyConfig, scanIntervalSeconds, systemProperties, userRealms As described in the Maven Jetty Plugin.
Webapp Configuration
- sipDefaultXml optional. A sipdefault.xml file to use instead of the default for the sipapp.
- overrideSipXml optional. A sip.xml file to be applied AFTER the webapp's sip.xml file. Useful for applying different build profiles, eg test, production etc.
- contextPath, tmpDir, overrideWebXml, webDefaultXml As described in the Maven Jetty Plugin.
<project> ... <plugins> ... <plugin> <groupId>org.cipango</groupId> <artifactId>maven-cipango-plugin</artifactId> <configuration> <scanIntervalSeconds>5</scanIntervalSeconds> <!-- Http configuration --> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>9090</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <!-- SIP configuration --> <sipConnectors> <sipConnector implementation="org.cipango.sip.UdpConnector"> <port>5060</port> </sipConnector> </sipConnectors> <messageLog implementation="org.cipango.log.MessageLog"> <filename>target/logs/yyyy_mm_dd.message.log</filename> <retainDays>90</retainDays> <append>true</append> </messageLog> </configuration> </plugin> </plugins> </project>