pom.xml file of Business Central project overwrites tags like "exclusion", "optional" and "scope" in the "dependencies" section after building the project

Solution Unverified - Updated -

Issue

  • It has been observed that the pom.xml file from the Business Central project overwrites tags like exclusion, optional and scope in the dependencies section after user Build & Deploy the project. e.g.
    Before building the project.
...
  <groupId>org.kie.example</groupId>
  <artifactId>project1</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>kjar</packaging>
  <dependencies>
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
      <version>4.2.6.redhat-3</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
...

After building the project.

...
  <groupId>org.kie.example</groupId>
  <artifactId>project1</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>kjar</packaging>
  <dependencies>
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
      <version>4.2.6.redhat-3</version>
    </dependency>
  </dependencies>
...
  • When clicking Build and Deploy, the following prompt Also save possible changes to project? overwrites the pom.xml file's extra tags and replaces them with the simple G.A.Vs when clicking Yes. If users click No to also save the project, the pom.xml additional tags are preserved.

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.0.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content