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 2.4KB

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