In the maven project, the jar under the lib package will not be released to the path solution under the tomcat project

Add dependencies in pom.xml file:

        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.1.1</version>
        </dependency>

        ·····
        <build>
            <plugins>
                ···
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <configuration>
                        <webResources>
                            <resource>
                                <directory>../projectName/lib</directory>
                                <targetPath>WEB-INF/lib</targetPath>
                                <filtering>false</filtering>
                                <includes>
                                    <include>**/*.jar</include>
                                </includes>
                            </resource>
                        </webResources>
                    </configuration>
                    <version>2.1.1</version>
                </plugin>
            </plugins>
        </build>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325879986&siteId=291194637