Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungPlanning a DEX Product Without Starting With Smart Contracts(21.09.2026 um 15:26 Uhr)
Malware / Trojaner / VirenInside BambooToken’s Linux implant: shell and file control over MQTT(21.09.2026 um 12:37 Uhr)
Linux Tipps & HardeningVoid Linux (base) as a server distro?(21.09.2026 um 14:13 Uhr)
IT Security VideoBlack Hat Stories | Ryan & Isabella Barnett(21.09.2026 um 15:30 Uhr)
IT Security NachrichtenSuccess of Trump-Xi summit lies in what happens afterwards(21.09.2026 um 14:30 Uhr)
Sichere ProgrammierungPlanning a DEX Product Without Starting With Smart Contracts(21.09.2026 um 15:26 Uhr)
Malware / Trojaner / VirenInside BambooToken’s Linux implant: shell and file control over MQTT(21.09.2026 um 12:37 Uhr)
Linux Tipps & HardeningVoid Linux (base) as a server distro?(21.09.2026 um 14:13 Uhr)
IT Security VideoBlack Hat Stories | Ryan & Isabella Barnett(21.09.2026 um 15:30 Uhr)
IT Security NachrichtenSuccess of Trump-Xi summit lies in what happens afterwards(21.09.2026 um 14:30 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

How to Store and Manage Build Artifacts Using Nexus Repository Manager

In modern software development, building an application is only part of the journey — managing and storing the build artifacts is just as important. As teams adopt CI/CD practices, they need a reliable way to store, version, and distribute …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

In modern software development, building an application is only part of the journey — managing and storing the build artifacts is just as important. As teams adopt CI/CD practices, they need a reliable way to store, version, and distribute packages such as JAR files, Docker images, or npm modules. This is where Nexus Repository Manager comes in. In this step-by-step guide, we will explore how to publish build artifacts to Nexus, understand why artifact repositories are critical in DevOps workflows, and see how they improve reliability, security, and efficiency in a CI/CD pipeline.





  • Install a run Nexus on a cloud server: In this walk through guide we are going to create a droplet on digitalocean, create and upload your public SSH key, configure the droplet firewall




After creating the cloud server we ssh into the cloud server as a root user with ssh root@<server public ip> which connects you securely






  • Since we are going to use maven2 built artifacts, we install java 17 on the cloud server with sudo apt update and sudo apt install openjdk-17-jre-headless, then confirm java has been succesfully installed with java -version as seen below






  • Download and Install Nexus



Navigate to /opt: ensures you download and extract files in the right system directory for software



cd /opt



Download Nexus archive:



wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.79.0-09.tar.gz which Downloads the Nexus Repository Manager tarball from Sonatype's official URL to the current directory



List and extract:



ls -lh

tar -xvzf nexus-unix-x86-64-3.79.0-09.tar.gz






  • Create a nexus user with sudo privileges (if not already
    present) for security best practices with sudo adduser nexus

  • Change ownership of Nexus directory with chown -R nexus:nexus
    nexus-3.79.0-09/
    which ensures the Nexus app can access and
    modify its installation files when running as "nexus"


    • Change ownership of Nexus data directory with chown -R
      nexus:nexus sonatype-work/
      which ensures the Nexus app can
      access and
      modify its installation files when running as "nexus"










Create a hosted maven snapshots repository in the nexus UI, with the respective user having a role with the necessary privileges to publish artifacts to the repository









Once this is done then we configure our maven project to publish build artifacts to the nexus hosted repo we created above with the right credentials;




  • Add the maven-deploy-plugin configuration the pom.xml file of the java maven project







Configure Credentials in settings.xml file with vim ~/.m2/settings.xml to ensures Maven can authenticate to the Nexus repository during deploy phase and <id> must match the one specified in the POM’s distributionManagement





Now its time to build and deploy the jar file to our nexus repository by simple doing mvn package and then mvn deploy to publish the packaged jar file to nexus repository





You can then check in the nexus UI under the Browser section





Lastly we can make use of the nexus rest api to interact with repository and download artifacts from our remote server ie



Execute curl -u {user}:{password} -X GET 'http://{nexus-ip}:8081/service/rest/v1/components?repository={repo-name}&sort=version' on the DigitalOcean droplet.



Execute wget followed by the result of the previous command , followed by java -jar java-app-1.0.jar & to start the application the background



Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Store and Manage Build Artifacts Using Nexus Repository Manager

Thematisch verwandte Begriffe: Store, Manage, Build, Artifacts · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94142 | A security vulnerability has been detected in BioStar Temperature Monito…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick