maven私服配置

<?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">
	<!--本地仓库-->
	<localRepository>D:\exploit_utils\middleware\maven_repository</localRepository>
  <servers>
	<server>
		<id>nexus</id>
		<username>admin</username>
		<password>admin123</password>
	</server>
	<server>
		<id>maven-releases</id>
		<username>admin</username>
		<password>admin123</password>
	</server>
	<server>
		<id>maven-snapshots</id>
		<username>admin</username>
		<password>admin123</password>
	</server>
  </servers>
  <mirrors>
    <mirror>
        <id>nexus</id>
        <name>nexus-admin</name>
        <url>http://8.140.185.186:40002/repository/maven-public/</url>
        <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

  <profiles>
    <profile>
    <id>dev</id>
    <activation>
        <jdk>1.8</jdk>
        <activeByDefault>true</activeByDefault>
    </activation>
	<repositories>
		<repository>
			<id>nexus</id>
			<url>http://8.140.185.186:40002/repository/maven-public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
    </properties>
    </profile>
  </profiles>
  <activeProfiles>
	<activeProfile>dev</activeProfile>
  </activeProfiles>
</settings>

上一篇:使用Nexus搭建自己的Maven私服


下一篇:NPM——BASIC realm="Sonatype Nexus