You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "davidmoten (via GitHub)" <gi...@apache.org> on 2025/05/29 09:59:04 UTC

[I] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

davidmoten opened a new issue, #1336:
URL: https://github.com/apache/maven-mvnd/issues/1336

   ### Affected version
   
   1.0.2
   
   ### Bug description
   
   A multi-module project with the structure below (mine is a little more complex but I'm simplifying)
   ```
   pom.xml
   -- annotation-processor
   -- example-use (uses annotation-processor)
   ```
   The compiler plugin in `example-use/pom.xml` has this fragment inside the configuration:
   ```xml
   <annotationProcessorPaths>
       <path>
           <groupId>thegroup</groupId>
           <artifactId>annotation-processor</artifactId>
           <version>1.0-SNAPSHOT</version>
       </path>
   </annotationProcessorPaths>
   ```
   The problem is that *example-use* module can be built before *annotation-processor* when using `mvnd` (the dependency is not detected).
   


-- 
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] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #1336:
URL: https://github.com/apache/maven-mvnd/issues/1336#issuecomment-2958625750

   Yup, sorry, I mixed in mvn4 stuff:
   https://maven.apache.org/ref/4.0.0-rc-3/apidocs/org/apache/maven/api/DependencyScope.html#NONE


-- 
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] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #1336:
URL: https://github.com/apache/maven-mvnd/issues/1336#issuecomment-2958550429

   Does this work in Maven? AFAIK, plugin configurations like these, where you reference an artifact, are usable only for artifacts outside of reactor, but I may be wrong. Maven (core) has no idea about meaning/semantics of each plugin configuration, and cannot properly build the graph of project dependencies.
   
   Maybe try adding a project/dependency with scope 'none' to your POM to fix ordering?


-- 
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] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

Posted by "davidmoten (via GitHub)" <gi...@apache.org>.
davidmoten commented on issue #1336:
URL: https://github.com/apache/maven-mvnd/issues/1336#issuecomment-2960657064

   Ah that's good to know, thanks!


-- 
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] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

Posted by "davidmoten (via GitHub)" <gi...@apache.org>.
davidmoten commented on issue #1336:
URL: https://github.com/apache/maven-mvnd/issues/1336#issuecomment-2958571068

   Thanks, sounds reasonable though maven scope of `none` doesn't exist AFAIK. The closest I can find is `provided` which is not ideal but will have to do.


-- 
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] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #1336:
URL: https://github.com/apache/maven-mvnd/issues/1336#issuecomment-2958556085

   Yup, here it is:
   https://issues.apache.org/jira/browse/MCOMPILER-203?focusedCommentId=15114055&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-15114055
   
   So this is not mvnd but mvn core issue, and again, you can circumvent by declaring dep on in-reactor AP


-- 
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] annotation processor on maven compiler plugin not picked up to determine build order [maven-mvnd]

Posted by "davidmoten (via GitHub)" <gi...@apache.org>.
davidmoten closed issue #1336: annotation processor on maven compiler plugin not picked up to determine build order
URL: https://github.com/apache/maven-mvnd/issues/1336


-- 
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