sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SLING-8666) slingstart-maven-plugin 1.8.4 or newer fail with "Failed to delete: .../target/features/processed: File does not exist: .../target/features/processed
Date Fri, 30 Aug 2019 11:50:00 GMT

     [ https://issues.apache.org/jira/browse/SLING-8666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Munteanu resolved SLING-8666.
------------------------------------
    Resolution: Fixed

Fixed with [sling-slingstart-maven-plugin commit f1ed3af|https://github.com/apache/sling-slingstart-maven-plugin/commit/f1ed3af]


> slingstart-maven-plugin 1.8.4 or newer fail with "Failed to delete: .../target/features/processed:
File does not exist: .../target/features/processed
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-8666
>                 URL: https://issues.apache.org/jira/browse/SLING-8666
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>    Affects Versions: Slingstart Maven Plugin 1.8.4, Slingstart Maven Plugin 1.8.6, Slingstart
Maven Plugin 1.9.0
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Critical
>             Fix For: Slingstart Maven Plugin 1.9.2
>
>
> Updating the sling starter to a more recent version of the {{slingstart-maven-plugin}}
fails:
> {noformat}[INFO] Scanning for projects...
> [ERROR] Failed to delete: /home/robert/sources/apache/sling/org-apache-sling-starter/target/features/processed:
File does not exist: /home/robert/sources/apache/sling/org-apache-sling-starter/target/features/processed
-> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the
following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
> {noformat}
> Seems all lifecycle phases are affected (tried clean, package, test ).
> Running with {{-X}} I see the following stack trace
> {noformat}
> [ERROR] Failed to delete: /home/robert/sources/apache/sling/org-apache-sling-starter/target/features/processed:
File does not exist: /home/robert/sources/apache/sling/org-apache-sling-starter/target/features/processed
-> [Help 1]
> org.apache.maven.MavenExecutionException: Failed to delete: /home/robert/sources/apache/sling/org-apache-sling-starter/target/features/processed
>     at org.apache.sling.maven.slingstart.DependencyLifecycleParticipant.afterProjectsRead
(DependencyLifecycleParticipant.java:100)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
> Caused by: java.io.FileNotFoundException: File does not exist: /home/robert/sources/apache/sling/org-apache-sling-starter/target/features/processed
>     at org.apache.commons.io.FileUtils.forceDelete (FileUtils.java:2275)
>     at org.apache.sling.maven.slingstart.DependencyLifecycleParticipant.afterProjectsRead
(DependencyLifecycleParticipant.java:98)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message