Best of Maven2024

  1. 1
    Article
    Avatar of awsplainenglishAWS in Plain English·2y

    Setting Up a CI/CD Pipeline Using AWS and Jenkins: Beginner’s Guide

    Learn how to set up a CI/CD pipeline using AWS and Jenkins with Maven. The pipeline consists of a CI instance, CD instance, and S3 bucket. Jenkins is connected to GitHub via webhooks for triggering builds. Maven is used for building automation. The built package is deployed to an S3 bucket and continuously monitored by the CD instance for deployment to the production environment. The deployment status is displayed using CD EC2 CLI.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Build Multi-Module Projects in Spring Boot for Scalable Microservices

    The post provides a detailed guide on building a multi-module project in Spring Boot, emphasizing modularity, scalability, and manageability. Key topics include setting up modules, configuring inter-module communication using REST APIs and message brokers like Kafka, implementing JWT-based security, and deploying with Docker. It also covers common pitfalls and solutions, testing strategies, and best practices for maintaining and scaling a multi-module architecture.

  3. 3
    Article
    Avatar of baeldungBaeldung·2y

    Why the Order of Maven Dependencies Is Important

    Maven is a build and dependency management tool widely used in the Java ecosystem. Proper configuration of Maven dependencies is crucial to avoid compile-time and runtime issues. The post discusses key concepts such as POM, direct and transitive dependencies, and dependency mediation. It also explores practical examples, common errors, and tools like the Maven Dependency Plugin, Maven Enforcer Plugin, and Maven Help Plugin to manage and resolve dependency issues effectively.

  4. 4
    Article
    Avatar of baeldungBaeldung·2y

    Introduction to TeaVM

    TeaVM translates Java bytecode to JavaScript, enabling Java applications to run in browsers. It's useful for single-page applications and adding Java features to existing websites. TeaVM supports Java bytecode up to JDK 21, and basic setup requires Maven. It offers interaction with the DOM, and Java methods can be called from JavaScript. Experimental WebAssembly support and Java-to-C transpilation are also available.

  5. 5
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Perform Load Testing in Spring Boot with Gatling

    Learn how to perform load testing in a Spring Boot application using Gatling. The guide covers integrating Gatling into a Maven-based project to run various types of performance tests like load, stress, soak, and spike testing. Detailed instructions are provided for setting up dependencies, implementing a sample load test, and analyzing the test results using Gatling's reporting features.

  6. 6
    Article
    Avatar of baeldungBaeldung·1y

    How to Read an External Properties File in Maven

    Learn how to effectively read and integrate external properties files into a Maven build using the properties Maven plugin. The guide covers building a simple Maven project, configuring the maven-resources-plugin to filter properties, and dynamically loading properties files via the Maven command line for flexible build processes.

  7. 7
    Article
    Avatar of java_libhuntAwesome Java Newsletter·2y

    Five ways to speed up your Maven builds

    Learn five strategies to significantly speed up Apache Maven build times, including the use of profiles, concurrent testing, parallel builds, skipping unnecessary steps, and leveraging build caching. By applying these techniques to a representative project, build time was reduced from 1.5 minutes to 7.5 seconds, freeing up developers to focus more on coding.

  8. 8
    Article
    Avatar of towardsdevTowards Dev·2y

    Building Scalable Microservices with gRPC, Spring Boot, and Maven

    Learn how to build scalable microservices with gRPC, Spring Boot, and Maven. Understand the concepts of gRPC, Protocol Buffers, and the different types of service methods in gRPC. Explore the project structure and scaffolding, and see practical implementations in the modules of the project.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    What's Your Go-To Java Framework

    Explore different Java frameworks such as Java 21, Quarkus, Spring Boot, Maven, JUnit 5, and Testcontainers.

  10. 10
    Article
    Avatar of vaadinVaadin·2y

    How to publish Java libraries to Maven Central using your GitHub account

    The guide outlines the steps to publish Java libraries to Maven Central using a verified GitHub namespace. It covers securing your namespace, setting up PGP for artifact signing, adding necessary metadata to your library, configuring Maven to generate Javadocs, source jars, and handling automated releases. Practical tips for easing the process and ensuring smooth deployment are provided, with focused advice for both local and CI-based setups.

  11. 11
    Article
    Avatar of hnHacker News·2y

    Python

    The post provides a guide on integrating and running Python scripts within a Java project using GraalVM. It includes Maven dependencies and a plugin configuration for managing Python packages.

  12. 12
    Article
    Avatar of socketdevSocket·2y

    Introducing Java Support in Socket

    Socket now supports the Java programming language, providing powerful security features to protect Java applications from supply chain attacks. This includes support for managing dependencies through Maven and Gradle, offering robust scanning performance and proactive monitoring. Socket's deep package inspection helps detect and block potential threats, and it is already trusted by several major organizations. With easy installation and organization-wide visibility, Socket aims to make open-source software safer for enterprise developers.

  13. 13
    Article
    Avatar of earthlyEarthly·2y

    Building a Monorepo with Java

    Learn how to build a monorepo in Java using Apache Maven, Gradle, or Bazel. Create a Maven archetype for your monorepo and optimize your builds with Earthly.

  14. 14
    Article
    Avatar of baeldungBaeldung·2y

    Solving “java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver”

    Spring offers various modules for persistence using different Java technologies. The exception java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver occurs when the JDBC driver's class isn't found during runtime. This can be fixed by adding the MySQL Connector/J to the classpath. The post provides a guide on solving this issue using JUnit 5 and Maven.

  15. 15
    Article
    Avatar of baeldungBaeldung·2y

    Intro to SpotBugs

    SpotBugs is an open-source static analysis tool designed to identify bugs in Java code by analyzing bytecode. It detects over 400 bug patterns, categorized by aspects such as type and severity. The post explains how to set up and use SpotBugs with Maven, generate and view reports, and fix detected bugs. It also covers how to integrate SpotBugs with IntelliJ IDEA and Eclipse, including installation, configuration, and browsing reports.

  16. 16
    Article
    Avatar of microservicesioMicroservices.io·2y

    How do you structure your traditional (non-modular) monolith applications?

    This post explores different ways to structure traditional monolith applications, including using singular Maven/Gradle projects, Maven/Gradle multi-module projects with one module per layer, and Maven/Gradle multi-module projects with domain and feature modules.