Hi Amjad,

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.

- Tim


On 6/26/2012 2:42 AM, AMJAD USMAN wrote:
> Dear Helix,
>
> I dont know the reason, why it is behaving like this.
> i have checked my jdk, (1.7), maven (3) and also proxy parameters are
> set according.
>
> When i build it through command prompt, it gives no errors. but it gives
> errors in building through netbeans.
>
> Is there no netbean developer in the community ?
>
> regards
> amjad
>
>
>  > From: [email protected]
>  > Date: Tue, 26 Jun 2012 09:22:38 +0200
>  > Subject: Re: [Dspace-tech] Build error dspace 1.8.2
>  > To: [email protected]
>  > CC: [email protected]
>  >
>  > 1) If this is really a connection issue - try disabling your firewall
>  > to determine if it's the cause; if you're using a proxy to connect to
>  > internet, read this:
>  >
>  >
> https://wiki.duraspace.org/display/DSPACE/Set+Maven+Web+Proxy+Server+Settings
>  >
>  > 2) Is NetBeans set up to use the same JDK as from the command line?
>  > You can check the command-line version by running java -version.
>  >
>  > Regards,
>  > ~~helix84
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to