You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Diephouse (JIRA)" <ji...@codehaus.org> on 2007/02/27 18:26:15 UTC

[jira] Created: (MNG-2852) process-test-classes phase is run even when maven.test.skip is called

process-test-classes phase is run even when maven.test.skip is called
---------------------------------------------------------------------

                 Key: MNG-2852
                 URL: http://jira.codehaus.org/browse/MNG-2852
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.5
            Reporter: Dan Diephouse


I'm have some bytecode processing which occurs in the process-test-classes phase. when I skip the tests, it still tries to run my ant task:

[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [antrun:run {execution: default}]
     [echo] Running Jibx Ant task

My task definition looks like this:

<plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-test-classes</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <echo>Running Jibx Ant task</echo>
                <taskdef classname="org.jibx.binding.ant.CompileTask" classpathref="maven.test.classpath" name="jibx" />
                <jibx verbose="true" binding="${basedir}/src/jibx/binding.xml">
                  <classpathset dir="${basedir}/target/test-classes" />
                </jibx>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>


-- 
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] Updated: (MNG-2852) process-test-classes phase is run even when maven.test.skip is called

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-2852:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.2.x
      Component/s: Plugins and Lifecycle

maven.test.skip is nothing really special - it's plugin configuration. To support this, we'd need some way to alter the lifecycle to drop all the test phases out.

> process-test-classes phase is run even when maven.test.skip is called
> ---------------------------------------------------------------------
>
>                 Key: MNG-2852
>                 URL: http://jira.codehaus.org/browse/MNG-2852
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.5
>            Reporter: Dan Diephouse
>             Fix For: 2.2.x
>
>
> I'm have some bytecode processing which occurs in the process-test-classes phase. when I skip the tests, it still tries to run my ant task:
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [antrun:run {execution: default}]
>      [echo] Running Jibx Ant task
> My task definition looks like this:
> <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>process-test-classes</phase>
>             <goals>
>               <goal>run</goal>
>             </goals>
>             <configuration>
>               <tasks>
>                 <echo>Running Jibx Ant task</echo>
>                 <taskdef classname="org.jibx.binding.ant.CompileTask" classpathref="maven.test.classpath" name="jibx" />
>                 <jibx verbose="true" binding="${basedir}/src/jibx/binding.xml">
>                   <classpathset dir="${basedir}/target/test-classes" />
>                 </jibx>
>               </tasks>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>

-- 
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