"Unexpected element '{urn:jboss:cli:1.3}jboss-cli" error when deploying to EAP 6 from jboss-as maven plugin

Solution Verified - Updated -

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 to then it works. Is there any other way to get this work ?

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content