You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by boulouk <bo...@yahoo.com> on 2012/10/17 11:20:26 UTC
Problem on making a jar file for a test class
Hi all,
I'm trying to make a jar file for a file that is to the test package. If I
execute this file from the eclipse as a java application, is executed very
well! When I try to execute the same file, that is built-up to a jar file, I
can't! Does any body know what is probably the problem?
Thank you,
George
--
View this message in context: http://maven.40175.n5.nabble.com/Problem-on-making-a-jar-file-for-a-test-class-tp5726927.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem on making a jar file for a test class
Posted by Wayne Fay <wa...@gmail.com>.
> I'm trying to make a jar file for a file that is to the test package. If I
> execute this file from the eclipse as a java application, is executed very
> well! When I try to execute the same file, that is built-up to a jar file, I
> can't! Does any body know what is probably the problem?
Unzip the jar file that Maven constructs for you. I doubt you will
find your class file within it.
By default, Maven does not include test classes in your jar. You can
produce a test-jar which has those classes, or move the class from
under src/test/java to src/main/java, or add configuration to your pom
to do this.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org