TestPluginReactor
blueprinter-maven-plugin:print goal generates a blueprinter directory containg .html and puml files.
blueprinter-maven-plugin module contains:
- the sources of the plugin itself
- unit tests
- integration tests (under src/it folder) fired by invoker plugin, that verifies correctness of generated html/puml files
blueprinter-test module is configured to use the blueprinter-maven-plugin to generate html/puml files
On first issue of
mvn clean install
- .m2 repository does not contain the plugin
- maven reactor build, install, and execute integration tests of the blueprinter-maven-plugin module
- maven reactor build and install blueprinter-test module, using the blueprinter-maven-plugin just installed to create the TestPluginReactor/blueprinter
On subsequent issues of
mvn clean install
- .m2 repository contain the previous build of the plugin
- maven reactor build, install, and execute integration tests of the blueprinter-maven-plugin module
- maven reactor build and install blueprinter-test module, using the newly created blueprinter-maven-plugin just installed to create the TestPluginReactor/blueprinter
To verify that, look at
TestPluginReactor/blueprinter/index.html title tag should contain "index".
Then, modify HTMLWriter.getBodyElement titleElement.textContent
val titleElement = toReturn.createElement("title")
titleElement.textContent = "modified content"
and issue again
mvn clean install
Now,
TestPluginReactor/blueprinter/index.html title tag should contain "modified content".