[MCOMPILER-562] Add property maven.compiler.outputDirectory to CompilerMojo by jGauravGupta · Pull Request #213 · apache/maven-compiler-plugin (original) (raw)

Currently, the CompilerMojo relies on the outputDirectory parameter without allowing external configuration (e.g via commandline). This limits the flexibility of the plugin in certain build environments.

Proposed Solution:

The source code for the CompilerMojo has been modified to introduce a new property, maven.compiler.outputDirectory, which can be configured externally. This change will enable users to specify a custom output directory for the compiler, offering greater flexibility and customization in different build scenarios while retaining backward compatibility with the existing outputDirectory parameter.