[ 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