1.cd到jar所在的位置;

2.在执行以下命令即可;

mvn install:install-file -Dfile=selenium-server-standalone-2.43.1.jar -DgroupId=com.selenium.server -DartifactId=seleniumserver -Dversion=2.43.1 -Dpackaging=jar

3.然后打开本地Maven仓库,查看其pom依赖;