Go to file
panos-kakos 923f895d95 [JAVA-23099] Upgraded exec-maven-plugin to latest version 2023-08-28 08:50:17 +03:00
akka-modules
algorithms-modules Java 19717 Potential issue in "Maximum Subarray Problem in Java" article (#14541) 2023-08-25 13:09:06 +03:00
annotations
antlr
apache-cxf-modules
apache-httpclient JAVA-15023: Chnages made for upgrading Apache HttpClient Connection M… (#14402) 2023-08-22 19:26:25 +03:00
apache-httpclient-2 JAVA-22600: Changes made for updating the current http client example… (#14473) 2023-08-21 23:12:59 +03:00
apache-httpclient4 JAVA-15023: Chnages made for upgrading Apache HttpClient Connection M… (#14402) 2023-08-22 19:26:25 +03:00
apache-kafka
apache-kafka-2 Update README.md 2023-08-19 08:32:53 +08:00
apache-libraries
apache-libraries-2 XSLT Processing In Java (#14507) 2023-08-16 18:38:36 +02:00
apache-olingo
apache-poi
apache-poi-2 Update README.md 2023-08-19 07:45:37 +08:00
apache-spark
apache-thrift
apache-tika
apache-velocity
asciidoctor
asm
atomikos
atomix
aws-modules Update README.md 2023-08-24 21:46:18 +08:00
axon
azure
bazel
checker-framework JAVA-20632 move checker-framework module to JDK 11 (#14203) 2023-06-09 22:59:29 +05:30
clojure-modules/clojure-ring
core-groovy-modules JAVA-22625: Changes made for formatting the pom.xml (#14327) 2023-07-25 12:04:39 +05:30
core-java-modules [JAVA-23099] Upgraded maven-compiler-plugin to latest version 2023-08-28 08:48:54 +03:00
couchbase
custom-pmd
data-structures
ddd
ddd-contexts
deeplearning4j
di-modules Update README.md 2023-08-19 07:37:08 +08:00
disruptor
docker-modules [JAVA-23095] (#14613) 2023-08-23 15:40:27 +05:30
dozer
drools
dubbo
ethereum
feign JAVA-23235 Split or move spring-cloud-openfeign module (conti-4) (moved-8) (#14450) 2023-07-22 23:35:37 +05:30
gcp-firebase JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
geotools
google-auto-project
google-cloud
gradle-modules Update README.md 2023-07-19 19:22:09 +08:00
grails
graphql-modules
grpc
guava-modules
guest JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
hazelcast
httpclient-simple Java-15020: Minor fix in HttpClientParamsLiveTest (#14284) 2023-06-23 12:36:31 +03:00
hystrix
image-compressing JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
image-processing Java 19673 01 (#14224) 2023-06-15 11:04:30 +05:30
intelliJ-modules
jackson-modules JAVA-24245: Fixing faling test case after jacson upgrade build issues (#14601) 2023-08-25 12:33:48 +03:00
jackson-simple JAVA-23379 Fixed test as per JDK 17 (#14484) 2023-07-26 15:33:04 +05:30
java-blockchain
java-jdi JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
java-nashorn JAVA-18148 Create a new java-nashorn project from the existing langua… (#14268) 2023-06-21 09:22:00 +05:30
java-native Update README.md 2023-08-02 21:47:51 +08:00
java-panama
java-rmi
java-spi
java-websocket
javafx
javax-sound
javaxval backlink updated 2023-08-26 12:59:46 +05:30
javaxval-2 Update README.md 2023-08-19 08:43:53 +08:00
jaxb Update README.md 2023-07-01 18:28:28 +08:00
jbang
jenkins-modules
jeromq Create README.md 2023-07-26 15:34:16 +08:00
jersey
jetbrains
jgit
jhipster-6 JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
jhipster-modules JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
jib
jmeter Update README.md 2023-06-15 22:06:30 +08:00
jmh [JAVA-23099] Upgraded maven-compiler-plugin to latest version 2023-08-28 08:48:54 +03:00
jsf
json-modules Create README.md 2023-08-24 22:03:25 +08:00
jsoup
jws
kaniko
ksqldb
kubernetes-modules Create README.md 2023-08-19 07:50:32 +08:00
lagom
language-interop JAVA-18148 Create a new java-nashorn project from the existing langua… (#14268) 2023-06-21 09:22:00 +05:30
libraries
libraries-2
libraries-3
libraries-4
libraries-5
libraries-6
libraries-ai
libraries-apache-commons BAEL-6403 - Extracting a Tar File in Java (#14240) 2023-06-24 10:43:02 +02:00
libraries-apache-commons-2 Update README.md 2023-07-01 17:45:15 +08:00
libraries-apache-commons-collections
libraries-apache-commons-io
libraries-concurrency
libraries-data
libraries-data-2 comment suanshu library - see JAVA-24004 2023-08-05 21:24:21 +03:00
libraries-data-db
libraries-data-io
libraries-files
libraries-http
libraries-http-2 JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
libraries-io
libraries-jdk8
libraries-primitive
libraries-rpc
libraries-security
libraries-server
libraries-server-2
libraries-testing
libraries-transform JAVA-22625: Changes made for formatting the pom.xml (#14329) 2023-06-30 16:37:25 +05:30
lightrun
linux-bash-modules backlink removed 2023-08-11 12:45:36 +05:30
logging-modules Create README.md 2023-08-09 20:31:09 +08:00
lombok-modules Generate Models Using OpenAPI With Lombok Annotations (#14600) 2023-08-21 19:15:57 +05:30
lucene
mapstruct BAEL-6572: Modified test based on review comments 2023-08-23 07:08:49 +01:00
maven-modules Create README.md 2023-08-19 08:01:43 +08:00
mesos-marathon
messaging-modules JAVA-22203 | removed unused throws 2023-08-05 16:00:34 +02:00
metrics [JAVA-22206] Upgraded micrometer dependency version (#14200) 2023-06-20 13:26:51 +03:00
microservices-modules [JAVA-23099] Upgraded exec-maven-plugin to latest version 2023-08-28 08:50:17 +03:00
muleesb JAVA-23082 Review log statements for projects - Week 16 - 2023 (moved-13) (conti-1) 2023-07-10 11:23:04 +03:00
mustache
mybatis BAEL-6674 Added code for mybatis sqlscript (#14487) 2023-07-27 11:53:29 +02:00
netflix-modules [JAVA-22213] Upgraded mantis-runtime version (#14246) 2023-06-27 11:35:06 +03:00
nginx-forward-proxy
optaplanner
orika
osgi
pants Create README.md 2023-08-19 07:40:29 +08:00
parent-boot-1
parent-boot-2
parent-boot-3 JAVA-23441 fix small typo 2023-08-16 18:05:37 +02:00
parent-java
parent-spring-4
parent-spring-5 JAVA-22153 Upgraded parent-spring* versions 2023-06-21 11:35:12 +05:30
parent-spring-6 JAVA-22153 Upgraded parent-spring* versions 2023-06-21 11:35:12 +05:30
patterns-modules Update README.md 2023-07-01 18:45:22 +08:00
pdf How to convert docx into pdf with Java? (#14273) 2023-06-23 19:38:20 +05:30
pdf-2
performance-tests
persistence-modules [JAVA-23099] Upgraded maven-compiler-plugin to latest version 2023-08-28 08:48:54 +03:00
pmd
podman
protobuffer
quarkus-modules [JAVA-23099] Upgraded maven-compiler-plugin to latest version 2023-08-28 08:48:54 +03:00
reactive-systems
reactor-core
rsocket
rule-engines-modules
rxjava-modules
saas-modules
security-modules JAVA-18523 Upgrade cas module and related articles (#14504) 2023-08-02 11:00:48 +05:30
server-modules
spf4j
spring-4
spring-5
spring-5-webflux
spring-5-webflux-2
spring-activiti
spring-actuator
spring-aop
spring-aop-2 [JAVA-22621] Clean up (#14433) 2023-07-19 17:43:21 +05:30
spring-batch [JAVA-22621] Clean up (#14433) 2023-07-19 17:43:21 +05:30
spring-batch-2
spring-boot-modules [JAVA-23099] Upgraded maven-compiler-plugin to latest version 2023-08-28 08:48:54 +03:00
spring-boot-rest
spring-cloud-modules Merge pull request #14624 from timis1/JAVA-24160 2023-08-20 23:33:04 +02:00
spring-core
spring-core-2
spring-core-3
spring-core-4 Update README.md 2023-08-02 21:22:56 +08:00
spring-credhub
spring-cucumber
spring-di
spring-di-2
spring-di-3
spring-di-4
spring-drools
spring-ejb-modules java-18762: remove unused wildfly modules (#14632) 2023-08-26 18:57:21 +05:30
spring-exceptions
spring-integration JAVA-24160 Review log statements for projects - Week 33 - 2023 2023-08-21 00:04:10 +03:00
spring-jenkins-pipeline JAVA-23082 Review log statements for projects - Week 16 - 2023 (moved-13) (conti-1) 2023-07-10 11:23:04 +03:00
spring-jersey
spring-jinq
spring-kafka
spring-kafka-2 Update README.md 2023-08-09 20:53:09 +08:00
spring-katharsis
spring-mobile
spring-native JAVA-24009 | changed maven repo address for spring-native dependencies 2023-08-10 10:59:27 +02:00
spring-protobuf
spring-pulsar Create README.md 2023-08-09 20:00:07 +08:00
spring-quartz
spring-reactive-modules Update README.md 2023-08-02 21:27:38 +08:00
spring-remoting-modules
spring-roo
spring-scheduling
spring-security-modules backlink updated 2023-08-11 12:33:16 +05:30
spring-shell
spring-soap JAVA-20617 Migrated spring-soap to JDK 17 (#14413) 2023-08-22 13:43:03 +03:00
spring-spel
spring-state-machine
spring-static-resources
spring-swagger-codegen JAVA-21458 Upgrade custom-validations-opeanpi-codegen to use SpringDoc in place of SpringFox (#14302) 2023-06-25 18:06:27 +05:30
spring-threads
spring-vault
spring-web-modules JAVA-21093 add endpoints to the readme file of the thymeleaf module 2023-08-12 21:10:44 +02:00
spring-websockets
static-analysis
tablesaw
tensorflow-java
terraform-modules
testing-modules Create README.md 2023-08-02 21:16:59 +08:00
vaadin
vavr-modules
vertx-modules
video-tutorials
web-modules Merge pull request #14656 from manfred106/BAEL-6848-jsp-set-param 2023-08-26 23:01:08 +01:00
webrtc
xml
xml-2 JAVA-23094: changes made for updating jackson dependency 2023-08-09 09:10:50 +05:30
xstream
.gitignore BAEL-6827 - Update an Existing Amazon S3 Object using Java (#14585) 2023-08-17 22:38:05 +02:00
LICENSE
README.md
baeldung-pmd-rules.xml
custom-pmd-0.0.1.jar
logback-config.xml
pom.xml [JAVA-23099] Upgraded exec-maven-plugin to latest version 2023-08-28 08:50:17 +03:00

README.md

The Courses

Here's the new "Learn Spring" course:
>> LEARN SPRING - THE MASTER CLASS

Here's the Master Class of "REST With Spring" (along with the new announced Boot 2 material):
>> THE REST WITH SPRING - MASTER CLASS

And here's the Master Class of "Learn Spring Security":
>> LEARN SPRING SECURITY - MASTER CLASS

Java and Spring Tutorials

This project is a collection of small and focused tutorials - each covering a single and well defined area of development in the Java ecosystem. A strong focus of these is, of course, the Spring Framework - Spring, Spring Boot and Spring Security. In addition to Spring, the modules here cover a number of aspects of Java.

Profile based segregation

We are using maven build profiles to segregate the huge list of individual projects we have in our repository.

As for now, vast majority of the modules require JDK8 to build and run correctly.

The projects are broadly divided into 3 lists: first, second and heavy.

Next, they are segregated further on the basis of the tests that we want to execute.

Additionally, there are 2 profiles dedicated for JDK9 and above builds - which require JDK 17.

We also have a parents profile to build only parent modules.

Therefore, we have a total of 9 profiles:

Profile Includes Type of test enabled
default-first First set of projects *UnitTest
integration-lite-first First set of projects *IntegrationTest
default-second Second set of projects *UnitTest
integration-lite-second Second set of projects *IntegrationTest
default-heavy Heavy/long running projects *UnitTest
integration-heavy Heavy/long running projects *IntegrationTest
default-jdk9-and-above JDK9 and above projects *UnitTest
integration-jdk9-and-above JDK9 and above projects *IntegrationTest
parents Set of parent modules None

Building the project

Though it should not be needed often to build the entire repository at once because we are usually concerned with a specific module.

But if we want to, we can invoke the below command from the root of the repository if we want to build the entire repository with only Unit Tests enabled:

mvn clean install -Pdefault-first,default-second,default-heavy

or if we want to build the entire repository with Integration Tests enabled, we can do:

mvn clean install -Pintegration-lite-first,integration-lite-second,integration-heavy

Analogously, for the JDK9 and above projects the commands are:

mvn clean install -Pdefault-jdk9-and-above

and

mvn clean install -Pintegration-jdk9-and-above

Building a single module

To build a specific module, run the command: mvn clean install in the module directory.

It can happen that your module is part of a parent module e.g. parent-boot-1,parent-spring-5 etc, then you will need to build the parent module first so that you can build your module. We have created a parents profile that you can use to build just the parent modules, just run the profile as: mvn clean install -Pparents

Building modules from the root of the repository

To build specific modules from the root of the repository, run the command: mvn clean install --pl asm,atomikos -Pdefault-first in the root directory.

Here asm and atomikos are the modules that we want to build and default-first is the maven profile in which these modules are present.

Running a Spring Boot module

To run a Spring Boot module, run the command: mvn spring-boot:run in the module directory.

Working with the IDE

This repo contains a large number of modules. When you're working with an individual module, there's no need to import all of them (or build all of them) - you can simply import that particular module in either Eclipse or IntelliJ.

Running Tests

The command mvn clean install from within a module will run the unit tests in that module. For Spring modules this will also run the SpringContextTest if present.

To run the integration tests, use the command:

mvn clean install -Pintegration-lite-first or

mvn clean install -Pintegration-lite-second or

mvn clean install -Pintegration-heavy or

mvn clean install -Pintegration-jdk9-and-above

depending on the list where our module exists