Revision: 1b516937e468
Author:   jean.deruelle <[email protected]>
Date:     Tue May  1 08:14:58 2012
Log:      Edited wiki page SipAppArchetype through web user interface.
http://code.google.com/p/sipservlets/source/detail?r=1b516937e468&repo=wiki

Modified:
 /SipAppArchetype.wiki

=======================================
--- /SipAppArchetype.wiki       Tue May  1 04:34:08 2012
+++ /SipAppArchetype.wiki       Tue May  1 08:14:58 2012
@@ -1,53 +1,11 @@
#summary Usage of Sip Servlets Application Maven Archetype to build my first SIP Servlets application
-
-= Pre Requisites =
-
-Since the maven sipapp archetype has been recently released, it is not yet synched to the Maven Central Repository, so the oss.sonatype.org maven repository has to be added to the maven global configuration to be able to fetch the archetype. This is achieved by adding the following profile to your M2_HOME/conf/settings.xml
-
-{{{
-<profile>
-  <id>maven-archectype-sipapp</id>
-  <repositories>
-    <repository>
-      <id>mobicents-public-repository-group</id>
-      <name>Mobicens Public Maven Repository Group</name>
-      <url>https://oss.sonatype.org/content/groups/public</url>
-      <layout>default</layout>
-      <releases>
-        <enabled>true</enabled>
-        <updatePolicy>never</updatePolicy>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-        <updatePolicy>never</updatePolicy>
-      </snapshots>
-    </repository>
-  </repositories>
-  <pluginRepositories>
-    <pluginRepository>
-      <id>mobicents-public-repository-group</id>
-      <name>Mobicens Public Maven Repository Group</name>
-      <url>https://oss.sonatype.org/content/groups/public</url>
-      <layout>default</layout>
-      <releases>
-        <enabled>true</enabled>
-        <updatePolicy>never</updatePolicy>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-        <updatePolicy>never</updatePolicy>
-      </snapshots>
-    </pluginRepository>
-  </pluginRepositories>
-</profile>
-}}}

 = Creating the Hello SIP World Project =

 To create your SIP Servlets application

 {{{
-mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-sipapp -DarchetypeGroupId=org.mobicents.servlet.sip.archetypes -DarchetypeArtifactId=maven-archetype-sipapp -DarchetypeVersion=1.1 -P maven-archectype-sipapp +mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-sipapp -DarchetypeGroupId=org.mobicents.servlet.sip.archetypes -DarchetypeArtifactId=maven-archetype-sipapp -DarchetypeVersion=1.1
 }}}

 this should give a similar output to the one below
@@ -65,11 +23,11 @@
 [INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
 [INFO] Generating project in Interactive mode
-[INFO] Archetype [org.mobicents.servlet.sip.archetypes:maven-archetype-sipapp:1.1] found in catalog local -Downloading: https://oss.sonatype.org/content/groups/public/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.jar -Downloaded: https://oss.sonatype.org/content/groups/public/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.jar (5 KB at 3.4 KB/sec) -Downloading: https://oss.sonatype.org/content/groups/public/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.pom -Downloaded: https://oss.sonatype.org/content/groups/public/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.pom (8 KB at 24.0 KB/sec) +[INFO] Archetype repository missing. Using the one from [org.mobicents.servlet.sip.archetypes:maven-archetype-sipapp:1.1] found in catalog local +Downloading: http://repo.maven.apache.org/maven2/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.jar +Downloaded: http://repo.maven.apache.org/maven2/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.jar (5 KB at 9.1 KB/sec) +Downloading: http://repo.maven.apache.org/maven2/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.pom +Downloaded: http://repo.maven.apache.org/maven2/org/mobicents/servlet/sip/archetypes/maven-archetype-sipapp/1.1/maven-archetype-sipapp-1.1.pom (8 KB at 16.1 KB/sec)
 [INFO] Using property: groupId = com.mycompany.app
 [INFO] Using property: artifactId = my-sipapp
 Define value for property 'version':  1.0-SNAPSHOT: :
@@ -96,9 +54,9 @@
[INFO] ------------------------------------------------------------------------
 [INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
-[INFO] Total time: 7.957s
-[INFO] Finished at: Tue May 01 12:00:30 CEST 2012
-[INFO] Final Memory: 9M/115M
+[INFO] Total time: 12.290s
+[INFO] Finished at: Tue May 01 17:09:58 CEST 2012
+[INFO] Final Memory: 8M/91M
[INFO] ------------------------------------------------------------------------
 }}}

@@ -213,3 +171,51 @@
You can now start the container and make a call using your favorite SIP Client

_Please note the call will probably be terminated right away since this example doesn't handle the Media Part and usually SIP Clients terminate the call if the media path can't be established_
+
+
+= TroubleShooting =
+
+In case a new version of the maven sipapp archetype has been recently released and is not yet synched to the Maven Central Repository, the oss.sonatype.org maven repository has to be added to the maven global configuration to be able to fetch the archetype. This is achieved by adding the following profile to your M2_HOME/conf/settings.xml
+
+{{{
+<profile>
+  <id>maven-archectype-sipapp</id>
+  <repositories>
+    <repository>
+      <id>mobicents-public-repository-group</id>
+      <name>Mobicens Public Maven Repository Group</name>
+      <url>https://oss.sonatype.org/content/groups/public</url>
+      <layout>default</layout>
+      <releases>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </snapshots>
+    </repository>
+  </repositories>
+  <pluginRepositories>
+    <pluginRepository>
+      <id>mobicents-public-repository-group</id>
+      <name>Mobicens Public Maven Repository Group</name>
+      <url>https://oss.sonatype.org/content/groups/public</url>
+      <layout>default</layout>
+      <releases>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </snapshots>
+    </pluginRepository>
+  </pluginRepositories>
+</profile>
+}}}
+
+and the profile should be added mentioned above to create the application
+{{{
+mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-sipapp -DarchetypeGroupId=org.mobicents.servlet.sip.archetypes -DarchetypeArtifactId=maven-archetype-sipapp -DarchetypeVersion=1.1 -P maven-archectype-sipapp
+}}}

Reply via email to