mvn install

mvn install:install-file -Dfile=your-artifact-1.0.jar
                        [-DpomFile=your-pom.xml]
                        [-Dsources=src.jar]
                        [-Djavadoc=apidocs.jar]
                        [-DgroupId=org.some.group]
                        [-DartifactId=your-artifact]
                        [-Dversion=1.0]
                        [-Dpackaging=jar]
                        [-Dclassifier=sources]
                        [-DgeneratePom=true]
                        [-DcreateChecksum=true]
                       
安装两个包
mvn install:install-file -Dfile=comm.jar -DgroupId=comm -DartifactId=comm -Dpackaging=jar -Dversion=1.0
mvn install:install-file -Dfile=smslib-3.3.0b2.jar -DgroupId=org.smslib -DartifactId=smslib -Dpackaging=jar -Dversion=3.3.0b2

你可能感兴趣的:(mvn install)