And dependence executable jar package jar package

1 has the following configuration file in the IDEA pom, packed out of the package executable jar, jar package can not perform as a dependency.

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <executable>true</executable>
            </configuration>
        </plugin>
    </plugins>
</build>

Executable jar as a dependency, will be reported out weird package or symbol does not exist problem.

Thus, it should be deleted in the code portion disposed in a pom-dependent package.

 

The contents of an executable jar package and dependence jar included in the package is not the same size point of view, less dependent jar package, a large executable jar package.

image

image

The reason is mainly dependent jar package contains the production code, executable ja package contains the relevant base library

image

 

2.

<configuration>
    <executable>true</executable>
</configuration>

Pom above-described configuration can affect these lines of code execution command, which contains a Java implementation xxx.jar part, does not contain a direct xxx.jar performed. [I do not know there is no record backwards, seemingly influential in some systems, do not know all the systems]

Guess you like

Origin www.cnblogs.com/betterwgo/p/11230976.html