0

私はIDEとしてIntelliJを使用してVertxサーバを構築しています。しかし、ターミナルからサーバーを起動しようとすると、次のコンパイルエラーのために失敗し、その理由が分かりません。それはコンパイルされ、ターミナルからのaws依存なく完全に正常に実行され、私はIntelliJ内部でライブラリが検出されていることをテストしました。私はこの問題についていくつかの助けに感謝します!Vertxが外部ライブラリをコンパイルできません

/ExampleProject/src/main/java/Server/Server.java:4: error: package com.amazonaws.auth.profile does not exist 
import com.amazonaws.auth.profile.ProfileCredentialsProvider; 
           ^
java.lang.RuntimeException: Compilation failed 
    at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:120) 
    at io.vertx.core.impl.JavaVerticleFactory.createVerticle(JavaVerticleFactory.java:38) 
    at io.vertx.core.impl.DeploymentManager.createVerticles(DeploymentManager.java:184) 
    at io.vertx.core.impl.DeploymentManager.lambda$doDeployVerticle$2(DeploymentManager.java:157) 
    at io.vertx.core.impl.FutureImpl.checkCallHandler(FutureImpl.java:158) 
    at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:100) 
    at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:130) 
    at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:102) 
    at io.vertx.core.impl.DeploymentManager.deployVerticle(DeploymentManager.java:90) 
    at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:574) 
    at io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer.deploy(VertxIsolatedDeployer.java:46) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at io.vertx.core.impl.launcher.commands.ClasspathHandler.deploy(ClasspathHandler.java:160) 
    at io.vertx.core.impl.launcher.commands.RunCommand.deploy(RunCommand.java:389) 
    at io.vertx.core.impl.launcher.commands.RunCommand.run(RunCommand.java:262) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.execute(VertxCommandLauncher.java:230) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:365) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:328) 
    at io.vertx.core.Launcher.main(Launcher.java:49) 
Caused by: java.lang.RuntimeException: Compilation failed! 
    at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:117) 
    ... 21 more 
Failed in deploying verticle 
java.lang.RuntimeException: Compilation failed 
    at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:120) 
    at io.vertx.core.impl.JavaVerticleFactory.createVerticle(JavaVerticleFactory.java:38) 
    at io.vertx.core.impl.DeploymentManager.createVerticles(DeploymentManager.java:184) 
    at io.vertx.core.impl.DeploymentManager.lambda$doDeployVerticle$2(DeploymentManager.java:157) 
    at io.vertx.core.impl.FutureImpl.checkCallHandler(FutureImpl.java:158) 
    at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:100) 
    at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:130) 
    at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:102) 
    at io.vertx.core.impl.DeploymentManager.deployVerticle(DeploymentManager.java:90) 
    at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:574) 
    at io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer.deploy(VertxIsolatedDeployer.java:46) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at io.vertx.core.impl.launcher.commands.ClasspathHandler.deploy(ClasspathHandler.java:160) 
    at io.vertx.core.impl.launcher.commands.RunCommand.deploy(RunCommand.java:389) 
    at io.vertx.core.impl.launcher.commands.RunCommand.run(RunCommand.java:262) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.execute(VertxCommandLauncher.java:230) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:365) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:328) 
    at io.vertx.core.Launcher.main(Launcher.java:49) 
Caused by: java.lang.RuntimeException: Compilation failed! 
    at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:117) 
    ... 21 more 

java.lang.RuntimeException: Compilation failed 
    at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:120) 
    at io.vertx.core.impl.JavaVerticleFactory.createVerticle(JavaVerticleFactory.java:38) 
    at io.vertx.core.impl.DeploymentManager.createVerticles(DeploymentManager.java:184) 
    at io.vertx.core.impl.DeploymentManager.lambda$doDeployVerticle$2(DeploymentManager.java:157) 
    at io.vertx.core.impl.FutureImpl.checkCallHandler(FutureImpl.java:158) 
    at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:100) 
    at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:130) 
    at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:102) 
    at io.vertx.core.impl.DeploymentManager.deployVerticle(DeploymentManager.java:90) 
    at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:574) 
    at io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer.deploy(VertxIsolatedDeployer.java:46) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at io.vertx.core.impl.launcher.commands.ClasspathHandler.deploy(ClasspathHandler.java:160) 
    at io.vertx.core.impl.launcher.commands.RunCommand.deploy(RunCommand.java:389) 
    at io.vertx.core.impl.launcher.commands.RunCommand.run(RunCommand.java:262) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.execute(VertxCommandLauncher.java:230) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:365) 
    at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:328) 
    at io.vertx.core.Launcher.main(Launcher.java:49) 
Caused by: java.lang.RuntimeException: Compilation failed! 
    at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:117) 
    ... 21 more 
+0

あなたのpom.xmlに 'com.amazonaws'の依存関係があることを確認してください。プロジェクトをリフレッシュして、もう一度ビルドしてみてください。 –

答えて

関連する問題