You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Cristiano <cv...@gmail.com> on 2019/10/10 16:20:21 UTC
[maven-compiler-plugin] Possibly bug: annotationProcessorPath
assuming classifier=processor
Hello,
I just faced a problem here using maven 3.6.1 and java11. The
compiler-plugin is assuming the classifier of a declared
annotationProcessorPath as "processor".
I've set my pom using this:
> <pluginManagement>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>${maven-compiler.version}</version>
> <configuration>
> <annotationProcessorPaths>
> <path>
> <groupId>io.dekorate</groupId>
>
> <artifactId>kubernetes-annotations</artifactId>
> <version>0.9-SNAPSHOT</version>
> </path>
> </annotationProcessorPaths>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
But I'm getting an error:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
> (default-compile) on project backend.core: Resolution of
> annotationProcessorPath dependencies failed: Missing:
> [ERROR] ----------
> [ERROR] 1) io.dekorate:kubernetes-annotations:jar:processor:0.9-SNAPSHOT
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=io.dekorate
> -DartifactId=kubernetes-annotations -Dversion=0.9-SNAPSHOT
> -Dclassifier=processor -Dpackaging=jar -Dfile=/path/to/file
Am I missing something or is it a bug?
thanks,
Cristiano