maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From youhaodeyi <youhaod...@gmail.com>
Subject Re: Counldn't find junit package
Date Sat, 01 Mar 2008 09:02:14 GMT

I have added the junit dependency and the junit.jar has been downloaded to my
local repository. I don't think I need to add local repository on classpath.
Maven can handle with it.

mgainty wrote:
> 
> make sure junit.jar is on the classpath before you run mvn pom.xml..
> 
> M-
> ----- Original Message -----
> Wrom: WLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBI
> To: <users@maven.apache.org>
> Sent: Friday, February 29, 2008 9:21 PM
> Subject: Counldn't find junit package
> 
> 
>>
>> I have added the junit dependence in pom.xml file as follows:
>>
>> <dependency>
>> <groupId>junit</groupId>
>> <artifactId>junit</artifactId>
>> <version>3.8.1</version>
>> <scope>test</scope>
>> </dependency>
>>
>> When I run "mvn test" to run my junit test, I always get the error
> "package
>> org.junit does not exist".
>> --
>> View this message in context:
> http://www.nabble.com/Counldn%27t-find-junit-package-tp15769349s177p15769349
> 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
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Counldn%27t-find-junit-package-tp15769349s177p15773096.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


Mime
View raw message