Unit tests for chapter 4 don't build. Missing dependency on commons io
The unit tests for the example in chapter 4 depend on apache commons io, which is not specified in the pom. I had to add the following to the pom:
<dependency>
<groupid>org.apache.commons</groupid>
<artifactid>commons-io</artifactid>
<version>1.3.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupid>org.apache.commons</groupid>
<artifactid>commons-io</artifactid>
<version>1.3.2</version>
<scope>test</scope>
</dependency>
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company thinks this is not a problem.
-
Inappropriate?I realize the you do add this dependency in section 4.10, but you imply in section 4.8 that the "mvn install" goal will succeed. It won't since the build of the unit tests fail.
-
Inappropriate?Actually, I guess this is okay. In section 4.8, you haven't actually added the unit tests yet. I had all the test source in place when I was going through section 4.8. If you follow along exactly in chapter 4, things should be okay.
-
Inappropriate?I thought about how to address this, and was going to put a note in section 4.8 telling people that there could be a failure. In the end, I decided to leave it alone because the reference to a future section seemed more confusing.
I guess I'm just going to assume people read this chapter in order, and also just hope people are working against the downloaded example code.
Loading Profile...


CHAMP
EMPLOYEE