20220627
- 加入DDD相关的通用类文件
在maven的setting.xml文件中,加入profile配置,如下:
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/hongtu1993/*</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>在maven的setting.xml文件中,加入server配置,如下:
<servers>
<server>
<id>github</id>
<username>YOUR USERNAME</username>
<password>YOUR TOKEN</password>
</server>
</servers>在项目中的pom.xml文件中,加入repository配置,如下:
<distributionManagement>
<repository>
<id>github</id>
<name>mao</name>
<url>https://maven.pkg.github.com/hongtu1993/mao-common</url>
</repository>
</distributionManagement>