Yes, this is a safe place to put such a customization if you want it  
to be part of more than one of your webapplications (if it is just one  
webapplication that will be using it,  just place it in that  
webapplications src/main/java directory).  You will do the following:

1.) Create an "api" directory
2.) create a "api/pom.xml" that has a artifactId, groupId and version  
that is the same as your current dspace version.
3.) make sure it is also dependent on org.dspace:dspace-api:<version>

4.) put you code in api/src/main/java
5.) add the api directory to the modules/pom.xml as both a module and  
a dependency

when you now build, the api will be included into the modules list for  
modules being built and the dependency will make sure it shows up in  
you WEB-INF/lib of your compiled webapplications.

Finally, if you want your project to show up in the [dspace.dir]/lib,  
you'll want to also add the dependency to the dspace/pom.xml

Don't hesitate to ask any questions if you get hung up on any of this.

Cheers,
Mark

On Oct 1, 2008, at 2:44 PM, Jason Stirnaman wrote:

> Follow up to my question:
> Is
> [dspace-source]/dspace/modules/api/src/main/java/org/dspace/ 
> authenticate
> the correct place to put a custom authentication method?
>
> ***************
> Can anyone point to good documentation about where to place plugins  
> and
> custom class files in 1.5.x?  It's not clear from the 1.5.1 manual.
> Specifically, in what directory would I place a custom authentication
> method like the MIT-Special-Groups in 1.4.x?
> Thanks,
> Jason
> -- 
>
> Jason Stirnaman
> Digital Projects Librarian/School of Medicine Support
> A.R. Dykes Library, University of Kansas Medical Center
> [EMAIL PROTECTED]
> 913-588-7319
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to