Brooke's World The life and ramblings of Brooke.

May 9, 2007

Maven, scm, AcegiSecurity, CAS, ActiveDirectory woes – Building Acegi from source

Filed under: acegi,java,maven — Brooke @ 2:45 pm

Well, I guess I should have known better!!  In order to build Acegi from source, including the sample applications, I needed to use Maven 1.0.2 instead of Maven 2.0.  Fortunately, Maven 1 uses the command maven to invoke it and Maven 2 uses mvn so you can run both on the same machine.  Once I switched to Maven 1, the “how to build from source” page on the Acegi website worked flawlessly!

Here is the page I found that pointed me in the direction that I needed to use Maven 1 instead of Maven 2:  forum entry

Now to test the .war files I was trying to create from the start!

May 8, 2007

Maven, scm, AcegiSecurity, CAS, ActiveDirectory woes

Filed under: acegi,java,maven,scm — Brooke @ 9:08 pm

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.

Powered by WordPress