It seems there has been a faulty upload [1] but it was fixed later.
For example, [2] has the "right" version of junit 4.8.1. I wouldn't
trust this release with maven. Based on your mirror you can get the
borked version.

[1] 
http://jira.codehaus.org/browse/MAVENUPLOAD-2695?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs
[2] http://mirrors.ibiblio.org/pub/mirrors/maven2/junit/junit/4.8.1/

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Wed, Apr 28, 2010 at 10:52 AM, Nick Stolwijk <nick.stolw...@gmail.com> wrote:
> It seems the 4.8.1 version in central is borked. It doesn't contain
> any classes. That would explain why your imports can't be resolved. I
> don't know who did the upload of this artifact, but it is certainly
> wrong.
>
> With regards,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
>
> On Wed, Apr 28, 2010 at 10:22 AM, ykyuen <yingkity...@gmail.com> wrote:
>>
>> Yes. i can see the junit-4.8.1.jar in "Maven Dependencies" of my eclipse
>> project. so i am sure the maven did download the 4.8.1 jar.
>>
>>
>>
>> Tony Chemit wrote:
>>>
>>> Le Wed, 28 Apr 2010 09:59:05 +0200,
>>> Dirk Olmes <d...@xanthippe.ping.de> a écrit :
>>>
>>>> On 04/28/2010 08:46 AM, ykyuen wrote:
>>>> >
>>>> > i try to use junit 4.8.1 in my maven project by adding the following
>>>> > dependency in the pom.xml
>>>> > <dependency>
>>>> >    <groupId>junit</groupId>
>>>> >    <artifactId>junit</artifactId>
>>>> >    <version>4.8.1</version>
>>>> >    <scope>test</scope>
>>>> > </dependency>
>>>> >
>>>> > when i try to write the test case, the org.junit cannot be
>>>> resolved(i.e.
>>>> > error at "import org.junit.Assert"). but if i change the junit version
>>>> to
>>>> > 4.7. no problem at all.
>>>> >
>>>> > did i do anything wrong?
>>> When you have this error, is it in a IDEA ? or when you launch a maven
>>> build ?
>>>
>>>>
>>>> No, it's just that JUnit 4.8.1 isn't available in the central repo (for
>>>> now).
>>>
>>> I can see it on central here :
>>>
>>> http://repo1.maven.org/maven2/junit/junit/4.8.1/
>>>
>>>>
>>>> -dirk
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>>
>>>
>>>
>>>
>>> --
>>> Tony Chemit
>>> --------------------
>>> tél: +33 (0) 2 40 50 29 28
>>> email: che...@codelutin.com
>>> http://www.codelutin.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/junit-4.8.1---org.junit-cannot-be-resolved-tp28385338p28386045.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to