I have created a Web Project using Maven in Eclipse. I need pentaho library jar for the project and this is my dependency
<dependency>
<groupId>pentaho-library</groupId>
<artifactId>libbase</artifactId>
<version>1.2.8</version>
<optional>true</optional>
</dependency>
When I run mvn:compile
or mvn eclipse:eclipse
, it is downloading the JAR file in maven_repo
local directory
I am using the following war plugin
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
</plugin>
The problem is, when i run mvn war:war
to create the war file, it is not copying the libbase-1.2.8.jar to the WEB-INF/lib folder. But it is copying all other JAR files. What is the problem?
Try removing <optional>true</optional>
.