Fading Coder

One Final Commit for the Last Sprint

Building Distinct Executable JARs for Multiple Java Main Classes

When a single codebase contains multiple standalone applications, each with its own entry point, the build process must generate separate executable artifacts. Consider a project containing both a command-line utility and a network service. Define the entry points in separate packages to maintain cl...

Resolving Maven Source Download Failures in IntelliJ IDEA with Multiple Repository Mirrors

Root Cause Analysis The Sources not found for: <artifact-id> warning in IntelliJ IDEA typically triggers when the primary Maven mirror lacks the corresponding -sources.jar archive. Single-repository configurations frequently fail to host niche, legacy, or region-specific dependencies. Implemen...

SSM Framework Integration Without Errors

Creating a Maven Project Start by creating a standard Maven Java project. Update pom.xml with the following dependencies: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...

Deploying and Using Nexus as a Private Maven Mirror Repository

1. Deploy Nexus with Docker # Search for official Nexus 3 image docker search sonatype/nexus3 # Pull the latest Nexus OSS image docker pull sonatype/nexus3 # Create persistent storage directory mkdir -p /opt/sonatype-nexus/data chmod 777 -R /opt/sonatype-nexus/data # Start Nexus container docker run...

Resolving Jar Hell in Java and Scala Projects: Dependency Clashes and Effective Mitigation

Common Failure Indicators Unexpected runtime behaviour in distributed processing frameworks like Apache Flink or Hadoop often stems from misaligned library versions packed inside the application jar. Typical symptoms fall into two categories. Explicit Errors The JVM throws linkage or reflection erro...

Packaging Spring Boot Applications

Packaging as JAR Pay attention to two key points: you must either comment out <skip>true</skip> or change its value to false. Otherwise, you will encounter a "no main manifest attribute" error upon startup. Additionally, update the <mainClass> tag with the fully qualified...

Essential Development Tools for Java Projects

Maven A Maven project includes a pom.xml file in its root directory, which defines the project's build lifecycle. This file specifies project coordinates, dependencies, project metadata, and plugin configurations. Maven serves three primary functions: Project Build: Offers a standardized, cross-plat...

Comprehensive Guide to TestNG for Java Automation Testing

TestNG Setup and Basic Usage To begin using TestNG in a Java project, configure your environment with Maven. Add the following dependency to your pom.xml file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo...

Configuring a Maven Private Repository with Nexus

Installation and Initialization Download the Nexus OSS bundle (version 2.14.2-01) from Sonatype. # Create system user sudo useradd nexus_user sudo passwd nexus_user # Switch to new user su - nexus_user # Prepare directories and extract mkdir -p /opt/nexus_repo cd /opt/nexus_repo tar xvzf nexus-2.14....

Publishing Local JARs to a Private Nexus Repository

To push a local Java archive to an internal Nexus server, the Maven deploy plugin is required. Begin by defining the repository details with in the project's pom.xml under the distributionManagement node: <project> <distributionManagement> <repository> <id>enterprise-releases...