1. 程式人生 > >maven配置雙倉庫

maven配置雙倉庫

maven配置雙倉庫

mirrors標籤里加

<mirror>
      <id>kettle</id>
      <mirrorOf>content</mirrorOf>
      <name>kettle映象</name>
      <url>https://nexus.pentaho.org/content/groups/omni/</url>
    </mirror>

profiles標籤里加

<profile>
      <id>kettle</id>
      <repositories>
        <repository>
          <id>content</id>
          <url>https://nexus.pentaho.org/content/groups/omni/</url>
		  <releases>
			<enabled>true</enabled>
		  </releases>
		  <snapshots>
			<enabled>true</enabled>
		  </snapshots>
        </repository>
      </repositories>
	  <pluginRepositories>
		<pluginRepository>
			<id>content</id>
			<url>https://nexus.pentaho.org/content/groups/omni/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	  </pluginRepositories>
    </profile>

activeProfiles標籤里加

<activeProfile>kettle</activeProfile>