Ivy dependency not working

406 views
Skip to first unread message

Umair Tajammul

unread,
May 25, 2011, 6:27:09 AM5/25/11
to PowerMock
Hi,
I am trying to download mockito dependency via ivy using the following
<dependency org="org.powermock" name="powermock-mockito-release-full"
rev="1.4.9"/>

as published here
http://mvnrepository.com/artifact/org.powermock/powermock-mockito-release-full/1.4.9

I get org.powermock#powermock-mockito-release-full;1.4.9: not found

Maven dependecy is working. The problem is related to ivy only or the
way I am using it. I would appreciate all the help.

Regards,
Umair

Johan Haleby

unread,
May 25, 2011, 7:44:33 AM5/25/11
to powe...@googlegroups.com
Hi Umair!

I think you're using the wrong artifact. If you look at the getting started page for Mockito+JUnit it says that you should depend on powermock-module-junit4 and powermock-api-mockito and not powermock-mockito-release-full (this is just the maven release project which creates the artifacts). If you search for the artifacts on http://mvnrepository.com/ you'll also see how to configure them for Ivy dependency management.

Regards,
/Johan


--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To post to this group, send email to powe...@googlegroups.com.
To unsubscribe from this group, send email to powermock+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/powermock?hl=en.


Umair Tajammul

unread,
May 25, 2011, 8:35:50 AM5/25/11
to powe...@googlegroups.com
Hi,

Thats where I started, I started using those dependencies 


   
<dependency>
     
<groupId>org.powermock</groupId>
     
<artifactId>powermock-module-junit4</artifactId>
     
<version>${powermock.version}</version>
     
<scope>test</scope>
   
</dependency>
   
<dependency>
     
<groupId>org.powermock</groupId>
     
<artifactId>powermock-api-mockito</artifactId>
     
<version>${powermock.version}</version>
     
<scope>test</scope>
   
</dependency>

However, for some reason Ivy does not downloads all jar files, as I still have compilation errors in my project. If I use maven to download the same dependencies, I see more libraries(javassst, powermock-reflect and more) in the referenced libraries. However, ivy does not downloads these jars for me when using above dependencies.

Afterwards I started trying out other dependencies. 

Umair

Johan Haleby

unread,
May 25, 2011, 8:44:12 AM5/25/11
to powe...@googlegroups.com
Alright. It was many many years ago since I last used Ivy so I don't remember too much of it. Perhaps you've somehow disabled fetching of transitive dependencies?! Otherwise I don't know what problem could be :/

/Johan
Reply all
Reply to author
Forward
0 new messages