I'm trying to learn Java EE 8, I followed the official guide at https://javaee.imtqy.com/tutorial/ , but I have this problem:
[DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.4 for container glassfish5x
BUILD FAILURE
Total time: 4.730s
Finished at: Mon Oct 09 16:16:40 CEST 2017
Final Memory: 18M/183M
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: Cannot create configuration. There no registered configuration for the parameters (container [id = [glassfish5x], type = [installed]], configuration type [existing]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
I followed exactly the guide, so I did not understand where the error is ...
EDIT: This error is the same for glass fish 5 and 4.1.1. If I manually breed a war package, it works; so the problem is the connection between maven and the Glassfish server ...
EDIT 2: I found this https://netbeans.org/bugzilla/show_bug.cgi?id=247746 , but it does not work ...
source
share