Building Archiva

To build the very latest code available...

  1. Check out the source code as described on the Source Repository page.
  2. In the 'parent' directory, execute mvn clean install to build the parent pom.
  3. In the 'archiva' directory, execute mvn clean install to build the Archiva modules and distribution.

After the build completes, you can find the Archiva distribution in archiva-jetty/target/archiva-jetty-js/target and the Archiva webapp in archiva-modules/archiva-web/archiva-webapp/target/archiva-modules/archiva-web/archiva-webapp-js/target.

Usually, it's that simple. :) Occasionally, Archiva may depend on a snapshot of another project such as Redback, and you may need to build that first, or configure a snapshot repository. If you're having trouble building Archiva, ask on the Development mailing list and we'll point you in the right direction.

Documentation

The version-specific documentation for the latest version of Archiva can be found in archiva/archiva-docs, and the top-level Archiva website --including the page you're reading now -- is in the site directory.

To work on the documentation, execute mvn site:run in one of these directories, and then visit http://localhost:8080 to view pages as you edit them. When you're done, submit a patch in the issue tracker.

svn

You use checkout all trunks.

svn co https://svn.apache.org/repos/asf/archiva/all archiva-all

git clone

You can use git svn clone. See Apache Documentation.

git clone git://github.com/apache/archiva.git; cd archiva ; sh ./init-git-svn.sh
or trough https
git clone https://github.com/apache/archiva.git; cd archiva ; sh ./init-git-svn.sh

Running Javascript webapp with tomcat-maven-plugin

You can use tomcat-maven-plugin to run the webapp without installing the war in a container. With maven3 in the top directory :

mvn tomcat7:run -pl :archiva-webapp-js -am 
or
mvn tomcat6:run -pl :archiva-webapp-js -am
or
sh ./t7.sh

Hit your browser : http://localhost:9091/archiva/index.html