You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frank Schwarz (JIRA)" <ji...@codehaus.org> on 2011/12/02 17:06:39 UTC

[jira] Created: (MANTRUN-171) maven.compile.classpath should not contain target/classes when packaging=POM

maven.compile.classpath should not contain target/classes when packaging=POM
----------------------------------------------------------------------------

                 Key: MANTRUN-171
                 URL: https://jira.codehaus.org/browse/MANTRUN-171
             Project: Maven 2.x Antrun Plugin
          Issue Type: Improvement
    Affects Versions: 1.7
         Environment: Maven 3.0.3
            Reporter: Frank Schwarz


{code}
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.7</version>
  <executions>
    <execution>
      <configuration>
        <target>
          <property name="path" refid="maven.compile.classpath" /> 
          <echo message="${path}" />
        </target>
      </configuration>
    </execution>
  </executions>
</plugin>
{code}

This will print out (besides others) "target/classes", although the packaging-type of the enclosing pom.xml is "POM". 

IMHO there cannot be any compiled classes in this case, so please leave it out.

(My actual use-case: I would like to process all declared dependencies in the antrun-section, so "target/classes" makes me trouble.)


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