How to install Apache Archiva in Ubuntu
Written on
November 27, 2009 at 8:04 am by
mkyong
The Apache Archiva is a powerful repository manager, here is a simple guide to install the Archiva in Ubuntu.
Steps of install Apache Archiva in Ubuntu
1) Visit Apache Archiva official website
2) Download Archiva library
Click more download, click on the tar version e.g apache-archiva-1.2.2-bin.tag.gz. Choose the standalone version, Jetty is build-in with web container.
3) Extract it with tar command
mkyong$ tar -xvzf apache-archiva-1.2.2-bin.tar.gz
More detail about tar command
4) Start it – “./archiva start”
Locale the archiva command under bin folder
mkyong@mkyong-desktop:~/Desktop/apache-archiva-1.2.2/bin$ ./archiva Usage: ./archiva { console | start | stop | restart | status | dump } mkyong@mkyong-desktop:~/Desktop/apache-archiva-1.2.2/bin$ ./archiva start Starting Apache Archiva...
5) Done
Access http://localhost:8080/archiva
Post Installation
Please change the Apache Archiva default 8080 port to avoid port conflict issue.
1) Edit the {achiva_folder}/conf/jetty.xml
vim {achiva_folder}/conf/jetty.xml
2) Find the following line
<!-- Use this connector for many frequently idle connections and for threadless continuations. --> <Call name="addConnector"> <Arg> <New class="org.mortbay.jetty.nio.SelectChannelConnector"> <Set name="host"><SystemProperty name="jetty.host"/></Set> <Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set> <Set name="maxIdleTime">30000</Set> <Set name="Acceptors">2</Set> <Set name="statsOn">false</Set> <Set name="confidentialPort">8443</Set> <Set name="lowResourcesConnections">5000</Set> <Set name="lowResourcesMaxIdleTime">5000</Set> </New> </Arg> </Call>
3) Change the jetty port to something else
4) Restart Archiva, done.
mkyong@mkyong-desktop:~/Desktop/apache-archiva-1.2.2/bin$ ./archiva restart Stopping Apache Archiva... Stopped Apache Archiva. Starting Apache Archiva...

