You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2011/12/09 15:50:56 UTC

svn commit: r1212456 - /archiva/trunk/README.txt

Author: olamy
Date: Fri Dec  9 14:50:55 2011
New Revision: 1212456

URL: http://svn.apache.org/viewvc?rev=1212456&view=rev
Log:
dd notes in README on how to run webapp js and test registration email

Modified:
    archiva/trunk/README.txt

Modified: archiva/trunk/README.txt
URL: http://svn.apache.org/viewvc/archiva/trunk/README.txt?rev=1212456&r1=1212455&r2=1212456&view=diff
==============================================================================
--- archiva/trunk/README.txt (original)
+++ archiva/trunk/README.txt Fri Dec  9 14:50:55 2011
@@ -15,3 +15,35 @@ and hit in your browser : http://localho
 note with dev profile admin account is automatically created with password admin123
 see file : archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/auto-admin-creation.properties
 
+Running webapp full js
+========================
+As webapp js is in dev and won't probably be released soon, the module is not activated by default and it's included only in a profile
+mvn tomcat:run -pl :archiva-webapp-js -Pjs -am -Pdev
+
+Test Registration email
+========================
+Redback can send email on registration by default the mail jndi si configured to use localhost.
+You can use your gmail accout for testing purpose
+In your ~/.m2/settings.xml add a property with a path to a tomcat context file:
+<tomcatContextXml>/Users/olamy/dev/tomcat-context-archiva-gmail.xml</tomcatContextXml>
+
+This file must contains:
+
+<Context path="/archiva">
+  <Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource"
+            username="sa"
+            password=""
+            driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
+            url="jdbc:derby:${catalina.base}/target/database/users;create=true"
+  />
+  <Resource name="mail/Session" auth="Container"
+          type="javax.mail.Session"
+          mail.smtp.host="smtp.gmail.com"
+          mail.smtp.port="465"
+          mail.smtp.auth="true"
+          mail.smtp.user="your gmail account"
+          password="your gmail password"
+          mail.smtp.starttls.enable="true"
+          mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"/>
+
+</Context>