G
G
Good Man2017-01-27 18:01:48
Java
Good Man, 2017-01-27 18:01:48

When you run a java project with an exploded profile, does it say that access to one directory is denied?

Good evening!
I'm doing the front, back on java.
jboss server, maven + ide assembly I assemble
the project in exploded so that the artifact is unpacked (you can quickly edit html, css, js) mvn clean package -Dprofile=dev -P exploded
I start to raise it - and it gives me the following messages:

Information:Internal caches are corrupted or have outdated format, forcing project rebuild: java.io.FileNotFoundException: C:\Users\путь_к_распакованному.ear\engine-ejb.jar (Отказано в доступе)

Another message follows:
Error:Internal error: (java.io.FileNotFoundException) C:\Users\путь_к_распакованному.ear\engine-ejb.jar (Отказано в доступе)
java.io.FileNotFoundException: C:\Users\путь_к_распакованному.ear\engine-ejb.jar (Отказано в доступе)
  at java.io.FileOutputStream.open0(Native Method)
  at java.io.FileOutputStream.open(FileOutputStream.java:270)
  at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  at com.intellij.openapi.util.io.FileUtil.openOutputStream(FileUtil.java:526)
  at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:478)
  at com.intellij.openapi.util.io.FileUtil.copyContent(FileUtil.java:470)
  at org.jetbrains.jps.incremental.artifacts.instructions.FilterCopyHandler.copyFile(FilterCopyHandler.java:40)
  at org.jetbrains.jps.incremental.artifacts.instructions.FileBasedArtifactRootDescriptor.copyFromRoot(FileBasedArtifactRootDescriptor.java:100)
  at org.jetbrains.jps.incremental.artifacts.IncArtifactBuilder.build(IncArtifactBuilder.java:150)
  at org.jetbrains.jps.incremental.artifacts.IncArtifactBuilder.build(IncArtifactBuilder.java:50)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildTarget(IncProjectBuilder.java:986)
  at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:967)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1028)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:915)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:741)
  at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:387)
  at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:195)
  at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138)
  at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:295)
  at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
  at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:238)
  at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:44)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
Please perform full project rebuild (Build | Rebuild Project)

I rebuilt it on a new one as the message suggests, launched the idea on behalf of the admin, shared this engine-ejb.jar folder - all in vain. Stubbornly does not want to start.
If I compile the archive, that is ( mvn clean install -Dprofile=dev) - then the project rises safely, but in this case, every time I need to see changes, I have to stop the server, rebuild the project with new code, raise it, and only then I will see the changes. Front-end is not done this way))
Comrades, java programmers, please help a younger colleague

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-01-27
@dsv

And if without clean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question