Maven开发环境配置

一、工具安装

nexus

Maven

Jdk

eclipse



一、配置nexus

maven-central

         Type:proxy

         Proxy->RemoteStorage:http://maven.aliyun.com/nexus/content/groups/public/

qa-snapshot

         Type:hosted

         Versionpolicy:Snapshot

qa-release

         Type:hosted

         Versionpolicy:Release

qa-group

         Type:group

         Members:qa-snapshot、qa-release

Roles:

         qa-snapshot-dev:Privileges-Given:          

                   nx-repository-view-maven2-qa-snapshot-add

                   nx-repository-view-maven2-qa-snapshot-browse

                   nx-repository-view-maven2-qa-snapshot-edit

                   nx-repository-view-maven2-qa-snapshot-read

Users:

         Roles:Granted

                   qa-snapshot-dev

                   qa-release-dev                  



二、配置环境变量

         Maven:D:\tools\apache-maven-3.5.3

         Jdk:JAVA_HOME=C:\Program

Files\Java\jdk1.8.0_161


三、配置eclipse

插件:cucumber eclipse plugin、Natural(cucumber)、TestNG、EclEmma Java

Code Coverage

Maven设置:Preferences->Maven->User

Settings

         GlobalSetting:D:\tools\apache-maven-3.5.3\conf\settings.xml

         UserSetting:C:\Users\user\.m2\settings.xml

         LocalRepository:C:\Users\user\.m2\repository,从上述文件自动读取

fiddle代理:Preferences->Java->Installed

JREs->Edit Jre->Default VM arguments

         -Dhttp.proxySet="true"-Dhttp.proxyHost="127.0.0.1" -Dhttp.proxyPort="8888"


四、Maven Setting文件settings.xml

你可能感兴趣的:(Maven开发环境配置)