maven-clean-plugin on strike, sort of?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

maven-clean-plugin on strike, sort of?

Benson Margulies
➜ tests git:(master) ls -l
/Users/benson/x/rosapi1.5/itests/tests/target/pax/6c7a5d80-3080-482f-abb4-394d9a782ef2/data
total 24
-rw-r--r--  1 benson  staff  5 Oct 13 20:47 port
-rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml
-rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml.backup

rm -rf is perfectly capable of deleting it.

and yet, mvn clean fails.  Any ideas? It's repeatable.

Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
clean project: Failed to delete
/Users/benson/x/rosapi1.5/itests/tests/target/pax/4ba14215-319e-4688-95a0-d00997dd5fdc/data
at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.io.IOException: Failed to delete
/Users/benson/x/rosapi1.5/itests/tests/target/pax/4ba14215-319e-4688-95a0-d00997dd5fdc/data
at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249)
at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:191)
at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:117)
at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:193)
... 22 more

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: maven-clean-plugin on strike, sort of?

jieryn
And the dir mismatch in your example is just because of multiple runs?

On Thu, Oct 13, 2016 at 8:50 PM, Benson Margulies <[hidden email]> wrote:

> ➜ tests git:(master) ls -l
> /Users/benson/x/rosapi1.5/itests/tests/target/pax/6c7a5d80-3080-482f-abb4-394d9a782ef2/data
> total 24
> -rw-r--r--  1 benson  staff  5 Oct 13 20:47 port
> -rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml
> -rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml.backup
>
> rm -rf is perfectly capable of deleting it.
>
> and yet, mvn clean fails.  Any ideas? It's repeatable.
>
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> clean project: Failed to delete
> /Users/benson/x/rosapi1.5/itests/tests/target/pax/4ba14215-319e-4688-95a0-d00997dd5fdc/data
> at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> ... 20 more
> Caused by: java.io.IOException: Failed to delete
> /Users/benson/x/rosapi1.5/itests/tests/target/pax/4ba14215-319e-4688-95a0-d00997dd5fdc/data
> at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249)
> at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:191)
> at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
> at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
> at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
> at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:117)
> at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:193)
> ... 22 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: maven-clean-plugin on strike, sort of?

Rich Seddon
A guess...  there may be a process spawned by your tests that is still
running, and is recreating this directory.

On Friday, October 14, 2016, jieryn <[hidden email]> wrote:

> And the dir mismatch in your example is just because of multiple runs?
>
> On Thu, Oct 13, 2016 at 8:50 PM, Benson Margulies <[hidden email]
> <javascript:;>> wrote:
> > ➜ tests git:(master) ls -l
> > /Users/benson/x/rosapi1.5/itests/tests/target/pax/
> 6c7a5d80-3080-482f-abb4-394d9a782ef2/data
> > total 24
> > -rw-r--r--  1 benson  staff  5 Oct 13 20:47 port
> > -rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml
> > -rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml.backup
> >
> > rm -rf is perfectly capable of deleting it.
> >
> > and yet, mvn clean fails.  Any ideas? It's repeatable.
> >
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> > clean project: Failed to delete
> > /Users/benson/x/rosapi1.5/itests/tests/target/pax/
> 4ba14215-319e-4688-95a0-d00997dd5fdc/data
> > at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215)
> > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
> DefaultBuildPluginManager.java:134)
> > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:207)
> > ... 20 more
> > Caused by: java.io.IOException: Failed to delete
> > /Users/benson/x/rosapi1.5/itests/tests/target/pax/
> 4ba14215-319e-4688-95a0-d00997dd5fdc/data
> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249)
> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:191)
> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:117)
> > at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:193)
> > ... 22 more
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> <javascript:;>
> > For additional commands, e-mail: [hidden email]
> <javascript:;>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email] <javascript:;>
> For additional commands, e-mail: [hidden email]
> <javascript:;>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: maven-clean-plugin on strike, sort of?

Benson Margulies
There turned out to be leftover java processes from surefire bugs(?)
that were indeed constantly creating more content.


On Fri, Oct 14, 2016 at 8:58 AM, Rich Seddon <[hidden email]> wrote:

> A guess...  there may be a process spawned by your tests that is still
> running, and is recreating this directory.
>
> On Friday, October 14, 2016, jieryn <[hidden email]> wrote:
>
>> And the dir mismatch in your example is just because of multiple runs?
>>
>> On Thu, Oct 13, 2016 at 8:50 PM, Benson Margulies <[hidden email]
>> <javascript:;>> wrote:
>> > ➜ tests git:(master) ls -l
>> > /Users/benson/x/rosapi1.5/itests/tests/target/pax/
>> 6c7a5d80-3080-482f-abb4-394d9a782ef2/data
>> > total 24
>> > -rw-r--r--  1 benson  staff  5 Oct 13 20:47 port
>> > -rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml
>> > -rw-r--r--  1 benson  staff  7 Oct 13 20:47 rosette-usage.yaml.backup
>> >
>> > rm -rf is perfectly capable of deleting it.
>> >
>> > and yet, mvn clean fails.  Any ideas? It's repeatable.
>> >
>> > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
>> > clean project: Failed to delete
>> > /Users/benson/x/rosapi1.5/itests/tests/target/pax/
>> 4ba14215-319e-4688-95a0-d00997dd5fdc/data
>> > at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215)
>> > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
>> DefaultBuildPluginManager.java:134)
>> > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>> MojoExecutor.java:207)
>> > ... 20 more
>> > Caused by: java.io.IOException: Failed to delete
>> > /Users/benson/x/rosapi1.5/itests/tests/target/pax/
>> 4ba14215-319e-4688-95a0-d00997dd5fdc/data
>> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249)
>> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:191)
>> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
>> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
>> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158)
>> > at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:117)
>> > at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:193)
>> > ... 22 more
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [hidden email]
>> <javascript:;>
>> > For additional commands, e-mail: [hidden email]
>> <javascript:;>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email] <javascript:;>
>> For additional commands, e-mail: [hidden email]
>> <javascript:;>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]