Hi,
I'm trying to set up debug environment for elastic search plugin development in the Intellij IDEA IDE. To do that I've created maven project with the dependencies from elastic search, jna, log4j-api and log4j-core and execution configuration, that has following startup parameters:
-Des.path.home="C:\Users\vglazkov\Documents\Projects\Java\elasticsearch-5.1.2"
-Xms2g
-Xmx2g
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-server -Xss1m
-Djava.awt.headless=true
-Dfile.encoding=UTF-8
-Djna.nosys=true
-Djdk.io.permissionsUseCanonicalPath=true
-Dio.netty.noUnsafe=true
-Dio.netty.noKeySetOptimization=true
-Dio.netty.recycler.maxCapacityPerThread=0
-Dlog4j.shutdownHookEnabled=false
-Dlog4j2.disable.jmx=true
-Dlog4j.skipJansi=true
-XX:+HeapDumpOnOutOfMemoryError
-Des.foreground=yes
that I've copied from the jvm.config file of the production instance of Elastic. I've also copied in the es.path.home copy of the config directory from the production instance of Elastic. Startup class setups in the pom.xml like this one:
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<mainClass>org.elasticsearch.bootstrap.Elasticsearch</mainClass>
</configuration>
All goes fine, until I'm getting the following exception:
java.security.AccessControlException: access denied ("java.io.FilePermission" "\C:\Users\vglazkov\.m2\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-smile\2.8.1\jackson-dataformat-smile-2.8.1.jar" "read")
I've checked that this file exists on my disk. Why is this happening and how can I fix this problem?