I’m assuming that Java and Maven are installed on your slave. Just follow the below steps:
- Navigate to Manage Jenkins -> Manage Nodes
 
- Select the configure icon on the node you wish to configure
 
- Scroll down to 'Node Properties' and make sure to check the 'Tool Locations' checkbox
 
- Finally fill in the options for Maven according to your needs.