28 Aralık 2022 Çarşamba

repositories tag - Şirketin Repository Sunucusunu Belirtirtir

Giriş
Açıklaması şöyle
In Maven we have 3 types of repositories

1. Central Repository
2. Remote Repository
3. Local Repository

Central repository is maintained by Apache organization
Every company will maintain their own remote repository (Ex: Nexus, JFrog)
Local repository will be created in our system (Location : C://users/<uname>/.m2)
Örnek
Şöyle yaparız
<repositories>
<repository> <id>id</id> <url>jfrong-repo-url/</url> </repository> </repositories>
Örnek
Şöyle yaparız
<project ...>
  <parent>
    ...
  </parent>
  <properties>
    ...
  </properties>
  <dependencies>
    ...
  </dependencies>
  <build>
    <plugins>
    ...
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>spring-libs-milestone</id>
      <url>https://repo.spring.io/libs-milestone</url>
    </repository>
  </repositories>

  <pluginRepositories>
    ...
  </pluginRepositories>
</project>

Hiç yorum yok:

Yorum Gönder

Local Snapshot Kullanmak

Örnek Şöyle yaparız <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> &l...