wakaleo / jenkins-the-definitive-guide-book

http://www.wakaleo.com/books/jenkins-the-definitive-guide
319 stars 250 forks source link

Chapter 1: mvn 2.1.1 #11

Open headcrashing opened 11 years ago

headcrashing commented 11 years ago

The book is wrong in Chapter 1. It says one shall configure Jenkins to provide Maven 2.1.1. Actually game-of-life cannot be build using Maven 2, as it complains that it needs at least Maven 3.0.0. This is confusing for people that have not much experience with Maven.

iqbalmohomed commented 11 years ago

I ran into the same problem. To get the example to work, I installed maven 3 on Ubuntu 12.04 using the following:

sudo apt-get update sudo apt-get install maven

At the moment, this installed 3.0.4 for me. On the "configure system gui", enter 3.0.4 under maven configuration.

JavierPeris commented 8 years ago

@headcrashing The book has some discrepancies with the source code. If you take a look at the pom.xml you can see the plugin maven-enforcer-plugin that requires version 3.0 or higher.

Now that the version 2.x of Jenkins is already available , it would be a good time to re-edit this book.