maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillip Webb (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MCOMPILER-271) APT generated classes not visible during test compilation
Date Wed, 13 Jul 2016 18:28:20 GMT

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

Phillip Webb edited comment on MCOMPILER-271 at 7/13/16 6:27 PM:
-----------------------------------------------------------------

This issue is unfortunately quite important for Spring Boot users and as a result we're going
use Maven Compiler 3.5.0 in the Spring Boot 1.4 parent POM. I'd love to be able to upgrade
to 3.5.2 when it's available so please let us know if there's anything we can do to help fix
this issue.


was (Author: pwebb):
This issue is unfortunately quite important for Spring Boot users and as a result we're going
use Maven Compiler 1.5.0 in the Spring Boot 1.4 parent POM. I'd love to be able to upgrade
to 3.5.2 when it's available so please let us know if there's anything we can do to help fix
this issue.

> 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
>         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.4#6332)

Mime
View raw message