Skip to content

fine-license模块

  • RSA许可管理

依赖

  • pom.xml
xml
<!--fine-license-->
<dependency>
    <groupId>cn.finemap</groupId>
    <artifactId>fine-license</artifactId>
    <version>${fine.version}</version>
</dependency>

创建子模块:fine-license

  • 在fine-parent中创建:fine-license子模块

fine-license

  • 创建子模块:New > Module...
  • 添加公共组件的依赖
  • 维护工具类
  • 添加接口文档插件,打包工具类文档
依赖、添加接口文档插件
  • fine-license/pom.xml
xml
<!-- 依赖 -->
<dependencies>
    <!-- 框架工具类 -->
    <dependency>
        <groupId>cn.finemap</groupId>
        <artifactId>fine-commons</artifactId>
        <version>${fine.version}</version>
        <optional>true</optional>
    </dependency>

    <!--web-->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
        <optional>true</optional>
    </dependency>
</dependencies>

<!-- 接口文档插件 -->
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
                <source>${java.version}</source>
                <doclint>none</doclint>
            </configuration>
            <executions>
                <execution>
                    <id>attach-javadocs</id>
                    <goals>
                        <goal>jar</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
打包接口文档
  • install同步在fine-license/target/apidocs下生成文档

维护父工程:fine-parent

fine-parent

  • 添加该子模块
  • 在父工程中,管理版本参数