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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.