Expect more on this topic, but I just had to post my latest fun… I am trying to build AcegiSecurity from source using svn and maven. So, I followed the site’s documentation on trying to build from source. Keep in mind, I have had plenty of experience with cvs and ant, but none with maven or svn.
Just trying to start, I ran the ‘maven scm:checkout-project…’ command. What I learned after a couple of hours was that there is a plugin called maven-scm-plugin that does the magic here. At somepoint the maven-scm-plugin was updated to a new version in the ‘plugin repository’ that removed the ‘goal’ called checkout-project in favor of just checkout!
Here is the error I was running into:
[INFO] Scanning for projects…
[INFO] Reactor build order:
[INFO] Acegi Security System for Spring – Parent
[INFO] Acegi Security System for Spring
[INFO] Acegi Security System for Spring – Java 5 (Tiger)
[INFO] Acegi Security System for Spring – Adapters
[INFO] Acegi Security System for Spring – CAS adapter
[INFO] Acegi Security System for Spring – Catalina adapter
[INFO] Acegi Security System for Spring – JBoss adapter
[INFO] Acegi Security System for Spring – Jetty adapter
[INFO] Acegi Security System for Spring – Resin adapter
[INFO] Searching repository for plugin with prefix: ‘scm’.
[INFO] ————————————————————————
[ERROR] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Required goal not found: scm:checkout-project
[INFO] ————————————————————————
[INFO] For more information, run Maven with the -e switch
[INFO] ————————————————————————
The bad news is how long it took to figure this out. The good news is that it forced me to learn more about maven, plugins, and svn.