"Unexpected element '{urn:jboss:cli:1.3}jboss-cli" error when deploying to EAP 6 from jboss-as maven plugin
Issue
When trying to run a cli batch file against EAP 6.3 from maven using jboss-as-maven-plugin 7.6.Final, the following error occurs:
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.6.Final:execute-commands (default) on project myproject: Execution default of goal org.jboss.as.plugins:jboss-as-maven-plugin:7.6.Final:execute-commands failed: Failed to initialize CLI context: Failed to parse /path/to/jboss-eap-6.3/bin/jboss-cli.xml: ParseError at [row,col]:[6,38]
[ERROR] Message: Unexpected element '{urn:jboss:cli:1.3}jboss-cli'
If line 6 of jboss-cli.xml is changed from
Environment
- JBoss Enterprise Application Platform (EAP) 6.3 and jboss-as-maven-plugin 7.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.