[ 
https://issues.apache.org/jira/browse/MNG-6877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17737280#comment-17737280
 ] 

Stanislav Spiridonov edited comment on MNG-6877 at 6/26/23 5:25 PM:
--------------------------------------------------------------------

But if I have the apt-processor as dependency and as path in 
maven-compiler-plugin the build passes with file generation.  
{code:java}
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>org.jresearch.maven.mng-6877</groupId>
                            <artifactId>apt-processor</artifactId>
                            <version>${project.version}</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.jresearch.maven.mng-6877</groupId>
                        <artifactId>apt-processor</artifactId>
                        <version>${project.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
 {code}


was (Author: foal):
But if I have the apt-processor as dependency and as path in 
maven-compiler-plugin the build passes with file generation.  

> Separate scope for annotation processing
> ----------------------------------------
>
>                 Key: MNG-6877
>                 URL: https://issues.apache.org/jira/browse/MNG-6877
>             Project: Maven
>          Issue Type: New Feature
>          Components: Dependencies
>    Affects Versions: 3.6.3
>            Reporter: Stanislav Spiridonov
>            Priority: Major
>
> Hi, I know about annotationProcessorPaths of maven-compiler-plugin and it 
> works somehow, but with some limitations
>  #  dependencyManagement does not work for path elements (need to specify 
> version). workaround use variable
>  # if I have apt-processor as a part of the project (separate module) and use 
> it only in the maven-compiler-plugin configuration it has been built in the 
> last order, that brakes build
>  #  the maven-compiler-plugin can use only INSTALLED artifacts, not from a 
> reactor
>  
> Use the processor as a usual dependency is also not a case (even with 
> provided scope)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to