Install artifacts to Guvnor Maven Repo
joao.pereira Apr 24, 2014 7:50 AMHi,
I have a maven project that are my dependencies for some rules authored in Kie workbench and I need to deploy these dependencies to guvnor maven repository.
My .m2/settings.xml contains:
<server>
<id>guvnor-m2-repo</id>
<username>admin</username>
<password>admin</password>
<configuration>
<wagonProvider>httpclient</wagonProvider>
<httpConfiguration>
<all>
<usePreemptive>true</usePreemptive>
</all>
</httpConfiguration>
</configuration>
</server>
My pom.xml contains :
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>guvnor-m2-repo</id>
<name>Guvnor M2 Repo</name>
<url>http://localhost:8080/jbpm-console/maven2/</url>
</repository>
</repositories>
When I try to to do:
mvn deploy
I'm getting:
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project com.xxxx.parent: Failed to deploy artifacts: Could not transfer artifact com.xxxx:com.xxxx.parent:pom:1.0-20140424.114545-1 from/to guvnor-m2-repo (http://localhost:8080/jbpm-console/maven2/): Failed to transfer file: http://localhost:8080/jbpm-console/maven2/comtxxxx/parent/1.0-SNAPSHOT/com.xxx.parent-1.0-20140424.114545-1.pom. Return code is: 405, ReasonPhrase: Method Not Allowed. -> [Help 1]
Also, if I go to http://localhost:8080/jbpm-console/maven2/ in the browser, I get 404.
The jbpm-console is running, as I can access it through http://localhost:8080/jbpm-console
I'm using maven 3.1.1 with oracle's java 1.7
Any documentation about how to configure guvnor maven repo? Anyone knows this error?
Thanks