maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MJAR-43) adding -Dmaven.test.skip=true generate a test-jar without classes
Date Fri, 02 Jun 2006 16:09:43 GMT
    [ http://jira.codehaus.org/browse/MJAR-43?page=comments#action_66499 ] 

Olivier Lamy commented on MJAR-43:
----------------------------------

Thanks for suggestion but ...
my use case is to install/deploy the jar and test-jar (with all class src/main + src/test)
without *running* tests
I try to do it (as you suggest) with : mvn test-compile install -Dmaven.test.skip=true.
When looking at :
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java?revision=387710
execute method it seems to be not possible.
        if ( skip )
        {
            getLog().info( "Not compiling test sources" );
        }
        else
        {
            super.execute();
        }
I think we need more properties :
- maven.test.skip.compile
- maven.test.skip.exec 

--
Olivier

> adding -Dmaven.test.skip=true generate a test-jar without classes
> -----------------------------------------------------------------
>
>          Key: MJAR-43
>          URL: http://jira.codehaus.org/browse/MJAR-43
>      Project: Maven 2.x Jar Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: all
>     Reporter: Olivier Lamy

>
>
> Hi,
> If I use mvn install -Dmaven.test.skip=true, the generated test-jat doesn't contains
the compiled test classes.
> Normal they're are not compiled due to -Dmaven.test.skip=true.
> But something to deploy quick fixes, we use this.
> Because my tests are included in a test module which it's used by some api implementations
(they can't be run in this test module that's we skip it)
> Is there any workaround ? or a possibility to force test-compile without executing tests
?
> --
> Olivier

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


Mime
View raw message