maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-2852) process-test-classes phase is run even when maven.test.skip is called
Date Sun, 02 Jun 2013 13:41:03 GMT

     [ https://jira.codehaus.org/browse/MNG-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated MNG-2852:
--------------------------------

    Description: 
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:
{noformat}
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [antrun:run {execution: default}]
     [echo] Running Jibx Ant task
{noformat}
My task definition looks like this:
{code:xml}
<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>
{code}

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


    
> process-test-classes phase is run even when maven.test.skip is called
> ---------------------------------------------------------------------
>
>                 Key: MNG-2852
>                 URL: https://jira.codehaus.org/browse/MNG-2852
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.5
>            Reporter: Dan Diephouse
>             Fix For: Issues to be reviewed for 3.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:
> {noformat}
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [antrun:run {execution: default}]
>      [echo] Running Jibx Ant task
> {noformat}
> My task definition looks like this:
> {code:xml}
> <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message