移动网络打开了但是链接不上

课程名称读取中
支付宝支付
由百度云提供技术支持
&学院APP&&
扫描微信二维码精彩活动、课程更新抢先知
下载客户端,离线视频任您学
第一章:Maven基本使用
1.&Maven简介
2.&在Windows中配置Maven
3.&在Linux中配置Maven
第二章:搭建Maven开发环境
1.&搭建Nexus私服
2.&Eclipse + Maven开发
第三章:pom.xml核心讲解
1.&pom.xml作用分析
2.&定义环境属性
3.&插件配置
4.&依赖包管理
5.&继承关系
6.&构建设置
7.&Maven生命周期
加入购物车
【课程类型】技术教程
【难度级别】高级
【适合人群】所有人
【课程介绍】 Maven是现在企业项目之中使用最多构建工具,也是自Ant之后使用最为广泛的构建工具,掌握Maven可以方便的实现开发包的管理操作。在本课程中将为读者讲解Maven的使用,Eclipse集成开发以及Nexus私服的配置操作。官方QQ群:。
【课程目标】 掌握Maven的使用,可以结合Eclipse实现Maven的配置处理,可以理解pom.xml文件的配置
【课程计划】 视频课程,使用Eclipse开发
第一章:Maven基本使用
第二章:搭建Maven开发环境
第三章:pom.xml核心讲解
全部评价(0)
36课程125504学员
参考知识库
为您推荐课程
讲师:李兴华 74课时
讲师:李兴华 240课时
讲师:李兴华 278课时
讲师:李兴华 24课时
讲师:李兴华 25课时maven 自动生成运行脚本插件appassembler-maven-plugin - lavafree - ITeye技术网站
博客分类:
appassembler-maven-plugin可以自动生成跨平台的启动脚本,省去了手工写脚本的麻烦,而且还可以生成jsw的后台运行程序。
appassembler的配置比较简单,在pom.xml的配置文件加入插件配置。
比如说不同的启动脚本,可以如下配置
&groupId&org.codehaus.mojo&/groupId&
&artifactId&appassembler-maven-plugin&/artifactId&
&version&1.2.1&/version&
&configuration&
&configurationDirectory&conf&/configurationDirectory&
&configurationSourceDirectory&src/main/resources&/configurationSourceDirectory&
&copyConfigurationDirectory&true&/copyConfigurationDirectory&
&includeConfigurationDirectoryInClasspath&true&/includeConfigurationDirectoryInClasspath&
&assembleDirectory&${project.build.directory}/chj-search-client&/assembleDirectory&
&extraJvmArguments&-Xms128m&/extraJvmArguments&
&binFileExtensions&
&unix&.sh&/unix&
&/binFileExtensions&
&platforms&
&platform&windows&/platform&
&platform&unix&/platform&
&/platforms&
&repositoryName&lib&/repositoryName&
&programs&
&mainClass&com.chj360.search.client.App&/mainClass&
&/program&
&/programs&
&/configuration&
然后运行maven命令 :mvn package appassembler:assemble
就可以自动生成整个的依赖文件,配置文件和运行脚本了。
一些配置说明
configurationDirectory:生成配置文件路径
configurationSourceDirectory:配置文件原路径,默认为src/main/config
assembleDirectory:整体包目录
extraJvmArguments:jvm参数
binFileExtensions:生成脚本的后缀
platforms:生成哪几种平台
repositoryName:依赖包目录,默认repo
programs:这个必须参数,启动的主class
生成jsw也是一个简单的配置
&groupId&org.codehaus.mojo&/groupId&
&artifactId&appassembler-maven-plugin&/artifactId&
&version&1.2.1&/version&
&configuration&
&repositoryLayout&flat&/repositoryLayout&
&repositoryName&lib&/repositoryName&
&includeConfigurationDirectoryInClasspath&true&/includeConfigurationDirectoryInClasspath&
&copyConfigurationDirectory&src/main/resources&/copyConfigurationDirectory&
&target&${project.build.directory}&/target&
&id&chj-search-client&/id&
&mainClass&com.chj360.search.client.App&/mainClass&
&commandLineArguments&
&commandLineArgument&start&/commandLineArgument&
&/commandLineArguments&
&platforms&
&platform&jsw&/platform&
&/platforms&
&generatorConfigurations&
&generatorConfiguration&
&generator&jsw&/generator&
&includes&
&include&linux-x86-32&/include&
&include&linux-x86-64&/include&
&include&windows-x86-32&/include&
&include&windows-x86-64&/include&
&/includes&
&configuration&
&property&
&name&configuration.directory.in.classpath.first&/name&
&value&etc&/value&
&/property&
&property&
&name&set.default.REPO_DIR&/name&
&value&lib&/value&
&/property&
&property&
&name&wrapper.logfile&/name&
&value&../logs/wrapper.log&/value&
&/property&
&property&
&name&run.as.user.envvar&/name&
&value&johndoe&/value&
&/property&
&/configuration&
&/generatorConfiguration&
&/generatorConfigurations&
&jvmSettings&
&initialMemorySize&256M&/initialMemorySize&
&maxMemorySize&512M&/maxMemorySize&
&systemProperties&
&systemProperty&java.security.policy=conf/policy.all&/systemProperty&
&systemProperty&com.sun.management.jmxremote&/systemProperty&
&systemProperty&com.sun.management.jmxremote.port=8999&/systemProperty&
&systemProperty&com.sun.management.jmxremote.authenticate=false&/systemProperty&
&systemProperty&com.sun.management.jmxremote.ssl=false&/systemProperty&
&/systemProperties&
&extraArguments&
&extraArgument&-server&/extraArgument&
&/extraArguments&
&/jvmSettings&
&/daemons&
&/configuration&
&executions&
&execution&
&id&generate-jsw-scripts&/id&
&phase&package&/phase&
&goal&generate-daemons&/goal&
&/execution&
&/executions&
浏览 10262
浏览: 304590 次
来自: 北京
实现一个智能提示功能需要ajax、数据库、jsp/php、算法 ...
您好,我在solrconfig.xml里面设置了,查询的时候使 ...
我现在已经把jwchat项目的源码导入MyEclipse10中 ...
感谢楼主!
solr沿用了lucene的文档得分计算方式,是无法改变的,但 ...maven 使用findbugs 插件 - 简单的幸福 - ITeye技术网站
博客分类:
项目采用maven构建,想使用findbugs-maven-plugin 插件进行代码静态分析
官网:http://findbugs.sourceforge.net/
a program which uses static analysis to look for bugs in Java code
项目目录结构如下: 最下面的文件就是maven 的配置文件pom.xml,类似于ant的build.xml文件,pom.xml内容如下:
&project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&
&modelVersion&4.0.0&/modelVersion&
&groupId&com.kunlunsoft&/groupId&
&artifactId&isChinese&/artifactId&
&version&0.0.1-SNAPSHOT&/version&
&properties&
&checkstyle.config.location&checkstyle.xml&/checkstyle.config.location&
&project.build.sourceEncoding&UTF-8&/project.build.sourceEncoding&
&/properties&
&reporting&
&groupId&org.codehaus.mojo&/groupId&
&artifactId&findbugs-maven-plugin&/artifactId&
&version&2.5.2&/version&
&/plugins&
&/reporting&
&/project&
此时target目录是空的。打开cmd,进入项目所在目录,运行mvn findbugs:findbugs
运行结果如下:从上图(mvn findbugs:findbugs的运行结果) 来看,maven 并没有运行findbugs,为什么会这样呢?
我们看看findbugs官网是如何说明的:
FindBugs requires JRE (or JDK) 1.5.0 or later to run. However, it can analyze programs compiled for any version of Java, from 1.0 to 1.8. The current version of FindBugs is 2.0.2, released on 10:49:15 EST, 10 December, 2012. . File bug reports on
findbugs虽然是一个静态分析工具,但是它分析的不是java源代码(后缀名为.java),而是class文件(编译后的文件)。在运行mvn findbugs:findbugs 时,不会自动编译项目,即没有class文件,所以findbugs没有运行。
有的技术博客说:“clean findbugs:findbugs install ,这种写法是错的,可以运行的,但是并不产生findbugs报告”,说法是对的,但是并没有说明原因。
原因:运行clean后,class文件都被删除了,所以不会运行findbugs,或者说findbugs没有可分析的class文件,自然就没有产生分析结果。
使用maven运行findbugs前一定先编译,一定要有class文件!
解决方法:
(1)mvn clean compile findbugs:findbugs
(2)mvn clean test findbugs:findbugs (test会调用compile生命周期)
如下图: 运行完之后,target目录会增加如下文件:findbugsXml.xml
测试结果是xml格式的,不方便查看、展示.
我们希望以html格式来展示findbugs的运行结果(报告),如下图:
如上图所示,如何实现html展示findbugs报告呢?
请参阅我的下一篇博客:/blog/1960331
也可以参阅
浏览 12708
浏览: 2277302 次
来自: 北京
解决了我的问题,谢谢你。
说得不清不楚,谁看得懂?
java中直接加Math.random()就好,&scr ...
jackyx 写道你好,请问有IOS和推送后台(服务器端)的资 ...
zhaoke2011 写道运行你的那个 的,提 ...

我要回帖

 

随机推荐