如何编译成功cas最新maven项目
2017-04-11 10:00
316 查看
从官网 github上下载 https://github.com/Jasig/cas/releases cas的最新版本 4.1.2下来
cd E:\zqb\cas\cas-4.1.2
mvn clean install -Dmaven.test.skip
发现会报一大堆错
首先 是 findbugs插件
然后是checkstyle-plugin 不知道是不是 版本太新国内下载被墙了
网上也没找到解决方案 直接 把它注释就解决了 打开主pom.xml
把这个 <!-- <maven-checkstyle-plugin.version>2.15</maven-checkstyle-plugin.version>-->
注释了
把这两个也注释了
把这也注释了
就可以BUILD SUCCESS了
并且提供 可以再tomcat成功跑起来 的 cas_server4.1.2
示例程序下载地址:http://download.csdn.net/detail/koproblem/9365185
cd E:\zqb\cas\cas-4.1.2
mvn clean install -Dmaven.test.skip
发现会报一大堆错
首先 是 findbugs插件
然后是checkstyle-plugin 不知道是不是 版本太新国内下载被墙了
网上也没找到解决方案 直接 把它注释就解决了 打开主pom.xml
把这个 <!-- <maven-checkstyle-plugin.version>2.15</maven-checkstyle-plugin.version>-->
注释了
把这两个也注释了
<!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>${maven-findbugs-plugin.version}</version> <configuration> <plugins> <plugin> <groupId>com.mebigfatguy.fb-contrib</groupId> <artifactId>fb-contrib</artifactId> <version>${maven-findbugs-contrib-plugin.version}</version> </plugin> <plugin> <groupId>com.h3xstream.findsecbugs</groupId> <artifactId>findsecbugs-plugin</artifactId> <version>${maven-findbugs-security-plugin.version}</version> </plugin> </plugins> <includeFilterFile>${cs.dir}/findbugs-rules.xml</includeFilterFile> <effort>Max</effort> <failOnError>true</failOnError> </configuration> <executions> <execution> <id>findbugs-check</id> <phase>compile</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin>--> <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${maven-checkstyle-plugin.version}</version> <configuration> <consoleOutput>true</consoleOutput> <configLocation>${cs.dir}/checkstyle-rules.xml</configLocation> <suppressionsLocation>${cs.dir}/checkstyle-suppressions.xml</suppressionsLocation> <failsOnError>true</failsOnError> <includeTestSourceDirectory>true</includeTestSourceDirectory> </configuration> <executions> <execution> <id>checkstyle</id> <goals> <goal>checkstyle</goal> </goals> <phase>compile</phase> </execution> </executions> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>${checkstyle.version}</version> </dependency> </dependencies> </plugin>-->
把这也注释了
<!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> org.codehaus.mojo </groupId> <artifactId> findbugs-maven-plugin </artifactId> <versionRange> [3.0.1,) </versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId> org.codehaus.mojo </groupId> <artifactId> buildnumber-maven-plugin </artifactId> <versionRange> [1.3,) </versionRange> <goals> <goal> create-timestamp </goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin>-->
就可以BUILD SUCCESS了
并且提供 可以再tomcat成功跑起来 的 cas_server4.1.2
示例程序下载地址:http://download.csdn.net/detail/koproblem/9365185
相关文章推荐
- Maven错误在这里看【项目无法成功编译由于maven未成功下载依赖导致】
- 解决svn检出的maven项目clean成功但是compile编译失败问题
- 使用Maven开发编译Java项目时如何将所有依赖jar包都打入war包
- IDEA - 如何将maven项目src下的源码目录内的xml文件编译进入classes
- IDEA下maven编译打包Java项目成jar包但是resource下配置文件打包不成功
- 一些老的apk项目 使用maven编译不成功
- cas4.2.7客户端项目的配置(maven项目, 包括如何解决CAS is Unavailable和Application Not Authorized to Use CAS的错误)
- Springboot中如何引入本地jar包,并通过maven把项目成功打包成jar包部署
- 导入的eclipse 中 maven项目,项目中已经加入lombok.jar包,但是不能编译成功
- 项目maven依赖成功,但编译一直报错:引用项目的类路径找不到
- idea如何编译maven项目
- eclipse构建maven scala 项目 编译成功
- 高版本android sdk上i-jetty项目maven编译不成功
- 如何解决Maven编译项目时报的内存溢出(OutOfMemory)异常
- 给我一个maven结构的war包,反编译成项目并成功运行起来
- 如何用Maven来管理Java项目的Library
- CAS如何在服务器端的登陆成功页面获取登陆用户帐号的方法
- [书目20080130]如何成功管理一个软件项目
- OA项目如何成功实施?
- CAS如何在服务器端的登陆成功页面获取登陆用户帐号的方法