Andrew,

There are two ways:

1. Develop your code completely separate from the CAS release and make it
available in a Maven 2 Repository (this can be as simple as developing a new
Maven 2 JAR project and using "mvn package install").  Then include that jar
as a dependency.

2. Add the source directly to CAS_PROJECT/cas-server-webapp/src/main/java
and run "mvn package" to generate the WAR file.

Either way works.  The first option keeps everything separated.  The second
option is more in-line with the localPlugins method.

-Scott

On 8/22/07, Andrew R Feller <[EMAIL PROTECTED]> wrote:
>
>  Scott,
>
>
>
> Hrmmm, I know in CAS 3.0.7 that if you wanted to include your own code /
> JARs that you could put them into the localPlugins directory of the source
> and rebuild the WAR, however I don't see such a method in the CAS 3.1package.
>
>
>
> How should developers repackage their custom code with the WAR?
>
>
>
> Thanks and great work with the release; it is looking very promising!
>
>
>
> Andrew R Feller, Analyst
>
> Subversion Administrator
>
> University Information Systems
>
> Louisiana State University
>
> [EMAIL PROTECTED]
>
> (office) 225.578.3737
>   ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Scott Battaglia
> *Sent:* Wednesday, August 22, 2007 7:40 AM
> *To:* Yale CAS mailing list
> *Subject:* Re: Building CAS 3.1 from source
>
>
>
> Andrew,
>
> To add a new module to the CAS war file you can do the following:
> 1. Open cas-server-webapp/pom.xml in a text editor.
> 2. Locate the "dependencies" section and add a new dependency (following
> the cas-server-core example but replacing cas-server-core with the
> additional module you need).
> 3. Execute "mvn package" in the cas-server-webapp directory.
>
> That should generate the appropriate war file in cas-server-webapp/target
> directory.
>
> -Scott
>
> On 8/22/07, *Andrew R Feller* <[EMAIL PROTECTED]> wrote:
>
> Good morning everyone,
>
>
>
> While building CAS 3.1 from source via Maven2, I realized that the
> additional CAS 3.1 modules (cas-server-integration-jboss,
> cas-server-support-ldap, etc) were not packaged into the modules/cas.war.
> Is there any way to include these or specific JARs generated from the build
> process into the final CAS WAR?  I apologize if this is a stupid question
> for those who are use to using maven; this is a new experience for me.
>
>
>
> Thank you,
>
>
>
> Andrew R Feller, Analyst
>
> Subversion Administrator
>
> University Information Systems
>
> Louisiana State University
>
> [EMAIL PROTECTED]
>
> (office) 225.578.3737
>
>
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to