mica 组件图谱

组件图谱

版本

Mica Maven releaseMica maven snapshots

注意snapshots 版本会及时响应,修复最新的 bug 或者必要的需求。

使用 mica-bom

提示

mica-bom,可以简化依赖和依赖版本统一处理,避免jar冲突。

Maven

  1. <dependencyManagement>
    <dependencies>
    <dependency>
    <groupId>net.dreamlu</groupId>
    <artifactId>mica-bom</artifactId>
    <version>${mica.version}</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
    </dependencies>
    </dependencyManagement>

Gradle

Spring boot 环境中可以开启 apply plugin: "io.spring.dependency-management" 插件。

  1. dependencyManagement {
    imports {
    mavenBom "net.dreamlu:mica-bom:${micaVersion}"
    }
    }

组件坐标

groupId

  1. net.dreamlu

artifactId

  1. mica-core
    mica-launcher
    mica-log4j2
    mica-boot
    mica-boot-test
    mica-captcha
    mica-cloud
    mica-plus-error-catch
    mica-plus-redis
    mica-plus-mongo

使用 snapshots

maven

  1. <repositories>
    <repository>
    <id>sonatype-nexus-snapshots</id>
    <name>Sonatype Nexus Snapshots</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    <snapshots>
    <enabled>true</enabled>
    </snapshots>
    <releases>
    <enabled>false</enabled>
    </releases>
    </repository>
    </repositories>

gradle

  1. repositories {
    mavenLocal()
    maven { url "https://maven.aliyun.com/repository/public" }
    maven { url "https://maven.aliyun.com/repository/spring" }
    maven { url "https://maven.aliyun.com/repository/spring-plugin" }
    maven { url "https://repo.spring.io/libs-release" }
    maven { url "https://repo.spring.io/milestone" }
    // 添加 snapshots 库地址
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
    mavenCentral()
    }

微信公众号

如梦技术

精彩内容每日推荐!!!