Hi Richard,

I think we'd need some more info here to help out.  What version of DSpace?

It looks like the current "master" version of the 'build.xml' and 
'assembly.xml' files both have valid DSpace license headers:

* 
https://raw.github.com/DSpace/DSpace/master/dspace/src/main/config/build.xml
* 
https://github.com/DSpace/DSpace/blob/master/dspace/src/assemble/assembly.xml

Essentially, you should be able to run 'mvn install' with DSpace. 
However, running a 'mvn install' will by default check to ensure all 
files have a valid license header that matches this file:
https://raw.github.com/DSpace/DSpace/master/LICENSE_HEADER

If a file is found to note have that license header, you will receive 
errors.  The ways around these errors are to do one of the following:

(1) Add a valid DSpace license header to the files that are throwing the 
error. (This obviously should only be done if those files should be 
owned & licensed by DuraSpace)

OR

(2) Exclude those specific files from the License header check, by 
customizing the module's "pom.xml" -- for example, here's some 
exclusions in the XMLUI's pom.xml: 
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/pom.xml#L49 
(This is recommended if the files in question already have an existing 
open source license or need to be licensed separately for whatever reason)

OR

(3) Tell Maven you want to skip running the license header check 
altogether, by running: "mvn install -Dlicense.skip=true"

I hope that helps explain things better.

- Tim

On 10/23/2012 3:27 AM, Richard Jones wrote:
> Hi Folks,
>
> I need to get a locally customised version of DSpace into my local
> maven repository, and have been trying to use mvn install.  When I do
> this I get an error which complains about missing licence headers in
> build.xml and assembly.xml.
>
> Is there a recommended way to get a locally customised DSpace into the
> local maven repo which doesn't cause this issue?
>
> Cheers,
>
> Richard
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Dspace-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-devel
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to