Try running: mvn clean, and then do your normal build.
I have to do that occasionally to clear out some old packages after
changing some poms. i.e. internally going from elasticsearch-0.18.6 to
elasticsearch-0.19.12
Deleting your .m2/repository is generally safe. It all gets redownloaded
upon mvn package.
I would as a general rule try to be cleaner about keeping multiple versions
of DSpace laying around. I have a directory OSU builds, one each for
dspace-1.7.x-OSU, dspace-1.8.x-OSU. Then when I'm working with clean DSpace
versions I have dspace-1.8.x-clean, dspace-3.x-clean. I haven't yet done a
proper github-i-fied upgrade from one customized version of DSpace to the
next yet. But thus far to jump from dspace-1.8-custom to dspace-3.0-custom
I've essentially checked out clean versions DSpace (1.8 or 3.0), and then
applied my changes on top of it, typically using 3-way DiffMerge.
I would also try to run a 3-way directory diff against what you've got in
your dspace-1.8 directory, and a clean checkout of DSpace-1.8.x, I'm
thinking you've got some contamination from dspace-3 files.
Good luck
Peter Dietz
On Tue, Feb 12, 2013 at 10:18 AM, helix84 <[email protected]> wrote:
> Hi Jose,
>
> I'm ignoring here the whole ~/.m2 discussion and replying only to your
> original problem (java.lang.IllegalStateException: DSpace kernel
> cannot be null). This might be a problem with you using configuration
> from a different DSpace version, as I explained here:
>
>
> https://jira.duraspace.org/browse/DS-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27537#comment-27537
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
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