maven-package-with-local-snapshot
in developCo-De with 1 comment

maven-package-with-local-snapshot

in developCo-De with 1 comment
 <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>3.1.0</version>
            <configuration>
                <archive>
                    <manifest>
                        <!-- 项目启动类 -->
                        <mainClass>top.mmtech.StartupApplication</mainClass>
                        <!-- 依赖的jar的目录前缀 -->
                        <classpathPrefix>../lib</classpathPrefix>
                        <addClasspath>true</addClasspath>
                        <useUniqueVersions>false</useUniqueVersions>
                    </manifest>
                </archive>
                <!-- 项目启动jar包排除目录 -->
                <excludes>
                    <exclude>bin/**</exclude>
                    <exclude>config/**</exclude>
                    <exclude>logs/**</exclude>
                </excludes>
            </configuration>
        </plugin>
Comments are closed.