How to install Apache Archiva in Windows

Apache Archiva is a powerful repository manager, and usually hook up with Maven development.

Apache Archiva installation

1. Download Apache Archiva

Visit Apache Archiva official website, Click on the download link, e.g Archiva 1.2.2.

P.S Choose the standalone version (Archiva will use jetty as build-in web container)

2. Extract it

Extract the downloaded zip file to folder “D:\apache-archiva-1.2.2\”

3. Install as Windows srvice

Find the archiva.bat “{Archiva_Home}\bin” folder, and issue the “archiva install” command to register it as a Windows service.

D:\apache-archiva-1.2.2\bin>archiva install
wrapper  | Apache Archiva installed.

4. Start Archive

Two ways to start the Apache Archive :

1. Start it with Archiva command – “archiva start”.

D:\apache-archiva-1.2.2\bin>archiva start
wrapper  | Starting the Apache Archiva service...
wrapper  | Apache Archiva started.

2. Start it as Windows service under control panel.

4. Archive web admin

Access your Apache Archiva web admin via 8080 post – http://localhost:8080/archiva/.

P.S Apache Archiva standalone version is using jetty as build-in web container and 8080 as default port.

5. Done

Post Installation

Please change the Apache Archiva default 8080 port to avoid port conflict issue, as you know, the 8080 is a very hot port number.

1. Archiva configuration file

Locate the Apache Archiva web container configuration file – “D:\apache-archiva-1.2.2\conf\jetty.xml

2. Update port number

Find the following pattern

<Call name="addConnector">
       <New class="org.mortbay.jetty.nio.SelectChannelConnector">
         <Set name="host"><SystemProperty name=""/></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>

Change the jetty port to other port – “8888”.

 <Set name="port"><SystemProperty name="jetty.port" default="8888"/></Set>

3. Restart Apache Archiva

Restart it to take effect. Now you can access the Apache Archive web admin via http://localhost:8888/archiva/.

About the Author

author image
Founder of, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.


7 Comment threads
1 Thread replies
Most reacted comment
Hottest comment thread
6 Comment authors
cdallosbIbanSAGUN MANDISanketNorman Valencia Recent comment authors
newest oldest most voted

Hi, i have followed the processes and installed the archiva . But after starting when i am trying to access archiva it showing me Error 404. Could you please tell me how to fix this problem?


Hi, change url and access with this: http://localhost:8080/

How to integrate between Apache Archiva and Maven | Maven

[…] Install Apache Archiva in Windows […]

Apache Archiva Tutorials | Tutorials

[…] Install Apache Archiva in Windows A guide to install the Apache Archiva in Windows. […]


Hi, I´m learning how to use apache archiva in my work, and I just want to congratulate you for this apportation to the community who lives in the IT world.

Best Regards from México!!

Norman Valencia
Norman Valencia



Hi I am setting up archiva and getting below error while creating admin user

Problem accessing /archiva/security/register.action. Reason:

Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is: Connection refused: connect
Caused by:

org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is: Connection refused: connect
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(
at org.springframework.mail.javamail.JavaMailSenderImpl.send(
at org.springframework.mail.javamail.JavaMailSenderImpl.send(
at org.codehaus.redback.integration.mail.MailerImpl.sendMessage(
at org.codehaus.redback.integration.mail.MailerImpl.sendAccountValidationEmail(
at org.codehaus.plexus.redback.struts2.action.RegisterAction.register(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(


For those who get the error: “Problem accessing /archiva 404” and you want to use the url http://localhost:8888/archiva/
You have to change in the file “yourPathcontextsarchiva.xml” this line:
For this:

If not, simply go to http://localhost:8888/