You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Casey <jd...@commonjava.org> on 2004/02/19 20:05:37 UTC

Re: Error when creating a new goal

Dumb question, but it's something I'm embarrassed to say has stumped me
before...

Do you have another process open and viewing a subdirectory of the
target, like a command shell or something?

Just thought I'd check.

-john

On Thu, 2004-02-19 at 18:26, Freddy wrote:
>  Hi
>  I'm tring to create a new goal where I create the project site (via goal
>  site), move the site to other paste (via ant tags) and then I clean the
>  project (via goal clean)
>  But when I run my goal the clean goal fail, because he can't delete some
>  files of the target directory.
>  does anyone know why this is happening and how to stop this?
>  Thanks for the attention
> 
> []s
> Freddy
> ----------------------------------------------------------------
> Frederico Silva Guimarães
> Tel: (21) 9952-1717
> ICQ: 127277403
> Email: kid@teccomm.les.inf.puc-rio.br
> ----------------------------------------------------------------
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
John Casey
jdcasey@commonjava.org
CommonJava Open Components Project
http://www.commonjava.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error when creating a new goal

Posted by John Casey <jd...@commonjava.org>.
Have you run this with the '-e' option to maven? It will produce a stack
trace, which should give you a little more info on what the specifics of
the problem are...maybe. Maybe it'll just say in a very verbose way
"Unable to delete file". It's worth a try...

-j

On Thu, 2004-02-19 at 20:19, Freddy wrote:
> No, and otherwise I call a clean goal before the site goal, so the files are
> created for the first time by the site goal.
> 
> the order of the calls in my goal are:
>     - clean
>     - site
>     - copy the files site goal generated to a specific paste (via and tag
> "copy")
>     - jar:install
>     - clean
> 
> but as I've said the clean (the second one) can´t delete all the files....
> and I get the error below (everytime with different file anyway...)
> 
> clean:clean:
>     [delete] Deleting directory C:\eclipseWSAD\workspace\Mine\target
> 
> BUILD FAILED
> File...... file:/C:/maven/loaded_plugins/maven-clean-plugin-1.1/
> Element... ant:delete
> Line...... 12
> Column.... 43
> Unable to delete file
> C:\eclipseWSAD\workspace\Mine\target\docs\apidocs\br\com\test\class-use\Test
> Main.html
> Total time: 49 seconds
> Finished at: Thu Feb 19 17:18:16 PST 2004
> 
> []s
> Freddy
> ----------------------------------------------------------------
> Frederico Silva Guimarães
> Tel: (21) 9952-1717
> ICQ: 127277403
> Email: kid@teccomm.les.inf.puc-rio.br
> ----------------------------------------------------------------
> ----- Original Message ----- 
> From: "John Casey" <jd...@commonjava.org>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Thursday, February 19, 2004 11:05 AM
> Subject: Re: Error when creating a new goal
> 
> 
> Dumb question, but it's something I'm embarrassed to say has stumped me
> before...
> 
> Do you have another process open and viewing a subdirectory of the
> target, like a command shell or something?
> 
> Just thought I'd check.
> 
> -john
> 
> On Thu, 2004-02-19 at 18:26, Freddy wrote:
> >  Hi
> >  I'm tring to create a new goal where I create the project site (via goal
> >  site), move the site to other paste (via ant tags) and then I clean the
> >  project (via goal clean)
> >  But when I run my goal the clean goal fail, because he can't delete some
> >  files of the target directory.
> >  does anyone know why this is happening and how to stop this?
> >  Thanks for the attention
> >
> > []s
> > Freddy
> > ----------------------------------------------------------------
> > Frederico Silva Guimarães
> > Tel: (21) 9952-1717
> > ICQ: 127277403
> > Email: kid@teccomm.les.inf.puc-rio.br
> > ----------------------------------------------------------------
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
-- 
John Casey
jdcasey@commonjava.org
CommonJava Open Components Project
http://www.commonjava.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error when creating a new goal

Posted by Gilles Dodinet <rh...@free.fr>.
Tim Chen wrote:

> You cant do anything but reboot (I've tried killing every windows 
> process that I could and it still wont work). 

ProcessExplorer can help looking up and closing handles w/o having to 
kill the process that created them. its a free win tool available at 
sysinternals.com.

-- gd




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error when creating a new goal

Posted by Tim Chen <Gi...@NielsenMedia.com>.
If the file is not open and it is unable to delete it..
Try to manually delete.. if windows gives you an error saying that the 
file is locked then welcome to windows.
You cant do anything but reboot (I've tried killing every windows 
process that I could and it still wont work).
This usually happens when someone is viewing a file while the clean is 
happening.
-Tim

Freddy wrote:

