[cas-dev] problems building CAS using maven on command line

David Whitehurst dlwhitehurst at gmail.com
Sun May 18 15:29:15 EDT 2008


Are you building CAS from the root POM or trying to build a specific
module first?


David

On Sun, May 18, 2008 at 1:24 PM, Phillip Rhodes
<mindcrime at cpphacker.co.uk> wrote:
> Hey all, hoping somebody can give me some insight
> on a problem I'm having.  I've extracted CAS
> from SVN, and am trying to build using Maven2
> on the command line.  Unfortunately I get
> a large number of errors, mostly relating to
> unresolved dependencies.  For example:
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error for project: JA-SIG CAS Generic Support (during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /development/projects/jasig/cas/cas3/cas-server-support-generic/src/main/java/org/jasig/cas/adaptors/generic/FileAuthenticationHandler.java:[15,34]
> package org.springframework.core.io does not exist
>
> /development/projects/jasig/cas/cas3/cas-server-support-generic/src/main/java/org/jasig/cas/adaptors/generic/FileAuthenticationHandler.java:[42,12]
> cannot find symbol
> symbol  : class Resource
> location: class org.jasig.cas.adaptors.generic.FileAuthenticationHandler
>
> /development/projects/jasig/cas/cas3/cas-server-support-generic/src/main/java/org/jasig/cas/adaptors/generic/FileAuthenticationHandler.java:[88,40]
> cannot find symbol
> symbol  : class Resource
> location: class org.jasig.cas.adaptors.generic.FileAuthenticationHandler
>
>
> But strangely, if I run the Maven build from inside Eclipse using the M2
> plugin, it all builds with no problem.  And using the set of dependent
> jars specified by the pom.xml, the internal Eclipse incremental
> compiler compiles everything with no problem as well.
>
> So...  any thoughts on why this doesn't build from the command
> line as well as it does from inside Eclipse?  Is a very specific
> version of M2 required or anything? I have 2.0.4 installed, FWIW.
> Any other ideas on what might cause this?
>
>
> Thanks,
>
>
> --
> Phillip Rhodes
> Chief Architect - OpenQabal
> https://openqabal.dev.java.net
> LinkedIn: http://www.linkedin.com/in/philliprhodes
>
> _______________________________________________
> cas-dev mailing list
> cas-dev at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
>


More information about the cas-dev mailing list