直接看这个么有任何意义,请先查看博客
http://blog.youkuaiyun.com/CrazyCoder2010/article/details/77402076
感谢原博主,但是配置没写全。。导致动态发布失败,这里补充下,亲测成功。
下面的步骤都是在原博主的流程完成后补充的。1删除掉pom.xml中
<repository>
<id>guvnor-m2-repo</id>
<name>Guvnor M2 Repo</name>
<url>http://localhost:8080/kie-drools-wb/maven2/</url>
</repository>
2新增settings.xml 配置,参考如下
<?xml version="1.0"?>
<settings>
<localRepository>C:\Users\admin\.m2\repository</localRepository><!--需要改成自己的maven的本地仓库地址-->
<profiles>
<profile>
<profile>
<id>guvnor-m2-repo</id>
<repositories>
<repository>
<id>guvnor-m2-repo</id>
<name>Guvnor M2 Repo</name>
<url>http://192.168.0.111:8080/kie-drools-wb/maven2/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>
<servers>
<server>
<username>tomcat</username>
<password>tomcat</password>
<id>guvnor-m2-repo</id>
<configuration>
<wagonProvider>httpclient</wagonProvider>
<httpConfiguration>
<all>
<usePreemptive>true</usePreemptive>
</all>
</httpConfiguration>
</configuration>
</server>
</servers>
<activeProfiles>
<activeProfile>guvnor-m2-repo</activeProfile>
</activeProfiles>
</settings>