Package Details: nexus

Git Clone URL: (read-only, click to copy)
Package Base: nexus
Description: Nexus 2 Repository Manager (OSS)
Upstream URL:
Keywords: artifact repository
Licenses: GPL3
Conflicts: nexus-oss, nexus2, nexus3
Provides: nexus, nexus2
Submitter: triplem
Maintainer: pa314159
Last Packager: pa314159
Votes: 24
Popularity: 0.000000
First Submitted: 2009-11-17 23:13 (UTC)
Last Updated: 2020-09-22 12:02 (UTC)

Dependencies (1)

Required by (0)

Sources (5)

Pinned Comments

pa314159 commented on 2020-09-22 10:37 (UTC)

Changed the layout to match Arch locations.

After upgrading to 2.14.18, you need to move all the content of /opt/sonatype-work/nexus to /var/log/nexus and /var/lib/nexus

 mv /opt/sonatype-work/nexus/logs/* /var/log/nexus
 rm -rf /opt/sonatype-work/nexus/logs
 mv /opt/sonatype-work/nexus/* /var/lib/nexus

Latest Comments

pa314159 commented on 2020-09-22 10:37 (UTC)

Changed the layout to match Arch locations.

After upgrading to 2.14.18, you need to move all the content of /opt/sonatype-work/nexus to /var/log/nexus and /var/lib/nexus

 mv /opt/sonatype-work/nexus/logs/* /var/log/nexus
 rm -rf /opt/sonatype-work/nexus/logs
 mv /opt/sonatype-work/nexus/* /var/lib/nexus

ardevd commented on 2020-02-10 10:42 (UTC)

quick fix here:

ardevd commented on 2020-02-10 09:29 (UTC)

Getting the following error when trying to build

install: cannot stat '/home/user/tmp/nexus/src/nexus-*.txt': No such file or directory ==> ERROR: A failure occurred in package().

psyriccio commented on 2016-11-05 20:28 (UTC)

Please update or disown package! ----------------------------------------------------------------------------------- solution, if anyone cant wait -> % base64 ./nexus-PKGBUILD-2.12.1_to_2.14.1.patch NWM1CjwgcGtndmVyPTIuMTIuMQotLS0KPiBwa2d2ZXI9Mi4xNC4xCjMwYzMwCjwgbWQ1c3Vtcz0o JzNjOGFkZDIzMDZiN2ZhY2Y2OWM1NWRlYjM5NGFhYjdiJwotLS0KPiBtZDVzdW1zPSgnNTg5ZDA3 OTRlZWExNDUwMGNkOGJkM2ZlZmExZGJlN2InCg== ---------------------------------------------------------------------------------- -> % yaourt -G nexus ==> Download nexus sources x .SRCINFO x PKGBUILD x nexus x nexus.install x nexus.service -> % cp ./nexus-PKGBUILD-2.12.1_to_2.14.1.patch ./nexus/ 1 files ( 4.0 KiB) copied in 0.0 seconds ( 0.0 KiB/s). -> % cd ./nexus -> % cat ./nexus-PKGBUILD-2.12.1_to_2.14.1.patch 5c5 < pkgver=2.12.1 --- > pkgver=2.14.1 30c30 < md5sums=('3c8add2306b7facf69c55deb394aab7b' --- > md5sums=('589d0794eea14500cd8bd3fefa1dbe7b' -> % patch ./PKGBUILD ./nexus-PKGBUILD-2.12.1_to_2.14.1.patch patching file ./PKGBUILD -> % makepkg --printsrcinfo > ./.SRCINFO -> % makepkg --clean ==> Making package: nexus 2.14.1-1 (Sat Nov 5 20:21:50 UTC 2016) ... ==> Finished making: nexus 2.14.1-1 (Sat Nov 5 20:22:45 UTC 2016) ==> Cleaning up... -> % ls -lsaH total 142788 ... 71376 -rw-r--r-- 1 psyriccio wheel 73085783 Nov 5 20:21 nexus-2.14.1-01-bundle.tar.gz 68032 -rw-r--r-- 1 psyriccio wheel 69664728 Nov 5 20:22 nexus-2.14.1-1-x86_64.pkg.tar.xz ...

bouquetf commented on 2014-10-06 14:06 (UTC)

Hi, it seems the download link is now broken. I succeeded using instead of

yaya_2013 commented on 2014-09-12 13:25 (UTC)

updated to 2.9.1 working folder moved to /opt/sonataype-work

walterjwhite commented on 2013-04-23 23:46 (UTC)

I can no longer download that version of nexus. In order to download old releases, use this format:${pkgversion}-bundle.tar.gz Walter

yaya_2013 commented on 2013-04-09 11:58 (UTC)

nexus2 merged with nexus so it will remove nexus2 before update this package please backup /var/lib/nexus and after update restore it.

Xyne commented on 2013-03-29 19:01 (UTC)

You can find a cleaner version (better organization, proper quoting, package function) of the old nexus2 PKGBUILD here: Please use it to update the package. The additional nexus executable and file should be hosted elsewhere as well. I have left them in the package for now.

Xyne commented on 2013-03-29 18:32 (UTC)

Merging into nexus...

lahwaacz commented on 2013-03-28 20:57 (UTC)

Packaging note - why is there still package 'nexus'? IMO 'nexus2' should be merged into it, it's the newer version, right? No need to keep the old package...

Nowaker commented on 2013-03-04 10:32 (UTC)

1 - Thanks! 2 - Sorry, I didn't see nexus2.install file. I thought "Sources" section on this page will include it as well. :)

yaya_2013 commented on 2013-03-03 18:36 (UTC)

@Nowaker 1- systemd files added. 2- I don't have any problem. chown for /opt/nexus and /var/lib/nexus are set in post_update and post_install to nexus user.

Nowaker commented on 2013-02-26 09:32 (UTC)

Thanks for updating Nexus to 2.3.x branch. However, there are still some things to be fixed. 1. systemd files are still not included in the PKGBUILD. Now that Arch Linux switched to systemd, it is encouraged to provide unit files. 2. Install script should auto-create nexus user if it doesn't exist, and set the chown for /opt/nexus and /var/lib/nexus. (I recall it was here in the previous version?) systemd unit file will use this user to run Nexus as. Here's the systemd unit file:

Nowaker commented on 2012-12-03 00:32 (UTC)

rm -r /var/lib/nexus in post_remove() - was it really intended?

japgolly commented on 2012-11-05 11:08 (UTC)

Just realised that although a /var/lib/nexus directory exists, it's not being written to. Repository data is being written to /opt/nexus/var/lib/nexus instead.

japgolly commented on 2012-11-01 02:31 (UTC)

Hi! This is a systemd unit file for Nexus. Would be great if this could be added to this package. ===================================== /usr/lib/systemd/system/nexus.service ===================================== [Unit] Description=Nexus OSS Artifact Repository [Service] Type=forking EnvironmentFile=-/etc/conf.d/nexus ExecStart=/opt/nexus/bin/nexus start ExecStop=/opt/nexus/bin/nexus stop ExecReload=/opt/nexus/bin/nexus restart PIDFile=/opt/nexus/run/ [Install]

slopjong commented on 2012-09-12 16:49 (UTC)

If you're wondering why you get a Not Found error on accessing your nexus server, append /nexus to your URL (

slopjong commented on 2012-09-12 16:19 (UTC)

Sonatype changed the download location. Edit the source from${pkgver}-bundle.tar.gz to${pkgver}-bundle.tar.gz Otherwise you download some html which is far from what you want.

yaya_2013 commented on 2012-08-14 11:11 (UTC)

-->2.1.1 if you update your nexus from 2.0.X change # The main class that JSW will execute within JVM in /opt/nexus/bin/jsw/conf/wrapper.conf

yaya_2013 commented on 2012-02-26 06:13 (UTC)

nexus2 please read comments before install it

yaya_2013 commented on 2012-02-26 06:12 (UTC)

To update from 1.9.x to 2 1- Please backup /var/lib/nexus/ if you update from 1.9.x 2- Remove nexus and then install nexus2 package 3- edit /opt/nexus/bin/jsw/conf/wrapper.conf and change to point to your \bin\java ( if you use Oracle JDK)

yaya_2013 commented on 2011-08-25 17:42 (UTC)

It doesn't work with jdk7 Also you can run it with jdk6 ( in repo ) or separate jdk

commented on 2011-08-24 22:14 (UTC) out?; At least the package build is failing...

tinhtruong commented on 2011-05-26 08:44 (UTC)

@yaya_2013: After changing to '' (it's located in the file /opt/nexus/conf/wrapper.conf), it works! Many thanks!

yaya_2013 commented on 2011-05-26 05:15 (UTC)

@tinhtruong Please cahnge to ( If sun/oracle JDK have been install) and tell me if it works after that

tinhtruong commented on 2011-05-26 03:09 (UTC)

I can start nexus manually using the command '/etc/rc.d/nexus start', but when I add nexus into my rc.conf DAEMONS, it does not start at the system boot. Does anyone experience this issue?

yaya_2013 commented on 2011-04-21 13:45 (UTC)

Updated to 1.9.1

yaya_2013 commented on 2011-03-11 11:12 (UTC)

Updated to Change log

yaya_2013 commented on 2011-02-24 21:43 (UTC)

updated to 1.9 To 1.9 Release from Sonatype has changed how the lucene indexes are stored on disk, it is required that users reindex all repositories in their nexus server to start benefitting from the changes (and for search to work properly).

commented on 2010-12-14 18:45 (UTC)

I got the AJP connectors working with the following: 1. Copied jetty-ajp-6.1.19.jar (taken from a default jetty download) to /opt/nexus/runtime/apps/nexus/lib/jetty-ajp-6.1.19.jar 2. Followed the instructions at: The missing piece was the necessary jetty-ajp-6.1.19.jar file, which isn't included in the install archive.

commented on 2010-12-14 00:48 (UTC)

Has anybody been able to get the AJP connection to Apache working? Adding the AJP connector, as described at gives the following error in the logs: FATAL | jvm 1 | 2010/12/13 17:45:02 | Unable to start the Container: Guice creation errors: 1) Error initializing: class org.sonatype.plexus.jetty.DefaultServletContainer while locating org.sonatype.plexus.jetty.DefaultServletContainer at ClassRealm[plexus.core, parent: null] while locating org.sonatype.plexus.jetty.ServletContainer

yaya_2013 commented on 2010-10-23 11:15 (UTC)

updated for nexus 1.8.0

commented on 2010-06-27 11:09 (UTC)

PKGBUILD for 1.7.0