nickylin / powermock

Automatically exported from code.google.com/p/powermock
Apache License 2.0
0 stars 0 forks source link

maven dependency on powermock-api-easymock doesn't bring in easymock #420

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Added the following to my pom.xml:

    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-easymock</artifactId>
      <version>1.5</version>
      <scope>test</scope>
    </dependency>

2. Ran mvn test
3. Got the following error: package org.easymock does not exist

What is the expected output? What do you see instead?

I expected that since the pom for powermock-api-easymock says it depends on 
easymock, that it would be pulled in. However I get the error:

package org.easymock does not exist

What version of the product are you using? On what operating system?

Version 1.5 on linux.

Please provide any additional information below.

It appears to be due to the parent pom saying that easymock should be provided:

http://stackoverflow.com/questions/10382220/maven-test-dependency-not-being-foun
d

Original issue reported on code.google.com by onlyn...@gmail.com on 8 Jan 2013 at 9:42

GoogleCodeExporter commented 9 years ago
Yes that's because PowerMock works with different version of EasyMock so you 
must decide which version of EasyMock you want to depend on. Unless more people 
vote this up I don't think I'll change anything.

Original comment by johan.ha...@gmail.com on 22 Jan 2013 at 7:45