Thanks for your answers.
I am now using the additions module which comes with dspace.
The reason why I tried to use my own module have been dependency
problems after adding dependencies to additions/pom.xml.
But I found out that it was a problem with transitive dependencies
(org.apache.httpcomponents:httpcore)
so additions module is working fine now.
Am 08.04.2014 19:22, schrieb Pottinger, Hardy J.:
Hi, here's a hasty writeup I did on using the additions module to
include a (not a custom) jar file:
https://wiki.duraspace.org/display/DSPACE/Nailgun?focusedCommentId=40076646&src=search#comment-40076646
------------------------------------------------------------------------
*From:* Terry Brady [[email protected]]
*Sent:* Tuesday, April 08, 2014 12:16 PM
*To:* Christian Scheible
*Cc:* dspace-tech
*Subject:* Re: [Dspace-tech] Maven - Local Code as a Maven Project
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]
<mailto:[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]
<mailto:[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