I have struggled with the maven configuration for my instance.  I have a
custom plugin to generate thumbnails with ImageMagick.

Fortunately, once I upgraded to DSpace 3, I was able to use the additions
module to contain my plugin.

Looking at my code prior to DSpace 3, I believe that I needed to list my
custom module dependencies in both my custom module's pom and in
dspace/pom.xml in order to get the dependencies on to the runtime classpath.

Terry

Terry


On Tue, Apr 8, 2014 at 11:03 AM, Christian Scheible <
[email protected]> wrote:

> Hi together,
>
> I was trying to add a maven module to our version of DSpace to seperate
> our code from the rest. This was needed because of dependency conflicts
> (Our code has dependencies which can't be added to additions/pom.xml
> without problems).
> My Problem is that one of the classes in our module is a NamedPlugin
> (ChoiceAuthority) which is defined in dspace.cfg.
> So the PluginManager tries a Class.forName(my.edu.Classname).
> The result is a ClassNotFoundException. I think this is because the
> custum module is not in the classpath (no dependency in dspace-api/pom.xml)
> But I can't add the module to dspace-api/pom.xml because our custom
> module has a dependency to dspace-api (so it would be cyclic).
>
> https://wiki.duraspace.org/display/DSPACE/BuildCookbook says that one
> can add local code as a Maven Project for a own AuthenticationMethod (as
> an example)
> wouldn't that lead to the same error?
>
> Has anyone made a custom module with one or more Named Plugins
> (implementing an interface from dspace-api/ extending a class from
> dspace-api)?
>
> Thanks in advance
> Christian
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
202-687-7053
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to