Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to exclude a folder from the sbconfig jar using Maven using package/deploy command

BK574May 19 2016 — edited May 22 2016

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,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2016
Added on May 19 2016
4 comments
1,271 views