1.ReasonPhrase: Forbidden:
+--- 1.注意用户的权限以及角色role的设置,一般是没有权限才会被禁止的。+======+======+======+======+======+======+======+======+
2.Failed to collect dependencies:
+--- 1.需要把parent工程,也就是package是pom的那个工程先install一下,或者deploy+--- 2.需要注意在设置的<profile>工厂里面是否可以访问,如果直接访问public分组,那么就要检查public分组是否添加了自己设置的工厂
+======+======+======+======+======+======+======+======+
3.child module ....pom.xml does not exist:
+---- 1.注意module的名称是否正确,有时候命名问题会导致找不到项目的+---- 2.注意一开始项目命名的规则问题
+======+======+======+======+======+======+======+======+
4.Cannot detect Web Project version. Please specify version of Web Project through <version> configuration property of war plugin. E.g.: <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <version>3.0</version> </configuration> </plugin>
+---- 1.和第五条一样在pom.xml加入plugin多的定义即可<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<version>3.0</version>
</configuration>
</plugin>
+======+======+======+======+======+======+======+======+
5.Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project marer-test-weixin: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
+---- 1.加入以下插件引用:主要是因为没有指定web.xml的位置,在pom.xml中加入<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<version>3.0</version>
<webXml>WebRoot\WEB-INF\web.xml</webXml><!-- 这里指定位置 -->
</configuration>
</plugin>
转载于
http://www.bkjia.com/webzh/1021921.html