美文网首页
maven打包插件

maven打包插件

作者: 程功752362032 | 来源:发表于2022-08-11 08:46 被阅读0次

    maven项目引入外部jar包,并实现打包

          <dependency>
                <groupId>xx.xx.xxx</groupId>
                <artifactId>license</artifactId>
                <version>4.6.0</version>
                <scope>system</scope>
                <systemPath>${pom.basedir}/src/lib/license-4.6.0.jar</systemPath>
          </dependency>
    
    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.1.3.RELEASE</version>
        <configuration>
            <includeSystemScope>true</includeSystemScope>
        </configuration>
    </plugin>
    
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.0</version>
        <configuration>
            <source>1.8</source>
            <target>1.8</target>
            <encoding>UTF-8</encoding>
            <compilerArguments>
                <extdirs>${project.basedir}/src/lib</extdirs>
            </compilerArguments>
        </configuration>
    </plugin>
    

    相关文章

      网友评论

          本文标题:maven打包插件

          本文链接:https://www.haomeiwen.com/subject/hsuzwrtx.html