You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hoffer <dh...@gmail.com> on 2014/07/28 19:50:28 UTC

Various 'Unable to create Marker'/'Access is denied' Maven build errors

I have a fairly large Maven build where I often get build errors relating
to failures to either create something on the local disk or delete
something.  The module that fails varies but here is an example.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.5.1:unpack
(unpack-build-tools) on project orchestration-parent: Unable to create
Marker:
C:\svn\SPACEOPS\JMS\trunk\orchestration\target\dependency-maven-plugin-markers\com.issinc.jms-build-tools-common-jar-9.x-SNAPSHOT1433553440:
Access is denied -> [Help 1]

I've been trying to track down the cause for some time...and think/thought
I figured it out last week.  My toolset is Maven 3.0.x, IntelliJ 13.x &
JDK7.x.  I generally build, the Maven build, using the nice GUI integration
IntelliJ has with Maven as it lets me select the profiles I need easily,
and that's when the failure occurs...if I use Maven integrated with
IntelliJ.

However today I got a failure with a Maven command line build as well, but
it was right after I saw the exact same error using IntelliJ so I don't
know if IntelliJ/Maven left the system in a bad state or exactly what
happened.  What I can say is that when I went to
C:\svn\SPACEOPS\JMS\trunk\orchestration\ folder using Windows Explorer it
showed the target folder but I could not delete it...I got an Access is
denied error...and after trying a few times got an error saying that it
can't be deleted because it doesn't exist.

So I'm wondering if anyone has some ideas what is going on.  Does Maven do
anything asynchronously where one thread is deleting a file/folder and
another is creating it?   Maybe Maven is not freeing file locks/handles so
Windows thinks the files/folders exist?  Why would Maven integrated with
IntelliJ show this error 'more'?  Maybe it's system related?  I have a Dell
M4700 with SSD.

Just trying to get a handle on how to fix this...not sure where the problem
is.

-Dave