Exception while deploying artifacts to workbench repository in BRMS 6

Solution Unverified - Updated -

Issue

  • Exception while deploying artifacts to workbench repository in BRMS 6
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project quickstart: Failed to deploy artifacts: Could not transfer artifact org.example:quickstart:jar:1.0.0 from/to guvnor-m2-repo (http://localhost:8080/business-central/maven2/): Failed to transfer file: http://localhost:8080/business-central/maven2/org/example/quickstart/1.0.0/quickstart-1.0.0.jar. Return code is: 405, ReasonPhrase:Method Not Allowed.

Steps to replicate:
1. Create a simple mvn jar project
2. Configure distributionManagement in the pom.xml

<distributionManagement>
 <repository>
   <id>guvnor-m2-repo</id>
    <url>http://localhost:8080/business-central/maven2/</url>
  </repository>
</distributionManagement>
  1. Make sure guvnor-m2-repo is authenticated
<server>
 <id>guvnor-m2-repo</id>
  <username>admin</username>
  <password>password1!</password>
   <configuration>
    <wagonProvider>httpclient</wagonProvider>
    <httpConfiguration>
      <all>
        <usePreemptive>true</usePreemptive>
      </all>
    </httpConfiguration>
 </configuration>
</server>
  1. Run 'mvn deploy'

Environment

  • Red Hat JBoss BRMS
    • 6.0.x

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