<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.tianlala</groupId>
    <artifactId>tll-boot</artifactId>
    <version>0.0.11.7</version>
  </parent>

  <groupId>com.tianlala.leaf</groupId>
  <artifactId>tll-boot-leaf</artifactId>
  <name>tll-boot-leaf</name>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>

    <dependency>
      <groupId>com.sankuai.inf.leaf</groupId>
      <artifactId>leaf-boot-starter</artifactId>
      <version>1.0.1-SNAPSHOT</version>
    </dependency>

    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <version>3.18.0</version>
    </dependency>
  </dependencies>


  <!-- 关键：配置远程仓库发布地址 -->
  <distributionManagement>
    <!-- 正式版本仓库（version无-SNAPSHOT） -->
    <repository>
      <id>g-jjqm1838-tll_xcx-maven</id> <!-- 必须和settings.xml中的server.id一致 -->
      <name>maven</name>
      <url>https://mvn.elitescloud.com/nexus/repository/maven-snapshots/</url> <!-- 私服正式库地址 -->
    </repository>
  </distributionManagement>

  <!-- 可选：添加Maven发布插件（确保打包/发布正常） -->
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
      </plugin>
      <!-- 若为SpringBoot项目，需添加spring-boot-maven-plugin，确保打包为可依赖的jar -->
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.7.0</version>
        <configuration>
          <skip>true</skip> <!-- 跳过可执行jar打包，仅打包普通依赖jar -->
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>