You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2011/08/27 18:41:33 UTC

[jira] Closed: (MCOMPILER-94) compiler sets artifact file to target/classes, even if nothing is compiled

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

Robert Scholte closed MCOMPILER-94.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4
         Assignee: Robert Scholte

Fixed in [rev. 1162398|http://svn.apache.org/viewvc?rev=1162398&view=rev]

> compiler sets artifact file to target/classes, even if nothing is compiled
> --------------------------------------------------------------------------
>
>                 Key: MCOMPILER-94
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-94
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Brett Porter
>            Assignee: Robert Scholte
>             Fix For: 2.4
>
>
> consider the following parent project:
> {code:xml}
> <project>
>   ...
>   <packaging>pom</packaging>
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <executions>
>           <execution>
>             <goals>
>               <goal>compile</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>   ...
> {code}
> This is technically incorrect, you're asking to compile a project with no sources, but it is needed for inheritence. The compiler should gracefully skip all functions, however it sets the artifact from the POM to the target/classes directory, which is incorrect if nothing was compiled.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira