Dear Tim,

Thanks for your advice. I noticed I can change the DSpace maven project build 
options in Netbeans by right-clicking on the project icon. Then choosing 
properties, then actions and choose Build project and subsequently type package 
in the Execute Goals field.

Kind regards,

Peter van Wonderen

-----Oorspronkelijk bericht-----
Van: Tim Donohue [mailto:[email protected]] 
Verzonden: Thursday, March 01, 2012 3:55 PM
Aan: Wonderen, P.M.G. van
Onderwerp: Re: Missing license header in DSpace REST api properties files

Peter,

Sorry for the lack of response. I just haven't had the chance to catch up with 
all my inbox email.

Usually it's much better to send these emails to the dspace-tech mailing list 
(details: 
https://lists.sourceforge.net/lists/listinfo/dspace-tech/).  That way more 
people see the email and can help out as needed. I also keep track of emails 
there and attempt to help out when my time allows.

Glad you realized the source of the header problem. I suspect the underlying 
issue here is that Netbeans always runs 'mvn install' when it does a "build".  
Currently for DSpace, 'mvn install' also verifies the proper file headers are 
in place.  Since some files were missing headers it was giving an error.  The 
two possible fixes would be to add in those headers (which it sounds like you 
did), or customize your NetBeans project settings to instead run "mvn package" 
when you run a "build" (as 'mvn package' doesn't check headers).

It sounds like this fix needs to happen in the REST API trunk too. But, I know 
it's in the process of being migrated to GitHub (by Peter Dietz). 
So, this may just be something one of us will have to fix once that migration 
is complete.

- Tim

On 3/1/2012 1:03 AM, Wonderen, P.M.G. van wrote:
> Dear Tim,
>
> Fortunately I found out what was the right header for a properties file.
> It was right inside the Messages.properties file. Then I copied it to 
> all properties files inside the REST module.
>
> Kind regards,
>
> Peter
>
> *Van:*Wonderen, P.M.G. van
> *Verzonden:* Wednesday, February 29, 2012 3:02 PM
> *Aan:* '[email protected]'
> *Onderwerp:* Missing license header in DSpace REST api properties 
> files
>
> Dear Tim,
>
> Hope you know an answer to this.
>
> I downloaded the Dspace REST api code from 
> http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk/
>
> Then I incorporated it in the DSpace 1.8.1 source project. No problem 
> until this.
>
> I want to use the code in the Netbeans IDE because I sometimes want to 
> debug to code which is far easier than debugging the code outside of 
> Netbeans.
>
> Unfortunately I miss some license header in he REST api for these 
> properties files:
>
> --- maven-license-plugin:1.9.0:check (check-headers) @ dspace-rest ---
>
> Checking licenses...
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\bitstream.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\describe.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\collections.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\items.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\log4j.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\harvest.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\stats.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\communities.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\search.properties
>
> Missing header in:
> C:\Users\petervw\Documents\NetBeansProjects\dspace-1.8.1-src-release-n
> etbeans\dspace-rest\src\main\resources\users.properties
>
> ----------------------------------------------------------------------
> --
>
> Reactor Summary:
>
> DSpace Parent Project ............................. SUCCESS [2.176s]
>
> DSpace Kernel :: API and Implementation ........... SUCCESS [12.807s]
>
> DSpace REST API ................................... FAILURE [8.554s]
>
> DSpace XML-UI (Manakin) ........................... SKIPPED
>
> DSpace XML-UI (Manakin) :: Wing-Framework ......... SKIPPED
>
> DSpace Solr Statistics Logging Client Library ..... SKIPPED
>
> DSpace XML-UI (Manakin) :: API and Core Aspects ... SKIPPED
>
> DSpace XML-UI (Manakin) :: Web Application Resources SKIPPED
>
> DSpace Discovery :: Modules ....................... SKIPPED
>
> DSpace Discovery :: Discovery Provider Library .... SKIPPED
>
> DSpace Discovery :: Discovery Solr Implementation . SKIPPED
>
> DSpace Discovery :: Discovery XMLUI API ........... SKIPPED
>
> DSpace Discovery :: Discovery XMLUI Webapp ........ SKIPPED
>
> DSpace SWORD ...................................... SKIPPED
>
> DSpace SWORD :: API and Implementation ............ SKIPPED
>
> DSpace Sword Client ............................... SKIPPED
>
> DSpace Sword Client :: Sword Client API ........... SKIPPED
>
> DSpace Sword Client :: Sword Client XMLUI API ..... SKIPPED
>
> DSpace Sword Client :: Sword Client XMLUI Webapp .. SKIPPED
>
> DSpace Addon Modules .............................. SKIPPED
>
> DSpace XML-UI (Manakin) :: Web Application ........ SKIPPED
>
> DSpace LNI ........................................ SKIPPED
>
> DSpace LNI :: Core Implementation ................. SKIPPED
>
> DSpace LNI :: Web Application Resources ........... SKIPPED
>
> DSpace LNI :: Web Application ..................... SKIPPED
>
> DSpace OAI ........................................ SKIPPED
>
> DSpace OAI :: API and Implementation .............. SKIPPED
>
> DSpace OAI :: Web Application Resources ........... SKIPPED
>
> DSpace OAI :: Web Application ..................... SKIPPED
>
> DSpace JSP-UI ..................................... SKIPPED
>
> DSpace JSP-UI :: API and Implementation ........... SKIPPED
>
> DSpace JSP-UI :: Web Application Resources ........ SKIPPED
>
> DSpace JSP-UI :: Web Application .................. SKIPPED
>
> DSpace SWORD :: Web Application Resources ......... SKIPPED
>
> DSpace SWORD :: Web Application ................... SKIPPED
>
> DSpace SWORD v2 :: Web Application Resources ...... SKIPPED
>
> DSpace SWORDv2 :: Web Application ................. SKIPPED
>
> DSpace SOLR :: Web Application .................... SKIPPED
>
> DSpace REST :: Web Application .................... SKIPPED
>
> DSpace Assembly and Configuration ................. SKIPPED
>
> DSpace LNI :: CLI Client Application .............. SKIPPED
>
> ----------------------------------------------------------------------
> --
>
> BUILD FAILURE
>
> ----------------------------------------------------------------------
> --
>
> Total time: 24.870s
>
> Finished at: Wed Feb 29 14:51:09 CET 2012
>
> Final Memory: 26M/236M
>
> ----------------------------------------------------------------------
> --
>
> [ERROR]Failed to execute goal
> com.mycila.maven-license-plugin:maven-license-plugin:1.9.0:check
> (check-headers) on project dspace-rest: Some files do not have the 
> expected license header -> [Help 1]
>
> [ERROR]
>
> [ERROR]To see the full stack trace of the errors, re-run Maven with 
> the -e switch.
>
> [ERROR]Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR]For more information about the errors and possible solutions, 
> please read the following articles:
>
> [ERROR][Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio
> n
>
> [ERROR]
>
> [ERROR]After correcting the problems, you can resume the build with 
> the command
>
> [ERROR] mvn <goals> -rf :dspace-rest
>
> Would you by any change know what the header must be in order to 
> compile the DSpace REST api project? For the Java files it is
>
> /**
>
> * The contents of this file are subject to the license and copyright
>
> * detailed in the LICENSE and NOTICE files at the root of the source
>
> * tree and available online at
>
> *
>
> * http://www.dspace.org/license/
>
> */
>
> But for the properties file it is not
>
> #
>
> # The contents of this file are subject to the license and copyright
>
> # detailed in the LICENSE and NOTICE files at the root of the source
>
> # tree and available online at
>
> #
>
> # http://www.dspace.org/license/
>
> #/
>
> Because that fails.
>
> Kind regards,
>
> Peter van Wonderen
>
> VU University Amsterdam
>
> Netherlands
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to