Dear Ashish,As far i understand your problem, you have not set the goals of
your project "DSpace Assembly and configuration" properly.I was also suffering
the same issue a week ago. Mr Tim guide in that time. i am sending you his
mail.**************************************************************************Part
of the issue here is that, by default, NetBeans will *always*
attempt to check all file license headers (by running 'mvn install'
instead of 'mvn package'). For most developers, you really don't need
this to occur (as DSpace is released with proper license headers).
So, one way you can fix this is by customizing what the NetBeans "Build"
option runs, so that it uses "package" *instead* of "install" (and
therefore does not attempt to check any license headers).
Here's how you can do that in NetBeans:
1. Right click on the project you are attempting to Build (e.g. "DSpace
Assembly and Configuration"), and select "Properties"
2. Go to the "Actions" category on the left
3. Select the "Build project" action.
4. In the "Execute goals" change "install" to "package"
5. Now select the "Clean and Build Project" action
6. In the "Execute goals" change "clean install" to "clean package"
7. Finally, select the "Build with Dependencies" action
8. In the "Execute goals" change "install" to "package"
Now, for that project, each time you run any of the 3 build commands
(Build, Clean & Build, or Build with Dependencies) NetBeans will use the
Maven 'package' command instead of the 'install' command. You'd have to
do this customization for any NetBeans project that you want to build
using those commands.
As an alternative, you could also create your own custom NetBeans
commands (which can be run across any/all projects) by doing the following:
1. Right click on *any* project.
2. Select "Custom -> Goals..."
3. In the "Goals:" field type "package"
4. Select "Remember as:" (at bottom) and enter in "Package" (or some
name you will remember)
5. Click OK
Now, you can right click on any project, and go to "Custom -> Package"
to run a Maven "package" of that project.
I hope that helps.*************************RegardsAmjad
From: nayal.ash...@gmail.com
Date: Fri, 6 Jul 2012 12:00:49 +0530
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Problem in integrating dspace with netbeans
Dear Sir,
I am integrating Dspace 1.7.2 in Netbeans 7.1.2.But when I build Dspace
Assembly and Configuration it gives me following error:
Failed to execute goal
com.google.code.maven-license-plugin:maven-license-plugin:1.4.0:check (default)
on project dspace-api: Some files do not have the expected license header ->
[Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
Please suggest me some solution.
Regards,
Ashish Nayal
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech