You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Apache Archiva
  2. ==============
  3. To get involved in Archiva development, contact dev@archiva.apache.org.
  4. NOTE: you will need a MAVEN_OPTS with some memory setup as sample :
  5. export MAVEN_OPTS="-Xmx768m -Xms768m -XX:MaxPermSize=256m"
  6. Running from Source Code
  7. ========================
  8. 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
  9. mvn jetty:run -pl :archiva-webapp -am (to save fingers :-) use sh ./jetty.sh ) (debug with sh ./jetty-debug.sh debug port 8000)
  10. hit your browser: http://localhost:9091/archiva/index.html
  11. Test Registration email
  12. ========================
  13. Redback can send email on registration by default the mail jndi si configured to use localhost.
  14. You can use your gmail accout for testing purpose
  15. In your ~/.m2/settings.xml add a property with a path to a tomcat context file:
  16. ```
  17. <tomcatContextXml>/Users/olamy/dev/tomcat-context-archiva-gmail.xml</tomcatContextXml>
  18. ```
  19. This file must contains:
  20. ```
  21. <Context path="/archiva">
  22. <Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource"
  23. username="sa"
  24. password=""
  25. driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
  26. url="jdbc:derby:${catalina.base}/target/database/users;create=true"
  27. />
  28. <Resource name="mail/Session" auth="Container"
  29. type="javax.mail.Session"
  30. mail.smtp.host="smtp.gmail.com"
  31. mail.smtp.port="465"
  32. mail.smtp.auth="true"
  33. mail.smtp.user="your gmail account"
  34. password="your gmail password"
  35. mail.smtp.starttls.enable="true"
  36. mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"/>
  37. </Context>
  38. ```
  39. Using with cassandra as metadata storage
  40. ========================
  41. You can run the application using cassandra as storage.
  42. sh ./jetty.sh -Pcassandra
  43. Default cassandra host is localhost and port 9160
  44. You can override using:
  45. * -Dcassandra.host=
  46. * -Dcassandra.port=