Così ho appena creato un'istanza Linux da EC2 e ora sto provando ad installare l'AWS Java SDK su di esso. Sono alla fine dell'installazione quando corro mvn clean compile exec:java
e ottenere questo:maven-resources-plugin: 2.6 - Impossibile creare la directory di output delle risorse
[[email protected] aws-java-sample]$ mvn clean compile exec:java
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building aws-java-sample 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ aws-java-sample ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ aws-java-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: x.xxx s
[INFO] Finished at: xxxx-xx-xxTxx:xx:xx+xx:xx
[INFO] Final Memory: M/xM
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project aws-java-sample: Cannot create resource output directory: /home/ec2-user/aws-java-sample/target/classes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
ho visto la domanda simile a questo su Stack Overflow, ma che utilizza Windows come suo ospite in cui sto usando un'istanza di Linux. Inoltre, questa risposta implica la configurazione con Eclipse, che non sto utilizzando. Non sono sicuro del motivo per cui si comporta in questo modo e non sa come risolverlo.
Avete la directory padre '/ home/ec2-user/aws-java-sample/target /'? Hai il permesso di scrittura per quella direttrice? – SMA
No, ho eseguito il comando 'ls -l' e le autorizzazioni per esso erano' d --------- 6 root root 4096 apr 19 xx: xx aws-java-sample'. Ho provato a cambiare i permessi ma ho continuato a ricevere questo messaggio 'chmod: modifica dei permessi di âaws-java-sample/â: Operazione non consentita' – user2361174
Hai' sudo'rights? – xerx593