This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
from 1bac6a9 chore: drop junit3 references (#985)
new f3c1f26 Add documentation about how the tests were ported from Maven
Compiler Plugin 3 to 4.
new 4997313 Uniformize the plugin version to "@project.version@" instead
of "@pom.version@".
new 8dd8f36 Use the `org.apache.maven.plugins.compiler.it` groupId
consistently in all integration tests.
new 3efa684 Fix: annotation processor not always detected when specified
with `<type>processor</type>`. Replace some relatively verbose "is null or
empty" checks by `isAbsent(…)` methods.
new c3fc26a Catch the case where the compilation fails because of a
`NoClassDefFoundError`. It may happen when an annotation processor is present
but has a dependency which is missing.
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/it/CHANGES_v3_to_v4.md | 74 ++++++++++++
src/it/MCOMPILER-157/annotation-processor/pom.xml | 2 +-
src/it/MCOMPILER-157/annotation-user/pom.xml | 4 +-
src/it/MCOMPILER-157/pom.xml | 2 +-
src/it/MCOMPILER-192/pom.xml | 7 +-
src/it/MCOMPILER-192/verify.groovy | 2 +-
.../annotation-processor/pom.xml | 2 +-
.../annotation-user/pom.xml | 4 +-
src/it/MCOMPILER-203-processorpath/pom.xml | 2 +-
src/it/MCOMPILER-205/pom.xml | 7 +-
src/it/MCOMPILER-224/annotation-processor/pom.xml | 2 +-
src/it/MCOMPILER-224/annotation-user/pom.xml | 6 +-
src/it/MCOMPILER-224/pom.xml | 2 +-
src/it/MCOMPILER-228/pom.xml | 2 +-
.../services/javax.annotation.processing.Processor | 4 +-
.../services/javax.annotation.processing.Processor | 4 +-
src/it/MCOMPILER-346/pom.xml | 3 +-
src/it/MCOMPILER-373_mrjar/pom.xml | 2 +-
.../app/pom.xml | 4 +-
.../MCOMPILER-481-requires-static-included/pom.xml | 3 +-
.../service/pom.xml | 2 +-
src/it/MCOMPILER-485/pom.xml | 7 +-
src/it/MCOMPILER-495/pom.xml | 6 +-
src/it/MCOMPILER-500-package-info-incr/pom.xml | 5 +-
src/it/MCOMPILER-512/pom.xml | 5 +-
src/it/MCOMPILER-525/pom.xml | 3 +-
src/it/MCOMPILER-567-kt/pom.xml | 3 +-
src/it/MCOMPILER-567/pom.xml | 3 +-
src/it/MCOMPILER-609/pom.xml | 3 +-
src/it/default-fork-windows/pom.xml | 4 +-
src/it/default-fork/pom.xml | 2 +-
src/it/default-fork_modular/pom.xml | 2 +-
src/it/default-incremental-disable/pom.xml | 2 +-
src/it/default/pom.xml | 2 +-
src/it/modular-sources/pom.xml | 3 +-
src/it/module-info-patch/pom.xml | 3 +-
src/it/multirelease-on-classpath/pom.xml | 3 +-
.../multimodule/multirelease-base/pom.xml | 2 +-
.../multimodule/multirelease-nine/pom.xml | 4 +-
.../multimodule/multirelease/pom.xml | 2 +-
.../multirelease/src/assembly/mrjar.xml | 4 +-
src/it/multirelease-patterns/multimodule/pom.xml | 2 +-
.../multiproject/multirelease-base/pom.xml | 6 +-
.../multiproject/multirelease-nine/pom.xml | 4 +-
src/it/multirelease-patterns/multiproject/pom.xml | 2 +-
.../singleproject-modular/pom.xml | 2 +-
.../singleproject-root/pom.xml | 3 +-
.../singleproject-runtime/pom.xml | 2 +-
.../singleproject-separate-moduleinfo/pom.xml | 2 +-
.../singleproject-toolchains/pom.xml | 2 +-
src/it/multirelease-with-modules/pom.xml | 3 +-
.../annotation-processor-dep}/pom.xml | 10 +-
.../dependency/AnnotationProcessorDependency.java} | 5 +-
.../annotation-processor}/pom.xml | 13 +--
.../java/processor}/SimpleAnnotationProcessor.java | 46 ++++----
.../javax.annotation.processing.Processor} | 2 +-
.../annotation-user}/pom.xml | 31 ++---
.../src/main/java/user}/SimpleAnnotation.java | 2 +-
.../src/main/java/user}/SimpleObject.java | 2 +-
.../src/test/java/user}/SimpleTestObject.java | 2 +-
.../invoker.properties | 0
.../{jpms_add-exports => processor-type}/pom.xml | 22 ++--
src/it/test1/pom.xml | 2 +-
.../plugin/compiler/AbstractCompilerMojo.java | 125 ++++++++++++---------
.../apache/maven/plugin/compiler/CompilerMojo.java | 2 +-
.../maven/plugin/compiler/DiagnosticLogger.java | 2 +-
.../maven/plugin/compiler/TestCompilerMojo.java | 3 +-
.../apache/maven/plugin/compiler/ToolExecutor.java | 5 +-
68 files changed, 299 insertions(+), 211 deletions(-)
create mode 100644 src/it/CHANGES_v3_to_v4.md
copy src/it/{MCOMPILER-294/lib =>
processor-type/annotation-processor-dep}/pom.xml (79%)
copy src/it/{MCOMPILER-268_modulepath/src/main/java/module-info.java =>
processor-type/annotation-processor-dep/src/main/java/dependency/AnnotationProcessorDependency.java}
(89%)
copy src/it/{MCOMPILER-360/main360 =>
processor-type/annotation-processor}/pom.xml (79%)
copy src/it/{MCOMPILER-157/annotation-processor/src/main/java/org/issue =>
processor-type/annotation-processor/src/main/java/processor}/SimpleAnnotationProcessor.java
(56%)
copy src/it/{MCOMPILER-157/invoker.properties =>
processor-type/annotation-processor/src/main/resources/META-INF/services/javax.annotation.processing.Processor}
(95%)
copy src/it/{MCOMPILER-391-processorpath-dep-mgmt/annotation-user3 =>
processor-type/annotation-user}/pom.xml (63%)
copy
src/it/{MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue =>
processor-type/annotation-user/src/main/java/user}/SimpleAnnotation.java (98%)
copy src/it/{MCOMPILER-157/annotation-user/src/main/java/org/issue =>
processor-type/annotation-user/src/main/java/user}/SimpleObject.java (97%)
copy src/it/{MCOMPILER-157/annotation-user/src/test/java/org/issue =>
processor-type/annotation-user/src/test/java/user}/SimpleTestObject.java (97%)
copy src/it/{MCOMPILER-157 => processor-type}/invoker.properties (100%)
copy src/it/{jpms_add-exports => processor-type}/pom.xml (74%)