My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
MavenUsers  
Updated Dec 22, 2011 by brice.du...@gmail.com

Latest in maven central

You can browse to see what's the latest version:

The artifacts appear in maven central shortly after the release date.

Example

For the sake of the example I will use mockito 1.9.0. Please note that the current latest version can be higher. Just update the number accordingly.

mockito-core

  <!-- needs extra dependencies: objenesis & hamcrest -->
  <groupId>org.mockito</groupId>
  <artifactId>mockito-core</artifactId>  
  <version>1.9.0</version> 
  <scope>test</scope>

mockito-all

  <groupId>org.mockito</groupId>
  <artifactId>mockito-all</artifactId>
  <version>1.9.0</version>
  <scope>test</scope>

mockito-core VS mockito-all

Mockito-all is a single jar will all dependencies inlined inside (that is: hamcrest and objenesis libs as of June'11). Mockito-core is just the mockito jar. Use mockito-core if you want to pull a specific version of hamcrest or objenesis. Mockito-core gives finer control on what jars end up on your classpath. Since maven deals with transitive dependencies well maven users can use maven-core without any extra hassle.

Comment by stig....@gmail.com, Apr 16, 2008

Waiting eagerly :)

Comment by PhilAlan...@gmail.com, Apr 23, 2008

Us too!

Comment by warrenfo...@gmail.com, Nov 4, 2008

Waiting eagerly for 1.6 :)

Comment by flobakk, Nov 5, 2008

yup! 1.6 gimme gimme gimme! Looks like a big improvement in readability :)

Comment by avpar...@gmail.com, Nov 13, 2008

Over 3 weeks, and 1.6 still isn't in the maven repo - what's the holdup? Please add it!

Comment by filippo....@gmail.com, Nov 21, 2008

... still no news?

Comment by nil...@gmail.com, Nov 21, 2008

Please please pretty please!!

Comment by tbow...@rosettastone.com, Nov 24, 2008

Also waiting....

Comment by torbjorn...@bekk.no, Nov 25, 2008

Also waiting!

Comment by mbastr...@gmail.com, Nov 25, 2008

+1 (waiting)

Comment by simon.br...@gmail.com, Nov 29, 2008

+1

Comment by dgag...@gmail.com, Dec 5, 2008

It's in the repository !

Comment by nil...@gmail.com, Dec 10, 2008

Yipee!

Comment by flobakk, Feb 4, 2009

Version 1.7 is now in the central repo. Thanks!

Comment by dominik....@gmail.com, May 14, 2009

How about rolling mockito-core-1.7-sources.jar and/or mockito-core-1.7-javadoc.jar and putting it in the maven repository next to the binaries? Those using eclipse + m2eclipse plugin would benefit from source browsing and javadocs whenever mocikto-core-1.7 makes it into their projects' pom.xml.

Comment by project member szcze...@gmail.com, Jun 9, 2009

thanks for feedback - we will add sources / javadocs to maven accordingly

Comment by channing.walton, Jun 11, 2009

I tried to use mockito-all but ran into runtime errors because the TypeSafeMatcher? wasn't present in hamcrest 1.1. I needed to use hamcrest 1.2.

Comment by project member szcze...@gmail.com, Oct 5, 2009

Then please use mockito-core.

Comment by cku...@gmail.com, Oct 11, 2009

Mockito 1.8.0 still doesn't show up in Maven central. Could you please have a look at it?

Comment by project member szcze...@gmail.com, Oct 12, 2009

Please verify the urls. Mockito really is in maven central.

Comment by Jonathan.Winandy, Jun 28, 2010

<scope>test</scope> ?

Comment by project member szcze...@gmail.com, Jun 28, 2010

of course! thanks for pointing out.

Comment by jenuehei...@gmail.com, Aug 5, 2010

Using mockito for the first time.. =)

Comment by rogerpack2005, Jun 9, 2011

perhaps add instructions here to help the user know if they want core versus all?

Comment by Singleto...@gmail.com, Jun 29, 2011

yes, and it also helps them by enabling them to just be able to copy the maven tag to be used. Makes life easier.


Sign in to add a comment
Powered by Google Project Hosting