You should read the documentation at https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Data_Grid/6.3/html/Getting_Started_Guide/index.html
which describes all the steps needed to configure your maven installation to point to the JDG artifacts and which ones to add to your project.
Which JBoss Infinispan subsystem you mean?
If you use an EAP server and try to use a Infinispan cache in your application this is not supported, as the EAP standalone*.xml configuration is for internal server purpose only.
If you use embedded/library mode you can add a dependency to the JDG modules, which needs to be installed, and use CDI to have injection. But in this case the configuration is done by the application.
Other option is to install a separate JDG instance and use it remote via HotRod.
As Tristan mentionend you'll find examples in the documentation or Infinispan Quickstarts.