0

Я строю сервер vertx, используя IntelliJ в качестве моей IDE, и мой проект там хорошо строится. Однако, когда я пытаюсь запустить мой сервер с терминала, он терпит неудачу из-за следующих ошибок компиляции и не уверен, почему. Он компилируется и работает отлично, без зависимости от 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

Убедитесь, что у вас есть зависимости 'com.amazonaws' в вашем pom.xml. Сделайте обновление проекта, очистите его снова и попробуйте. –

ответ

Смежные вопросы