Go to file
Sebastian Luna 8d07e8fab9 BAEL-4387 Change module 2020-09-02 07:46:50 -05:00
akka-http
akka-streams
algorithms-genetic
algorithms-miscellaneous-1
algorithms-miscellaneous-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
algorithms-miscellaneous-3
algorithms-miscellaneous-4
algorithms-miscellaneous-5
algorithms-miscellaneous-6 Merge pull request #9652 from HelgaShiryaeva/top-k-elements-of-an-array 2020-07-15 10:53:51 -03:00
algorithms-searching
algorithms-sorting
algorithms-sorting-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
animal-sniffer-mvn-plugin
annotations
antlr
apache-cxf
apache-libraries Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
apache-olingo
apache-poi
apache-rocketmq
apache-shiro BAEL-4019: changed package name 2020-07-11 22:49:06 +05:30
apache-spark
apache-tapestry
apache-thrift
apache-tika
apache-velocity
asciidoctor
asm
atomikos Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
atomix
aws
aws-app-sync used properties defined in parent pom 2020-07-12 00:06:27 +05:30
aws-lambda
aws-reactive BAEL-2322: PR fix 2020-06-21 20:49:45 -03:00
axon
azure
bazel
blade
bootique
cas
cdi
checker-plugin
clojure/ring
cloud-foundry-uaa Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
code-generation
core-groovy Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
core-groovy-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
core-groovy-collections
core-java-modules BAEL-4387 Change module 2020-09-02 07:46:50 -05:00
core-kotlin-modules How to get the current index in for each Kotlin (#9710) 2020-07-21 15:54:20 +01:00
core-scala
couchbase
custom-pmd
dagger
data-structures Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
ddd BAEL-3917: Fix the integrations tests in ddd (#9708) 2020-07-16 09:15:40 +02:00
ddd-modules
deeplearning4j
disruptor
docker
dozer
drools Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
dropwizard
dubbo
eclipse
ethereum
feign
flyway-cdi-extension
geotools
google-cloud
google-web-toolkit
gradle
gradle-5 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
gradle-6
grails
graphql/graphql-java
grpc
gson
guava Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
guava-2 JAVA-2110: Moved 1 article from guava-collections to guava-2 2020-07-11 23:23:36 +05:30
guava-collections JAVA-2110: Moved 1 article from guava-collections to guava-2 2020-07-11 23:23:36 +05:30
guava-collections-map Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
guava-collections-set Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
guava-io Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
guava-modules Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
guest
guice
hazelcast
helidon
httpclient
httpclient-simple
hystrix
image-processing [BAEL-4240] Adding Text to an Image in Java (#9642) 2020-07-12 11:29:36 +01:00
immutables
intelliJ Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
jackson-modules Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
jackson-simple Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
java-blockchain
java-collections-conversions
java-collections-conversions-2 BAEL-4387 Change module 2020-09-02 07:46:50 -05:00
java-collections-maps-3
java-ee-8-security-api
java-jdi
java-lite
java-numbers
java-numbers-2
java-numbers-3 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
java-rmi
java-spi
java-vavr-stream
java-websocket
javafx
javax-servlets
javaxval
jaxb
jee-7 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
jee-7-security
jee-kotlin
jenkins
jersey
jgit
jgroups
jhipster
jhipster-5
jib
jjwt
jmeter
jmh Added Javadoc Hint 2020-07-16 10:35:04 +04:30
jni
jooby
jsf
json
json-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
json-path
jsoup
jta
jws
kaniko
kotlin-js
kotlin-libraries Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
kotlin-libraries-2
kotlin-quasar Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
lagom
language-interop
libraries
libraries-2
libraries-3 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
libraries-4 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
libraries-5
libraries-6 JAVA-2116: Split or move libraries-data-2 module (#9716) 2020-07-17 07:16:41 +05:30
libraries-apache-commons JAVA-619: Split or move core-java-modules/core-java-io-apis module 2020-07-12 08:56:13 +05:30
libraries-apache-commons-collections
libraries-apache-commons-io
libraries-concurrency Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
libraries-data JAVA-2116: Split or move libraries-data-2 module (#9716) 2020-07-17 07:16:41 +05:30
libraries-data-2 JAVA-2116: Split or move libraries-data-2 module (#9716) 2020-07-17 07:16:41 +05:30
libraries-data-db
libraries-data-io
libraries-http
libraries-http-2
libraries-io
libraries-primitive
libraries-rpc
libraries-security BAEL-4219 - How to read .pem file to get private and public key (#9676) 2020-07-12 11:03:46 -07:00
libraries-server
libraries-server-2
libraries-testing Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
linkrest
linux-bash
logging-modules Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
lombok
lombok-custom
lucene
machine-learning Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
mapstruct Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
maven-all/version-collision BAEL-3347: example of version collision in Maven (#9644) 2020-07-10 08:26:23 +01:00
maven-archetype
maven-java-11/multimodule-maven-project
maven-modules Run a Java Main Method in Maven (#9636) 2020-07-13 17:14:30 +01:00
maven-polyglot
mesos-marathon
metrics
micronaut Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
microprofile
msf4j
muleesb Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
mustache
mybatis
netflix-modules Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
netty Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
ninja
oauth2-framework-impl
open-liberty
optaplanner
orika
osgi
parent-boot-1
parent-boot-2 JAVA-38 Move all Spring Cloud Modules to Boot 2 2020-07-15 22:12:07 +02:00
parent-java Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
parent-kotlin Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
parent-spring-4
parent-spring-5 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
patterns BAEL-4135 - When are static variables initialized? (#9607) 2020-07-16 23:13:25 -07:00
pdf JAVA-2106: Move Java Convert PDF to Base64 to the pdf module 2020-07-09 18:44:46 +02:00
performance-tests used properties defined in parent pom 2020-07-12 00:06:27 +05:30
persistence-modules Merge pull request #9664 from kwoyke/JAVA-1645 2020-07-18 16:28:24 -06:00
play-framework
pmd
podman
protobuffer
quarkus
quarkus-extension
rabbitmq
raml
ratpack
reactive-systems Adding source code for article tracked under BAEL-4080. (#9552) 2020-07-14 17:55:54 +02:00
reactor-core
resteasy
restx
rsocket
rule-engines
rxjava-core
rxjava-libraries
rxjava-observables
rxjava-operators
saas
slack
software-security/sql-injection-samples
spark-java
spf4j used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-4
spring-5
spring-5-data-reactive
spring-5-mvc Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-5-reactive
spring-5-reactive-2
spring-5-reactive-client Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-5-reactive-oauth used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-5-reactive-security Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-5-security Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-5-security-cognito
spring-5-security-oauth
spring-5-webflux JAVA-1647: Get rid of the overriden spring-boot.version property 2020-07-06 19:49:49 +02:00
spring-activiti used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-akka
spring-all
spring-amqp
spring-aop Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-apache-camel
spring-batch
spring-bom
spring-boot-groovy
spring-boot-modules [JAVA-1670] Follow-up fixes (#9725) 2020-07-19 18:08:02 +05:30
spring-boot-rest
spring-caching Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-cloud Merge pull request #9712 from Maiklins/JAVA-38-move-all-spring-cloud-modules-to-boot-2 2020-07-18 20:51:17 -06:00
spring-cloud-bus
spring-cloud-cli
spring-cloud-data-flow used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-core JAVA-628: Moved 3 articles from spring-core 2020-07-15 17:24:34 +05:30
spring-core-2 JAVA-628: Moved 4 articles from spring-core-2 2020-07-15 17:25:43 +05:30
spring-core-3 JAVA-628: Moved 2 articles to spring-core-3 2020-07-15 17:27:50 +05:30
spring-core-4 BAEL-4094: Code example for Spring ApplicationContext article (#9656) 2020-07-19 09:43:14 -05:00
spring-cucumber
spring-data-rest used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-data-rest-querydsl
spring-di JAVA-628: Corrected README, moved article code to appropriate module 2020-07-15 17:30:45 +05:30
spring-di-2 JAVA-628: Moved 3 articles to spring-di-2, added README 2020-07-15 17:31:47 +05:30
spring-dispatcher-servlet Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-drools
spring-ehcache
spring-ejb BAEL-3260: Ignore the StatelessEJBIntegrationTest (#9672) 2020-07-08 08:59:51 +02:00
spring-exceptions
spring-freemarker
spring-groovy
spring-integration used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-jenkins-pipeline
spring-jersey
spring-jinq
spring-jms
spring-jooq Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-kafka
spring-katharsis
spring-ldap
spring-mobile
spring-mockito
spring-mvc-basics
spring-mvc-basics-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-basics-3
spring-mvc-basics-4
spring-mvc-crash Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-forms-jsp Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-forms-thymeleaf
spring-mvc-java Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-java-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-kotlin
spring-mvc-velocity
spring-mvc-views Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-webflow Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-mvc-xml
spring-protobuf
spring-quartz
spring-reactive-kotlin
spring-reactor
spring-remoting used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-rest-angular
spring-rest-compress
spring-rest-hal-browser
spring-rest-http Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-rest-query-language
spring-rest-shell
spring-rest-simple
spring-rest-testing [BAEL-4084] Useless line removed 2020-06-21 22:52:49 +02:00
spring-resttemplate Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-resttemplate-2 Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-roo used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-scheduling
spring-security-modules used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-session
spring-shell
spring-sleuth
spring-soap Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
spring-social-login
spring-spel
spring-state-machine
spring-static-resources
spring-swagger-codegen used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-threads
spring-thymeleaf JAVA-93 Remove Page class 2020-07-21 11:21:22 +02:00
spring-thymeleaf-2
spring-thymeleaf-3 JAVA-2107: Updated README files for article move 2020-07-14 16:09:28 +05:30
spring-vault used properties defined in parent pom 2020-07-12 00:06:27 +05:30
spring-vertx
spring-webflux-amqp
spring-websockets
static-analysis
stripe
structurizr Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
struts-2
tensorflow-java
terraform
testing-modules Merge pull request #9648 from dpgarrett/danielg/conditionally-ignoring-tests-in-junit 2020-07-16 21:09:58 -03:00
twilio
twitter4j Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
undertow
vaadin used properties defined in parent pom 2020-07-12 00:06:27 +05:30
vavr
vavr-2
vertx
vertx-and-rxjava
video-tutorials
vraptor
webrtc Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
wicket
wildfly
xml
xstream
.gitignore Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
LICENSE
README.md
baeldung-pmd-rules.xml
book
custom-pmd-0.0.1.jar
pom.xml JAVA-2160 Add modules in main pom build (#9726) 2020-07-19 18:32:17 +05:30

README.md

UPDATE: The price of "Learn Spring Security OAuth" will permanently change on the 11th of December, along with the upcoming OAuth2 material: http://bit.ly/github-lss

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 additional to Spring, the modules here are covering a number of aspects in Java.

Profile based segregation

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

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

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

Therefore, we have a total of 6 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

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

Building a single module

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

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

depending on the list where our module exists