If you want to learn the basics of maven you can use this tutorial from Apache Maven: Maven in 5 minutes
Here you have information about how to use a Jboss Datasource
In JBoss the connection chain will be defined in a XML file in the server, so it doesn't affect to Maven.
I hope this can help you. If you need something else add a comment.