maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Gudian (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MCOMPILER-226) Annotation Precompiler causes javac compiler not to compile
Date Fri, 05 Feb 2016 18:05:39 GMT

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

Andreas Gudian commented on MCOMPILER-226:
------------------------------------------

I don't understand the problem. Is this still an issue for you, [~mgainty]? If so, please
add some more information about what you try to do and how it doesn't work.

> Annotation Precompiler causes javac compiler not to compile
> -----------------------------------------------------------
>
>                 Key: MCOMPILER-226
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-226
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>         Environment: mvn 3.0.5
> JDK 1.7
> test-bed sisu-inject (loaded with annotations!)
>            Reporter: Martin Gainty
>
> when the javac is forked for processing annotations the javac task 
> is never called in the compile goal
> Here is a workaround 
>   <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <version>3.0</version>
>          <executions>
>              <execution>
>                    <goals>
>                      <goal>compile</goal>
>                    </goals>
>                    <phase>generate-sources</phase>
>                    <configuration>
>          <!-- do this first -->
>                      <proc>only</proc>
>        			<source>1.7</source>
>        			<target>1.7</target>
>        		    </configuration>
>        		   </execution>
>        		</executions>
>          </plugin>
>        <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>3.0</version>
>               <executions>
>                   <execution>
>                         <goals>
>                           <goal>compile</goal>
>                         </goals>
>                         <phase>compile</phase>
>               <configuration>
>               <!-- do this second -->
>                 <proc>none</proc>
>             	<source>1.7</source>
>             	<target>1.7</target>
>               </configuration>
>              </execution>
>            </executions>
>      </plugin>
> This is a hack that needs fixing 
> Can we separate the annotation-processing goal as completely separate from the compile
goal?
> Thanks
> Martin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message