[maven-compiler-plugin] Possibly bug: annotationProcessorPath assuming classifier=processor

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-compiler-plugin] Possibly bug: annotationProcessorPath assuming classifier=processor

Cristiano Gavião
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



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]