Directories
The binary archive for Nexus Repository contains the following two directories.
Installation Directory
$install-dir
- This directory contains the Nexus Repository application, the Java libraries, and configuration files. Throughout the documentation, this is referred to as the install-dir.
This directory is replaced during the upgrade with application service scripts being remapped to point to this folder. Configuration stored in files in this directory needs to be copied to the new installation directory during the upgrade. We recommend when possible storing configuration changes to the override files in the data directory.
OSS-LICENSE.txt | NOTICE.txt
These are files that contain legal details about the license and copyright notices
bin/
This directory contains the startup script itself as well as startup-related configuration files.
deploy/
This directory contains a placeholder.
etc/
This directory contains configuration files.
system/
This directory contains all components and plugins that constitute the application.
jdk/
The embedded JVM used by Nexus Repository.
Data Directory
$data-dir
- This directory contains everything stored and managed by Nexus Repository. This directory persists between upgrades with many files created during the operation of Nexus Repository.
The default location of the data directory is ../sonatype-work/nexus3
relative to the installation directory.
Files and directories under the data directory include:
blobs/
The parent directory of all file system-based blob stores that are not defined with an absolute storage path. For example, the default blob store will live at
../sonatype-work/nexus3/blobs/default
.cache/
This directory contains information on currently cached Karaf bundles
db/
This directory contains the H2 database which is the primary storage for your metadata. This directory is not used when using an external PostgreSQL.
elasticsearch/
This directory contains the currently configured state of Elasticsearch
etc/
This directory contains the main runtime configuration and customization.
health-check/
This directory contains cached reports from the Repository Health Check feature
keystores/
This contains the automatically generated key used to identify your repository manager
log/
This directory and sub-directories contain active and archived application log files.
Choose to delete old log files from the logs directory to reclaim the disk. 90 days of rotated logs are automatically kept.
log/nexus.log
The main repository manager application log is rotated and compressed daily. Log messages contain standard log output fields including date/time, log level, the associated thread, class, and message.
log/request.log
Inbound HTTP request log rotated and compressed daily. Log messages include information such as date/time, client IP, authenticated user id, user-agent header value, response status code, bytes sent, and total response time.
log/outbound-request.log
Outbound request log rotates daily, maintains 90 days of log files by default, and compresses old logs. The log includes information such as date/time, authenticated user id, method, URL, response status code, bytes sent, bytes received, and response time.
log/jvm.log
Contains JVM stdout, stderr, and full thread dumps when explicitly triggered. This log file is normally only relevant when thread dumps need to be extracted from it. This file is not rotated because it should not grow very large. On each application start, the entire contents of this file will be replaced.
log/karaf.log
This is the Apache Karaf container log file which contains messages specific to the repository manager startup
log/audit/audit.log
When Auditing is enabled, audit logs are written to this directory. The active log file is named audit.log. Audit logs are rotated and compressed daily.
log/tasks/
Tasks can generate logs for each execution so that one can better examine what that task did. These log files include messages that would typically be too noisy to put into the main application log. Logs are named by the task's internal name and a timestamp.
tmp/
This directory is used for temporary storage.