1. Today, I want to upgrade a jar package services, change use the command
mvn deploy -e
Has been an error, you see the error message PW address is not now address. Like a long time, it turned out to be the company's computer has been configured PW address. . But where to configure, but do not know.
Finally, use mvn -version
、
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
Maven home: /usr/local/apache-maven-3.5.0
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac"
Find the directory, then go inside to find the idea of maven settings.xml now. Then cp to a computer maven directory.
After the re-use mvn -deploy -e and being given
INFO] Error stacktraces are turned on.
[ERROR] Could not create local repository at /Users/lixin/work/sykj/maven -> [Help 1]
org.apache.maven.repository.LocalRepositoryNotAccessibleException: Could not create local repository at /Users/lixin/work/sykj/maven
at org.apache.maven.DefaultMaven.validateLocalRepository(DefaultMaven.java:368)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:171)
The reason is the location of maven settings.xml configuration wrong. Their computers do not have this directory, this can be configured to
Ah then repackaged. maven deploy -e