Salve a tutti,
ho dei sorgenti java e da essi devo realizzare un file .jar (contenente i relativi file .class). Ho realizzato il progetto maven, ma ora non riesco a generare il file .jar. Faccio click col tasto destro sul progetto, poi Run As->Maven build, ma mi dà il seguente errore:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] WSO2 Carbon Extension - RabbitMQ Pom
[INFO] WSO2 Carbon - Analytics Event Receiver Library For RabbitMQ
[INFO] WSO2 Carbon - Extension RabbitMQ Feature
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Carbon Extension - RabbitMQ Pom .............. SKIPPED
[INFO] WSO2 Carbon - Analytics Event Receiver Library For RabbitMQ SKIPPED
[INFO] WSO2 Carbon - Extension RabbitMQ Feature .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.518 s
[INFO] Finished at: 2016-12-17T11:41:57+01:00
[INFO] Final Memory: 7M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException
Inoltre mi dà errore nel file pom.xml; dove c'è il tag <parent> mi segnala questa cosa:
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration:
org.jvnet.maven.incrementalbuild:incremental-build-plugin:1.3:incremental-build (execution: default,
phase: validate)
- maven-remote-resources-plugin (goal "process") is ignored by m2e.
In allegato è visibile uno screen della situazione.
Allegati: