Skip to content

Latest commit

 

History

History
75 lines (64 loc) · 2.27 KB

06202022.md

File metadata and controls

75 lines (64 loc) · 2.27 KB
  1. mvn global options to avoid PKIX path building failed error:
  • The relative path to edit this file was stored in: ~/.m2/settings.xml
rundll32.exe sysdm.cpl,EditEnvironmentVariables
MAVEN_OPTS=-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
Variable Value
MAVEN_OPTS -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
  1. Edit settings.xml file to bypass or configure some mvn properties for individually usage:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
	<servers>
		<server>
			<id>nexus-id</id>
			<username>username</username>
			<password>password</password>
		</server>
		<server>
			<id>nexus-releases</id>
			<username>username</username>
			<password>password</password>
		</server>
	</servers>

	<mirrors>
		<mirror>
			<id>central</id>
			<name>central</name>
			<url>your_comp_maven_repository</url>
			<mirrorOf>*</mirrorOf>
		</mirror>
	</mirrors>
</settings>

Or:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
	<proxies>
   <proxy>
      <id>example-proxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.example.com</host>
      <port>8080</port>
      <username>proxy_user</username>
      <password>password</password>
      <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
    </proxy>
  </proxies>
</settings>
  1. ps listing all the processes have been running in the OS:
  • Some examples, you should try it yourself:
ps
ps -aux
ps fax