>No, and otherwise I call a clean goal before the site goal, so the files are
>created for the first time by the site goal.
>
>the order of the calls in my goal are:
>    - clean
>    - site
>    - copy the files site goal generated to a specific paste (via and tag
>"copy")
>    - jar:install
>    - clean
>
>but as I've said the clean (the second one) can´t delete all the files....
>and I get the error below (everytime with different file anyway...)
>
>clean:clean:
>    [delete] Deleting directory C:\eclipseWSAD\workspace\Mine\target
>
>BUILD FAILED
>File...... file:/C:/maven/loaded_plugins/maven-clean-plugin-1.1/
>Element... ant:delete
>Line...... 12
>Column.... 43
>Unable to delete file
>C:\eclipseWSAD\workspace\Mine\target\docs\apidocs\br\com\test\class-use\Test
>Main.html
>Total time: 49 seconds
>Finished at: Thu Feb 19 17:18:16 PST 2004
>
>[]s
>Freddy
>----------------------------------------------------------------
>Frederico Silva Guimarães
>Tel: (21) 9952-1717
>ICQ: 127277403
>Email: kid@teccomm.les.inf.puc-rio.br
>----------------------------------------------------------------
>----- Original Message ----- 
>From: "John Casey" <jd...@commonjava.org>
>To: "Maven Users List" <us...@maven.apache.org>
>Sent: Thursday, February 19, 2004 11:05 AM
>Subject: Re: Error when creating a new goal
>
>
>Dumb question, but it's something I'm embarrassed to say has stumped me
>before...
>
>Do you have another process open and viewing a subdirectory of the
>target, like a command shell or something?
>
>Just thought I'd check.
>
>-john
>
>On Thu, 2004-02-19 at 18:26, Freddy wrote:
>  
>
>> Hi
>> I'm tring to create a new goal where I create the project site (via goal
>> site), move the site to other paste (via ant tags) and then I clean the
>> project (via goal clean)
>> But when I run my goal the clean goal fail, because he can't delete some
>> files of the target directory.
>> does anyone know why this is happening and how to stop this?
>> Thanks for the attention
>>
>>[]s
>>Freddy
>>----------------------------------------------------------------
>>Frederico Silva Guimarães
>>Tel: (21) 9952-1717
>>ICQ: 127277403
>>Email: kid@teccomm.les.inf.puc-rio.br
>>----------------------------------------------------------------
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>    
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error when creating a new goal

Posted by Freddy <ki...@teccomm.les.inf.puc-rio.br>.
No, and otherwise I call a clean goal before the site goal, so the files are
created for the first time by the site goal.

the order of the calls in my goal are:
    - clean
    - site
    - copy the files site goal generated to a specific paste (via and tag
"copy")
    - jar:install
    - clean

but as I've said the clean (the second one) can´t delete all the files....
and I get the error below (everytime with different file anyway...)

clean:clean:
    [delete] Deleting directory C:\eclipseWSAD\workspace\Mine\target

BUILD FAILED
File...... file:/C:/maven/loaded_plugins/maven-clean-plugin-1.1/
Element... ant:delete
Line...... 12
Column.... 43
Unable to delete file
C:\eclipseWSAD\workspace\Mine\target\docs\apidocs\br\com\test\class-use\Test
Main.html
Total time: 49 seconds
Finished at: Thu Feb 19 17:18:16 PST 2004

[]s
Freddy
----------------------------------------------------------------
Frederico Silva Guimarães
Tel: (21) 9952-1717
ICQ: 127277403
Email: kid@teccomm.les.inf.puc-rio.br
----------------------------------------------------------------
----- Original Message ----- 
From: "John Casey" <jd...@commonjava.org>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, February 19, 2004 11:05 AM
Subject: Re: Error when creating a new goal


Dumb question, but it's something I'm embarrassed to say has stumped me
before...

Do you have another process open and viewing a subdirectory of the
target, like a command shell or something?

Just thought I'd check.

-john

On Thu, 2004-02-19 at 18:26, Freddy wrote:
>  Hi
>  I'm tring to create a new goal where I create the project site (via goal
>  site), move the site to other paste (via ant tags) and then I clean the
>  project (via goal clean)
>  But when I run my goal the clean goal fail, because he can't delete some
>  files of the target directory.
>  does anyone know why this is happening and how to stop this?
>  Thanks for the attention
>
> []s
> Freddy
> ----------------------------------------------------------------
> Frederico Silva Guimarães
> Tel: (21) 9952-1717
> ICQ: 127277403
> Email: kid@teccomm.les.inf.puc-rio.br
> ----------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
John Casey
jdcasey@commonjava.org
CommonJava Open Components Project
http://www.commonjava.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org