Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Update this value and redeploy site when new versions of NXRM are released. -->
<version-number-latest-nexus-repo-release-number>3.15.2-01</version-number-latest-nexus-repo-release-number>
<version_number_latest_nexus_repo_release_number>3.15.2-01</version_number_latest_nexus_repo_release_number>
</properties>

<build>
Expand Down Expand Up @@ -111,7 +111,7 @@
<artifactId>maven-site-plugin</artifactId>
<!-- maven-site-plugin is still borked, unless new doxia dependency is explicitly defined. -->
<!-- latest version of maven-site-plugin causes deploy issues. -->
<version>3.7.1</version>
<version>3.21.0</version>
<configuration>
<!-- we use maven-scm-publish-plugin to deploy, so skip this. -->
<skipDeploy>true</skipDeploy>
Expand Down Expand Up @@ -142,7 +142,7 @@
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-core</artifactId>
<version>1.8</version>
<version>2.0.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/site/markdown/nexussetup.md.vm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Nexus Setup

-------------------------------------------------

Started Sonatype Nexus OSS ${version-number-latest-nexus-repo-release-number}
Started Sonatype Nexus OSS ${version_number_latest_nexus_repo_release_number}

-------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/site/markdown/obsolete/nexusdaemonsetup.md.vm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Nexus Deamon Setup
# Description: Enable nexus as a system service provided by daemon.
### END INIT INFO
]]#
NEXUS_HOME="/home/pi/nexus/nexus-${version-number-latest-nexus-repo-release-number}"
NEXUS_HOME="/home/pi/nexus/nexus-${version_number_latest_nexus_repo_release_number}"
NEXUS_USER="pi"

. /lib/lsb/init-functions
Expand Down
12 changes: 6 additions & 6 deletions src/site/markdown/obsolete/nexussetup.md.vm
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Nexus Setup

then:

my-pc$ scp ~/Downloads/nexus-${version-number-latest-nexus-repo-release-number}-unix.tar.gz pi@the-Pi-IP-address:/home/pi/nexus/
my-pc$ scp ~/Downloads/nexus-${version_number_latest_nexus_repo_release_number}-unix.tar.gz pi@the-Pi-IP-address:/home/pi/nexus/

4. Unzip/untar the Nexus bundle:

pi@raspberrypi:~ $ cd nexus
pi@raspberrypi:~/nexus $ tar -zxvf nexus-${version-number-latest-nexus-repo-release-number}-unix.tar.gz
pi@raspberrypi:~/nexus $ tar -zxvf nexus-${version_number_latest_nexus_repo_release_number}-unix.tar.gz

5. If you try to launch Nexus now, you will likely see an error like the one below:

Expand All @@ -38,14 +38,14 @@ Nexus Setup
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 419430400 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/pi/nexus/nexus-${version-number-latest-nexus-repo-release-number}/hs_err_pid1755.log
# /home/pi/nexus/nexus-${version_number_latest_nexus_repo_release_number}/hs_err_pid1755.log

A Pi currently only has 1GB of RAM, so you need to configure Nexus to use less RAM than
normal, and allocate more to direct memory for use by the
[database](https://support.sonatype.com/hc/en-us/articles/115007093447-Optimizing-OrientDB-Database-Memory-).
Move into the nexus bin dir, and edit the `nexusvm.options` file:

pi@raspberrypi:~/nexus/nexus-${version-number-latest-nexus-repo-release-number}/bin $ vi nexus.vmoptions
pi@raspberrypi:~/nexus/nexus-${version_number_latest_nexus_repo_release_number}/bin $ vi nexus.vmoptions

Change:

Expand All @@ -63,7 +63,7 @@ Nexus Setup

To see the log output on the console, use this command:

pi@raspberrypi:~/nexus/nexus-${version-number-latest-nexus-repo-release-number}/bin $ ./nexus run
pi@raspberrypi:~/nexus/nexus-${version_number_latest_nexus_repo_release_number}/bin $ ./nexus run

Startup can take a while. The command above will print messages to the console while Nexus is
starting. You could also 'tail' the nexus log file to watch startup progress using a command like this:
Expand All @@ -74,7 +74,7 @@ Nexus Setup

-------------------------------------------------

Started Sonatype Nexus OSS ${version-number-latest-nexus-repo-release-number}
Started Sonatype Nexus OSS ${version_number_latest_nexus_repo_release_number}

-------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/site/resources/scripts/nexusd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Description: Enable nexus to run as a system service provided by daemon.
### END INIT INFO

NEXUS_HOME="/home/pi/nexus/nexus-${version-number-latest-nexus-repo-release-number}"
NEXUS_HOME="/home/pi/nexus/nexus-${version_number_latest_nexus_repo_release_number}"
NEXUS_USER="pi"

. /lib/lsb/init-functions
Expand Down
Loading