# MavenModule **Repository Path**: gitres/MavenModule ## Basic Information - **Project Name**: MavenModule - **Description**: Maven依赖关系模块化管理 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-12-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Maven Dependency Module ###一、Maven部署一个文件到仓库 1.本地仓库命令 ``` mvn install:install-file -Dfile=[your file] -DgroupId=[xxxx] -DartifactId=[xxxx] -Dversion=[xxxx] -Dpackaging=[pom|jar|other] ``` 2.远程仓库命令 ``` mvn deploy:deploy-file -Dfile=[your file] -DgroupId=[xxxx] -DartifactId=[xxxx] -Dversion=[xxxx] -Dpackaging=[pom|jar|other] -DrepositoryId=[id] -Durl=[repo url] ``` ###二、本地仓库Git命令 ``` $ cd ~/.m2/repository $ git add -f com/github/${github_account}/${artifactId}/${version} $ git commit -m 'snapshot of com.github.${github_account}:${artifactId}:${version}' $ git push origin snapshot ``` ###三、使用说明 ```            com.github.sam spring-framework-bom 1.0.0.RELEASE pom import ```