maven build error: Error creating shaded jar (Access denied)
Asked Answered
M

1

3

I get the following error trying to make an uberjar with maven, any ideas what might be going on?

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating shaded jar: C:\Projects\info\binf\target\classes (Access is denied)
Mcgraw answered 29/7, 2013 at 1:53 Comment(1)
See also: https://mcmap.net/q/1315119/-maven-shading-error-access-is-deniedAustraloid
O
0

It seems like that target folder is in used by some other process. Try to delete the folder manually and see if you are able to do it, if not then identify the process which is using that target folder and kill it.

After this try to do the build again.

Thanks

Opuntia answered 29/7, 2013 at 9:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.