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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Apache Archiva
  2. ==============
  3. To get involved in Archiva development, contact dev@archiva.apache.org.
  4. Running from Source Code
  5. ========================
  6. With maven 3 and the tomcat-maven-plugin, you will be able to run the webapp from the top
  7. and include all the other modules in the webapp classloader.
  8. No more need to install everything to run the jetty plugin.
  9. So just use : mvn tomcat6:run -Ptomcat -pl :archiva-webapp -am or mvn tomcat7:run -Ptomcat -pl :archiva-webapp -am
  10. and hit in your browser : http://localhost:9091/archiva
  11. note with dev profile admin account is automatically created with password admin123
  12. see file : archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/auto-admin-creation.properties
  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 webapp full js
  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 tomcat7:run -pl :archiva-webapp-js -am (to save fingers :-) use sh ./t7.sh )
  19. or
  20. mvn tomcat6:run -pl :archiva-webapp-js -am
  21. hit your browser: http://localhost:9091/archiva/index.html
  22. Test Registration email
  23. ========================
  24. Redback can send email on registration by default the mail jndi si configured to use localhost.
  25. You can use your gmail accout for testing purpose
  26. In your ~/.m2/settings.xml add a property with a path to a tomcat context file:
  27. <tomcatContextXml>/Users/olamy/dev/tomcat-context-archiva-gmail.xml</tomcatContextXml>
  28. This file must contains:
  29. <Context path="/archiva">
  30. <Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource"
  31. username="sa"
  32. password=""
  33. driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
  34. url="jdbc:derby:${catalina.base}/target/database/users;create=true"
  35. />
  36. <Resource name="mail/Session" auth="Container"
  37. type="javax.mail.Session"
  38. mail.smtp.host="smtp.gmail.com"
  39. mail.smtp.port="465"
  40. mail.smtp.auth="true"
  41. mail.smtp.user="your gmail account"
  42. password="your gmail password"
  43. mail.smtp.starttls.enable="true"
  44. mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"/>
  45. </Context>
  46. jrebel
  47. generate files: mvn org.zeroturnaround:jrebel-maven-plugin:1.1.3:generate -Pjs