This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 154495 - [codehaus] Clean fails with unable to delete file
Summary: [codehaus] Clean fails with unable to delete file
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-03 15:59 UTC by Jaromir Uhrik
Modified: 2009-02-19 22:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2008-12-03 15:59:44 UTC
This issue was originally reported by Daniel Mutch in 16/May/08 at codehaus.org - see more details at
http://jira.codehaus.org/browse/MEVENIDE-636
Environment: XP JDK 1.6.0_06 NB 6.1

===========
Description:
===========
I'm getting a lot of clean failures. They always fail because they are unable to delete files under the target
directory. It seems either Netbeans or Maven is locking these files.
It's not due to my applications simply because it happens even if I build then clean, i.e. don't run anything in between.
This is a jar project not a war. No web server involved. I think the issue may be related in some way to plugins and
extensions.
The problem first started as an intermittent issue. We have the maven pmd and checkstyle plugins in our build process.
Occaisionaly the clean would fail to delete the output files they generate. Even if I hadn't looked at them.
Recently however we changed the way one of our sections in the build is used. We now build it and then bring it into the
build as an extension. It seems it is the jar associated with this project that it is unable to delete. This is now
failing everytime.
I've attached the failure stack trace.

-----------------------------------------------------
Comment by Anuradha Gunasekara [ 16/May/08 07:01 AM ]
-----------------------------------------------------
I still can't reproduce. Can you attach Example Project and give steps to reproduce
Thanks

----------------------------------------------
Comment by Daniel Mutch [ 18/May/08 08:33 PM ]
----------------------------------------------
I'll see what I can do when i have a moment. Cheers Dan
Comment 1 Jaromir Uhrik 2008-12-03 16:00:20 UTC
...I am linking the following file which resides in Jira system:
http://jira.codehaus.org/secure/attachment/34575/build-output.txt
Comment 2 Milos Kleint 2008-12-05 14:06:06 UTC
haven't got a similar report since 6.1, with introduction of default command line building in 6.5, the issue shall be
even less frequent.

as a general rule, as far as I can tell the plugins/extensions shall not be built in the same build as the the projects
using them.

marking as fixed, please reopen if the issue persists in 6.5