You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2006/05/31 14:50:43 UTC
[jira] Created: (MJAR-43) adding -Dmaven.test.skip=true generate a
test-jar without classes
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
[jira] Commented: (MJAR-43) adding -Dmaven.test.skip=true generate
a test-jar without classes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-43?page=comments#action_66429 ]
Olivier Lamy commented on MJAR-43:
----------------------------------
In fact, it should be great to having something like a skipExec (maven.test.skip.exec) in surefire plugin.
This will skip test execution but not the test compilation.
WDYT ?
Someone can move this to surefire plugin ?
Thanks,
--
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
[jira] Closed: (MJAR-43) adding -Dmaven.test.skip=true generate a
test-jar without classes
Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-43?page=all ]
Mike Perham closed MJAR-43:
---------------------------
Resolution: Cannot Reproduce
This is a surefire issue, not a JAR plugin issue. Please add any follow ups to the issue above.
> 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
[jira] Commented: (MJAR-43) adding -Dmaven.test.skip=true generate
a test-jar without classes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MJAR-43) adding -Dmaven.test.skip=true generate
a test-jar without classes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-43?page=comments#action_66533 ]
Olivier Lamy commented on MJAR-43:
----------------------------------
provided a patch in http://jira.codehaus.org/browse/MSUREFIRE-128
The property called maven.test.skip.compile in the previous looks to be stupid ;-)
--
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
[jira] Commented: (MJAR-43) adding -Dmaven.test.skip=true generate
a test-jar without classes
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-43?page=comments#action_66440 ]
Carlos Sanchez commented on MJAR-43:
------------------------------------
The workaround is running
mvn test-compile install
> 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