You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "PinkMoustacheMan (via GitHub)" <gi...@apache.org> on 2025/04/05 18:27:40 UTC
[I] [Maven 4] New way of declaring annotation processors cannot find dependencies [maven-compiler-plugin]
PinkMoustacheMan opened a new issue, #323:
URL: https://github.com/apache/maven-compiler-plugin/issues/323
### 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.
```
[WARNING] Parameter 'annotationProcessorPaths' is deprecated: Replaced by ordinary dependencies with <type> element set to proc, classpath-proc or modular-proc.
```
So I declared the dependency as follows
```
<dependencies>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${version.mapstruct}</version>
<type>proc</type>
</dependency>
</dependencies>
```
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](https://github.com/apache/maven/blob/5672fbd9cf34f791cd1ff543633274cc293bce50/api/maven-api-core/src/main/java/org/apache/maven/api/Type.java#L88) Enum declared it as such, but that led to the same error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Maven 4] New way of declaring annotation processors cannot find dependencies [maven-compiler-plugin]
Posted by "desruisseaux (via GitHub)" <gi...@apache.org>.
desruisseaux commented on issue #323:
URL: https://github.com/apache/maven-compiler-plugin/issues/323#issuecomment-2781366338
Hello @PinkMoustacheMan . This is actually an issue in Maven core. I just submitted https://github.com/apache/maven/pull/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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Maven 4] New way of declaring annotation processors cannot find dependencies [maven-compiler-plugin]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas closed issue #323: [Maven 4] New way of declaring annotation processors cannot find dependencies
URL: https://github.com/apache/maven-compiler-plugin/issues/323
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Maven 4] New way of declaring annotation processors cannot find dependencies [maven-compiler-plugin]
Posted by "PinkMoustacheMan (via GitHub)" <gi...@apache.org>.
PinkMoustacheMan commented on issue #323:
URL: https://github.com/apache/maven-compiler-plugin/issues/323#issuecomment-2781474024
Wonderful, thanks for the quick response
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Maven 4] New way of declaring annotation processors cannot find dependencies [maven-compiler-plugin]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas closed issue #323: [Maven 4] New way of declaring annotation processors cannot find dependencies
URL: https://github.com/apache/maven-compiler-plugin/issues/323
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org