You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/19 12:37:00 UTC

[jira] [Updated] (MCOMPILER-263) basedir system property is wrong when executing annotation processor in non-forked mode

     [ https://issues.apache.org/jira/browse/MCOMPILER-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold updated MCOMPILER-263:
--------------------------------------------
    Priority: Minor  (was: Major)

> basedir system property is wrong when executing annotation processor in non-forked mode
> ---------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-263
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-263
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.5.1
>         Environment: Ubuntu Wily desktop, amd64, oracle java 8 1.8.0_74, maven 3.3.9
>            Reporter: Mark
>            Priority: Minor
>
> You can replay the problem by checking out
> git clone https://github.com/jjYBdx4IL/example-maven-project-setups
> and running
> mvn clean install -f example-maven-project-setups/compile-time-annotation-processing
> to verify it's okay.
> Then switch fork mode to false in example-maven-project-setups/compile-time-annotation-processing/pom.xml
> and re-run the command and watch it failing.
> At the bottom of
> example-maven-project-setups/compile-time-annotation-processing/src/main/java/com/github/jjYBdx4IL/maven/examples/annotations/AnnotationProcessor.java
> you can see that I'm using the basedir sys prop to determine where to write code to. There is now a target dir right where you executed the command, so it seems basedir is set to user.dir when running the non-forked compiler/annotation processing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)