Hi All,
I am trying to exclude a directory from the deployment jar using maven. But, somehow I am unable to achieve it. Any help would be highly appreciated.
This is the folder structure I have
1. Project A
1.1 Folder 1
1.2 Folder 2
1.3 Folder 3
1.4 POM.xml
I am running following command to exclude following directory from the package:
mvn POM.xml package -Dexcludes="Folder1"
It is creating a valid sbconfig jar (sbar file) but at the same time it is including Folder 1 also in the sbconfig jar. How can I remove this Folder 1 from the deployment jar.
FYI, this is the pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.oracle.servicebus</groupId>
<artifactId>sbar-project-common</artifactId>
<version>12.2.1-0-0</version>
</parent>
<groupId>HelloWorldApplication</groupId>
<artifactId>TestPOCProject</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>sbar</packaging>
<description></description>
</project>
Thanks,