You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2009/02/24 14:50:19 UTC

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

compiler sets artifact file to target/classes, even if nothing is compiled
--------------------------------------------------------------------------

                 Key: MCOMPILER-94
                 URL: http://jira.codehaus.org/browse/MCOMPILER-94
             Project: Maven 2.x Compiler Plugin
          Issue Type: Bug
    Affects Versions: 2.0.2
            Reporter: Brett Porter


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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ 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