Archiva In Linux(1)
ArchivaInLinux(1)
1.installtheapachearchivaonlinux
>wgethttp://mirror.bjtu.edu.cn/apache//archiva/binaries/apache-archiva-1.3.5-bin.tar.gz
unpackthefile
>tarzxvfapache-archiva-1.3.5-bin.tar.gz
wecanrunthesoftwarewithconsole
>cd../tools/apache-archiva-1.3.5
>./bin/archivaconsole
visitthepageofURL
http://localhost:8080/archiva
createanadministratorinthepage.
TherepositoryURLsare
http://localhost:8080/archiva/browse
http://localhost:8080/archiva/repository/internal/
arepositoryforcontainingreleasedartifacts.Thisisconnectedbyproxytothecentralrepository,sorequestsherewillautomatically
retrievetheremoteartifacts.
http://localhost:8080/archiva/repository/snapshots/
arepositoryforstoringdeployedsnapshots.Thisisnotproxiedtoanyremoterepositoriesbydefault.
Ifyourequesttheartifact,oncethisartifactisdownloaded,Archivaautomacticallyindexesit,youcansearchthatartifactnow.
2.Searching
BeforeartifactscanbesearchedinArchiva,theyneedtobeindexedfirst.Artifactsareindexedduringtheseinstances:
whenarepositoryisscanned
whenanartifactisdeployedoruploadedintherepository
whenanartifactisproxiedordownloaededfromaremoterepository
3.TheCommandoftheServer
bin/archiva{console|start|stop|restart|status|dump}
>bin/archiva
references:
http://archiva.apache.org/
http://archiva.apache.org/download.html