cas4.0.1源码各种错误。

来源:互联网 发布:windows pci e 开发 编辑:程序博客网 时间:2024/06/03 18:03

转载:

http://my.oschina.net/u/732798/blog/362147?p={{page}}

http://blog.csdn.net/yanjunlu/article/details/45498509

1.错误:cvc-complex-type.3.2.2: Attribute 'local' is not a

<ref local="authenticationActionResolver" />换成
<ref bean="authenticationActionResolver" />
具体原因不详。。

2.错误:Plugin execution not covered by lifecycle configuration: com.mycila.maven-li

在 cas-4.0.1\pom.xml 里的 build - pluginManagement  - plugins 节点加入:

[html] view plaincopy在CODE上查看代码片派生到我的代码片
  1. <plugin>  
  2.             <groupId>org.eclipse.m2e</groupId>  
  3.             <artifactId>lifecycle-mapping</artifactId>  
  4.             <version>1.0.0</version>  
  5.             <configuration>  
  6.                <lifecycleMappingMetadata>  
  7.                   <pluginExecutions>  
  8.                     <pluginExecution>  
  9.                       <pluginExecutionFilter>  
  10.                         <groupId>org.apache.maven.plugins</groupId>  
  11.                         <artifactId>maven-checkstyle-plugin</artifactId>  
  12.                         <versionRange>2.10</versionRange>  
  13.                         <goals>  
  14.                           <goal>checkstyle</goal>  
  15.                         </goals>  
  16.                       </pluginExecutionFilter>  
  17.                       <action>  
  18.                         <ignore />  
  19.                       </action>  
  20.                     </pluginExecution>  
  21.                     <pluginExecution>  
  22.                       <pluginExecutionFilter>  
  23.                         <groupId>com.mycila.maven-license-plugin</groupId>  
  24.                         <artifactId>maven-license-plugin</artifactId>  
  25.                         <versionRange>1.9.0</versionRange>  
  26.                         <goals>  
  27.                           <goal>check</goal>  
  28.                         </goals>  
  29.                       </pluginExecutionFilter>  
  30.                       <action>  
  31.                         <ignore />  
  32.                       </action>  
  33.                     </pluginExecution>  
  34.                     <pluginExecution>  
  35.                       <pluginExecutionFilter>  
  36.                         <groupId>org.codehaus.mojo</groupId>  
  37.                         <artifactId>aspectj-maven-plugin</artifactId>  
  38.                         <versionRange>1.4</versionRange>  
  39.                         <goals>  
  40.                           <goal>compile</goal>  
  41.                         </goals>  
  42.                       </pluginExecutionFilter>  
  43.                       <action>  
  44.                         <ignore />  
  45.                       </action>  
  46.                     </pluginExecution>  
  47.                   </pluginExecutions>  
  48.                 </lifecycleMappingMetadata>  
  49.             </configuration>  
  50.         </plugin> 

0 0