|
MavenUsers
Latest in maven centralYou can browse to see what's the latest version:
The artifacts appear in maven central shortly after the release date. ExampleFor 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-allMockito-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. |
► Sign in to add a comment
Waiting eagerly :)
Us too!
Waiting eagerly for 1.6 :)
yup! 1.6 gimme gimme gimme! Looks like a big improvement in readability :)
Over 3 weeks, and 1.6 still isn't in the maven repo - what's the holdup? Please add it!
... still no news?
Please please pretty please!!
Also waiting....
Also waiting!
+1 (waiting)
+1
It's in the repository !
Yipee!
Version 1.7 is now in the central repo. Thanks!
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.
thanks for feedback - we will add sources / javadocs to maven accordingly
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.
Then please use mockito-core.
Mockito 1.8.0 still doesn't show up in Maven central. Could you please have a look at it?
Please verify the urls. Mockito really is in maven central.
<scope>test</scope> ?
of course! thanks for pointing out.
Using mockito for the first time.. =)
perhaps add instructions here to help the user know if they want core versus all?
yes, and it also helps them by enabling them to just be able to copy the maven tag to be used. Makes life easier.