I found this example:
mvn install:install-file -Dfile=${project.build.directory}/${project.build.finalName}.jar -DgroupId=${project.groupId} -DartifactId=${project.artifactId} -Dversion=${project.version} -Dpackaging=jar
It was from this post. Installing a jar file using Intellij run configuration
I am trying to figure out where and how to make that work in my environment.