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