Why Maven External JARs are not present in WAR file after build?

34 Views Asked by At

I have included an external JAR and plugin in my pom.xml file using Maven, but when I to build and generate a WAR file, the generated WAR file does not contain the external JAR. How can I resolve this issue?

<dependencies>
   <dependency>
    <groupId>com.abbyy.FCEngine</groupId>
    <artifactId>FCEngine</artifactId>
    <version>1.0</version>
    <scope>system</scope>
<systemPath>${basedir}\src\lib\com.abbyy.FCEngine.jar</systemPath>
   </dependency>
    </dependencies>
    <build>
    <pluginManagement>
    <plugins>
        <plugin>
          <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>  
        </plugin>
    </plugins>
  </pluginManagement> 
 </build>
0

There are 0 best solutions below