{{ $artifactId := .Get "artifactId"}}{{ $version := .Get "version"}}

<dependencies>
    <dependency>
        <groupId>org.mongodb</groupId>
        <artifactId>{{$artifactId}}</artifactId>
        <version>{{$version}}</version>
    </dependency>
</dependencies>

You can also download the jars directly from sonatype.