我几个月来一直在使用 Business Central 部署 kjar,但我正在尝试使用“mvn deploy”将 JBPM 7.48/PAM 7.10 kjar 部署到 JBoss EAP 服务器。密切关注[这个问题][1]我有
<server>
<id>guvnor-m2-repo</id>
<username>....</username>
<password>...</password>
<configuration>
<wagonProvider>httpclient</wagonProvider>
<httpConfiguration>
<all>
<usePreemptive>true</usePreemptive>
</all>
</httpConfiguration>
</configuration>
</server>
在我的 settings.xml 中,在我的 pom.xml 中。
<distributionManagement>
<repository>
<id>guvnor-m2-repo</id>
<name>JBPM Workbench Repo</name>
<url>http://localhost:8080/business-central/maven2/</url>
</repository>
</distributionManagement>
mvn deploy 返回(注意:我添加了回车/换行符以提高可读性):
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project ams-pam:
Failed to deploy artifacts: Could not transfer artifact com.goprecise.ams:ams-pam:jar:1.0.9 from/to guvnor-m2-repo (http://localhost:8080/business-central/maven2/):
Transfer failed for http://localhost:8080/business-central/maven2/com/goprecise/ams/ams-pam/1.0.9/ams-pam-1.0.9.jar 405 Method Not Allowed
我缺少什么来克服这种“不允许的方法”。 mvn -x deploy 将更深层次的异常显示为
org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put
[1]: https://stackoverflow.com/questions/55991382/how-to-deploy-a-jar-with-maven-to-jbpm-business-central