[jboss-jira] [JBoss JIRA] (JBASMP-41) Create goals to add modules do Jboss AS

Edward Fraser-Davies (JIRA) issues at jboss.org
Fri Feb 21 19:03:48 EST 2014


    [ https://issues.jboss.org/browse/JBASMP-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12947047#comment-12947047 ] 

Edward Fraser-Davies edited comment on JBASMP-41 at 2/21/14 7:02 PM:
---------------------------------------------------------------------

The module add command does not seem to work with a list of resources as the help indicates.
JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8)

> $JBOSS_HOME/bin/jboss-cli.sh --commands="module add --name=com.acme.test --slot=1.0 --resources=forr.jar,bar.jar --module-xml=/conf/module-test.xml"
'bar.jar' is not a valid operation name.

> $JBOSS_HOME/bin/jboss-cli.sh --commands="module add --name=com.acme.test --slot=1.0 --resources=foo.jar\,bar.jar --module-xml=/conf/module-test.xml"
Failed to locate /foo.jar,bar.jar

Any recommendation on how to pass more than one resource?

                
      was (Author: efraser8):
    The module add command does not seem to work with a list of resources as the help indicates.
JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8)

# $JBOSS_HOME/bin/jboss-cli.sh --commands="module add --name=com.acme.test --slot=1.0 --resources=forr.jar,bar.jar --module-xml=/conf/module-test.xml"
'bar.jar' is not a valid operation name.

# $JBOSS_HOME/bin/jboss-cli.sh --commands="module add --name=com.acme.test --slot=1.0 --resources=foo.jar\,bar.jar --module-xml=/conf/module-test.xml"
Failed to locate /foo.jar,bar.jar

Any recommendation on how to pass more than one resource?

                  
> Create goals to add modules do Jboss AS
> ---------------------------------------
>
>                 Key: JBASMP-41
>                 URL: https://issues.jboss.org/browse/JBASMP-41
>             Project: JBoss AS Maven Plugins
>          Issue Type: Feature Request
>            Reporter: Gustavo Orair
>            Assignee: James Perkins
>
> A command to create modules using Jboss CLI was created
> (refer to https://issues.jboss.org/browse/AS7-4265).
> It should be nice if one may create these modules on Jboss server referencing a maven dependency similarly to deploy-artifact configuration section.
> Maybe a possible workaround for now should be use execute-commands but it would need to locate where the maven depencies are located:
> 	<execution>
> 		<id>create-modules</id>
> 		<phase>install</phase>
> 		<goals>
> 			<goal>execute-commands</goal>
> 		</goals>
> 		<configuration>
> 			<execute-commands>
> 	                       <commands>
> 					<command>module add --name=oracle.jdbc --resources=ojdbc6.jar --dependencies=javax.api,javax.transaction.api</command>
> 	                       </commands>
> 		        </execute-commands>
> 	        </configuration>
> 	</execution>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list