Skip to content

This project is used in several talks for showcasing the new reactor goodies Maven 4 has

Notifications You must be signed in to change notification settings

MartinKanters/maven4-reactor-demo

Repository files navigation

ECO Search

Project's purpose

This project is a sample multi-module Maven project which is used to showcase the improvements that have been done in the reactor of Maven.
Maarten Mulders and I will show this project during the talk "Making Maven Marvellous" which we have shown at several conferences and meetups.

The use-case in this example is that you are a developer working on the "app" submodule and do not want to waste time building other parts of the system.

Try it yourself

Resolving "inter module" dependencies

When using Maven 3.6.3 the following invocations will fail because dependencies on modules in the same multi module project cannot be resolved:

  • Let's first build all dependencies to prove it builds.
    Notice the slow tests in the "scraper" module, which is not required to be built for building "app"
    mvn test
  • Prevent running the scraper module by trying:
    • mvn test --resume-from :app
    • mvn test --projects :app
    • mvn test --file app/pom.xml
    • cd app && mvn test
      Starting from Maven 4 this is resolved.

Try it out yourself

There are several options for trying it out Maven 4:

Related JIRA issues:

About

This project is used in several talks for showcasing the new reactor goodies Maven 4 has

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages