You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since declaring annotation processor dependencies using annotationProcessorPaths is deprecated in Maven 4, I tried to do as the deprecation warning suggested.
[WARNING] Parameter 'annotationProcessorPaths' is deprecated: Replaced by ordinary dependencies with <type> element set to proc, classpath-proc or modular-proc.
But that then led to this error when trying to fetch the dependencies:
Could not find artifact org.mapstruct:mapstruct-processor:proc:1.6.3 in central (https://repo.maven.apache.org/maven2)
I have also tried to use <type>processor</type> instead of <type>proc</type> because I saw that the Type Enum declared it as such, but that led to the same error.
The text was updated successfully, but these errors were encountered:
Hello @PinkMoustacheMan . This is actually an issue in Maven core. I just submitted apache/maven#2239 for that. If merged, it would be fixed in Maven 4 RC-4.
Meanwhile, as you already figured out, the proc in the compiler documentation should be processor. I will fix the documentation.
desruisseaux
added a commit
to Geomatys/maven-compiler-plugin
that referenced
this issue
Apr 6, 2025
Affected version
4.0.0-beta-2
Bug description
I am using Maven 4 RC-2.
Since declaring annotation processor dependencies using
annotationProcessorPaths
is deprecated in Maven 4, I tried to do as the deprecation warning suggested.So I declared the dependency as follows
But that then led to this error when trying to fetch the dependencies:
I have also tried to use
<type>processor</type>
instead of<type>proc</type>
because I saw that the Type Enum declared it as such, but that led to the same error.The text was updated successfully, but these errors were encountered: