You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Oliver Gierke (JIRA)" <ji...@apache.org> on 2017/04/04 08:51:41 UTC

[jira] [Commented] (MCOMPILER-271) APT generated classes not visible during test compilation

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

Oliver Gierke commented on MCOMPILER-271:
-----------------------------------------

I don't think it is. It's absolutely weird that all of a sudden there's now a magic path that is not included into compilation where it actually was before. Even more ironic, it's the default path that you'd use. As a user you don't get any kind of hint what could've gone wrong. Maven is blatantly claiming the types aren't available. Which leaves you with nothing but googling until you find this.

> APT generated classes not visible during test compilation
> ---------------------------------------------------------
>
>                 Key: MCOMPILER-271
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-271
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.5.1
>            Reporter: Oliver Gierke
>            Assignee: Andreas Gudian
>         Attachments: compiler-plugin-bug.zip
>
>
> After upgrading the Maven Compiler Plugin to 3.5.1, I see compilation errors with builds that work on 3.5. The symptom is that classes generated by an APT plugin are not visible on the test class path when {{target/generated-sources/annotations}} is used as output folder.
> I'll attach a sample project that shows the failure if you run {{mvn clean test-compile}}.
> Two things make the project work:
> 1. Downgrade to 3.5 (which makes me think any of the fixes made for MCOMPILER-240 has to do with this).
> 2. Change {{annotations}} segment  of the output path to something other than {{annotations}}.
> Especially the latter puzzles me as it seems like this path is explicitly not added to the test compile classpath.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)