Exception while deploying artifacts to workbench repository in BRMS 6
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>
- 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>
- Run 'mvn deploy'
Environment
- Red Hat JBoss BRMS
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
