Gradle / Java Access Denied by wsimport task

user3157855 :

I can't find solution for this problem: my gradle build has some problem with access to some files during build. How can I fix this or check why there is access denied, there is only little information for it.

System is Windows 7, Gradle 2.14.1, JDK 1.8.0-181.

Here is part of log from GIT Bash output:

Importing wsdl: C:\dev\wsdl\someWsdl.wsdl
[wsimport] [ERROR] C:\dev\src\main\java\com\project\SomeClass.java (Access is denied)

I have tried:

  • running console as "Run as administrator"
  • running from CMD and Git Bash and Power Shell
  • changing Security access rights (and owner) for project folder and JDK folder
user3157855 :

Disabling antivirus protection of McAfee has fixed my issues.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=108350&siteId=1