Intellij introduces the local library and packs war files. intellijwar
1. Introduce local database
1. File-> Project Structure-> Libraries, click + to add a local lib library.
2. File-> Project Structure-> Modules-> Dependencies, add a Library, and select the lib Library created in step 1.
2. Package the local warehouse war
Add the following content to the pom. xml file:
<build> <finalName>mdfind</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> <warName>${project.artifactId}</warName> <webResources> <resource> <directory>lib/</directory> <targetPath>WEB-INF/lib</targetPath> <includes> <include>**/*.jar</include> </includes> </resource> </webResources> </configuration> </plugin> </plugins></build>